Drupal server set-up for Ubuntu 10.04 (Lucid Lynx)

First, do a clean install of Ubuntu 10.04 Lucid Lynx.

Run updates out-of-the-box:

sudo apt-get update
sudo apt-get upgrade

Install build-essential and curl

sudo aptitude install build-essential
sudo apt-get install curl

Install LAMP server

sudo tasksel install lamp-server

Enable mod_rewrite in Apache2 to enable Clean URLs in Drupal

sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart

Disable unused Apache2 modules

sudo a2dismod cgi
sudo a2dismod autoindex

Increase PHP memory limit

sudo sed -i 's/memory_limit = .*/memory_limit = 128M/' /etc/php5/apache2/php.ini
sudo sed -i 's/upload_max_filesize = .*/upload_max_filesize = 128M/' /etc/php5/apache2/php.ini
sudo sed -i 's/post_max_size = .*/post_max_size = 128M/' /etc/php5/apache2/php.ini

Install required packages for PECL uploadprogress PHP module

sudo apt-get install php5-dev php-pear
sudo pecl install uploadprogress

Connect PECL uploadprogress and PHP

sudo sed -i '/; extension_dir directive above/ a\ extension=uploadprogress.so' /etc/php5/apache2/php.ini

or, the preferred method:

sudo nano /etc/php5/apache2/conf.d/uploadprogress.ini
extension=uploadprogress.so

Install the GMP Math library for PHP5 for optimal OpenID performance

sudo apt-get install php5-gmp
sudo service apache2 restart

Set the server timezone

sudo dpkg-reconfigure tzdata

Turn off Apache2 server signature [added security]

sudo sed -i 's/ServerSignature On/ServerSignature Off/' /etc/apache2/apache2.conf>

Tell Apache2 to allow Drupal .htaccess file [AllowOverride]

sudo sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/sites-available/default

Install APC opcode caching [performance]

sudo apt-get install php-apc

Enable Apache2 deflate and expires modules

Note: Apache2 conf file warns that CSS, and javascript may not work with IE6

sudo a2enmod expires
sudo a2enmod deflate
sudo sed -i 's/DEFLATE text\/html text\/plain text\/xml/DEFLATE text\/html text\/plain text\/xml test\/css text\/javascript application\/x-javascript/' /etc/apache2/mods-available/deflate.conf

Enable MySQL query caching

sudo sed -i 's/query_cache_limit       = 1M/query_cache_limit       = 1M\ query_cache_type       = 1/' /etc/mysql/my.cnf

Restart Apache2 and MySQL

sudo /etc/init.d/apache2 restart
sudo service mysql restart

Download and move Drupal to web root

wget http://ftp.drupal.org/files/projects/drupal-x.xx.tar.gz tar xvzf drupal-x.xx.tar.gz sudo mkdir /var/www/drupal sudo mv drupal-x.xx/* drupal-x.xx/.htaccess /var/www/drupal

Create ‘files’ folder for Drupal default site

sudo mkdir /var/www/drupal/sites/default/files
sudo chown www-data:www-data /var/www/drupal/sites/default/files

Copy Drupal settings.php file for default site

sudo cp /var/www/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php

Configure MySQL database for Drupal default site

mysqladmin -u root -p create drupal
mysql -u root -p
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO ‘drupaluser’@’localhost’ IDENTIFIED BY ‘drupalpass’;
mysql> FLUSH PRIVILEGES
mysql> \q

Install PHPMyAdmin

sudo apt-get install phpmyadmin

Follow the prompts to complete the installation of PHPMyAdmin:

  • Select apache2
  • Do not need the dbconfig-common, MySQL is already going
  • May need to:

Add to /etc/apache2/apache2.conf:

Include /etc/phpmyadmin/apache.conf

or:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin
sudo /etc/init.d/apache2 reload

Complete Drupal installation through a web browser:

Go to http://localhost.com/drupal/[/prettify]

You may have to enter database information in settings.php manually.

Set-up cron job

crontab -e 0,30 * * * * curl --silent --compressed http://site.com/cron.php[/prettify]

Set-up a FTP server: proftpd or vsftpd

Set-up firewall: ufw

Comments

christian louboutin outlet

I must voice my appreciation for your kindness for people who require guidance on the concern. Your personal commitment to getting the solution across came to be wonderfully informative and have constantly empowered individuals just like me to realize their pursuits. Your personal valuable tutorial means this much a person like me and still more to my mates. Thanks a ton; from all of us.

Add new comment | arxic Drupal

Thank you for the good writeup. It in fact was a amusement account it.
Look advanced to far added agreeable from you! However, how can we communicate?

Add new comment | arxic Drupal

I'm no longer positive the place you're getting your information, but good topic.
I must spend some time studying more or working out
more. Thanks for great info I was searching for this information for my mission.

Add new comment | arxic Drupal

I know this if off topic but I'm looking into starting
my own weblog and was wondering what all is required to get set up?

I'm assuming having a blog like yours would cost a pretty penny?

I'm not very web smart so I'm not 100% sure. Any recommendations
or advice would be greatly appreciated. Kudos

Add new comment | arxic Drupal

Magnificent website. Lots of useful information here.
I'm sending it to a few pals ans additionally sharing in delicious.
And naturally, thank you for your effort!

Add new comment | arxic Drupal

Simply want to say your article is as surprising. The clearness for your publish is just nice
and that i could assume you're knowledgeable in this subject.
Well together with your permission allow me to grasp your
RSS feed to stay up to date with impending post.
Thank you a million and please continue the enjoyable work.

Add new comment | arxic Drupal

Hi there are using Wordpress for your site platform? I'm new to the blog world but I'm
trying to get started and set up my own. Do you need any coding expertise to make your own blog?

Any help would be really appreciated!

Add new comment | arxic Drupal

Hello there! Do you know if they make any plugins to protect
against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any suggestions?

Add new comment | arxic Drupal

Wow, fantastic blog format! How long have you ever been blogging for?
you make running a blog glance easy. The entire glance
of your website is fantastic, as well as the content material!

Add new comment | arxic Drupal

When someone writes an post he/she retains the thought of a user in his/her brain that how a user can be aware of it.

Therefore that's why this piece of writing is perfect.

Thanks!

Add new comment | arxic Drupal

My partner and I stumbled over here coming from a different website
and thought I might check things out. I like what I see so now i am following you.
Look forward to exploring your web page repeatedly.

Add new comment | arxic Drupal

What's Going down i am new to this, I stumbled upon this
I have found It positively helpful and it has helped me out loads.

I am hoping to contribute & help different customers like its helped me.
Great job.

Add new comment | arxic Drupal

Hello there! I know this is somewhat off topic but I was wondering which
blog platform are you using for this website? I'm getting fed up of Wordpress
because I've had problems with hackers and I'm looking at alternatives for another platform.
I would be fantastic if you could point me in the direction of a good platform.

Add new comment | arxic Drupal

I'm not sure where you are getting your info, but great topic.
I needs to spend some time learning more or understanding more.
Thanks for excellent information I was looking for this information for my mission.

Add new comment | arxic Drupal

I was wondering if you ever considered changing the structure of your website?
Its very well written; I love what youve got to say. But maybe you
could a little more in the way of content so people could
connect with it better. Youve got an awful lot of text for only having one or two
images. Maybe you could space it out better?

Add new comment | arxic Drupal

great issues altogether, you simply won a emblem new reader.
What might you recommend in regards to your publish that you simply made a few days in the past?
Any sure?

Pages

Add new comment