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

Add new comment | arxic Drupal

What's Happening i'm new to this, I stumbled upon this I have found It absolutely useful and it
has aided me out loads. I am hoping to contribute & assist different customers like its helped me.
Great job.

Add new comment | arxic Drupal

Hello there! I know this is kinda off topic but I was wondering which blog platform
are you using for this site? I'm getting sick and tired of Wordpress because I've had problems with hackers and I'm
looking at options for another platform. I would be awesome if you could
point me in the direction of a good platform.

Add new comment | arxic Drupal

I am curious to find out what blog system you're using? I'm having some minor security issues with
my latest website and I would like to find something more risk-free.
Do you have any solutions?

Add new comment | arxic Drupal

When someone writes an post he/she retains the idea of a user in his/her
brain that how a user can be aware of it. Thus that's
why this piece of writing is amazing. Thanks!

Add new comment | arxic Drupal

It's the best time to make some plans for the future and it is time to be happy.
I've read this post and if I could I want to suggest you few interesting things or advice.

Maybe you can write next articles referring to this article.
I desire to read more things about it!

Add new comment | arxic Drupal

Greetings! This is my first visit to your blog!

We are a team of volunteers and starting a new project in a community in the same
niche. Your blog provided us valuable information to work on. You have done a extraordinary job!

Add new comment | arxic Drupal

Hello there I am so happy I found your site, I really found you by error, while I was searching on Yahoo for something else, Nonetheless I am here now and would just like to say thanks for a
incredible post and a all round exciting blog (I also love the theme/design),
I don't have time to browse it all at the minute but
I have bookmarked it and also added in your RSS feeds, so when I have time I will be back to read a
great deal more, Please do keep up the superb job.

Add new comment | arxic Drupal

This is very interesting, You are a very skilled blogger.
I have joined your feed and look forward to seeking more of your great post.
Also, I've shared your web site in my social networks!

Add new comment | arxic Drupal

wonderful submit, very informative. I'm wondering why the other experts
of this sector don't notice this. You should proceed your writing.
I am sure, you have a huge readers' base already!

Add new comment | arxic Drupal

Howdy! Would you mind if I share your blog with my myspace group?
There's a lot of people that I think would really appreciate
your content. Please let me know. Cheers

Add new comment | arxic Drupal

It's a shame you don't have a donate button! I'd without a doubt
donate to this brilliant blog! I guess for now i'll settle for book-marking and adding your RSS feed to my
Google account. I look forward to new updates and
will talk about this site with my Facebook group. Talk soon!

tailmed

Voucher cialis generic drugs buy <a href="http://cialisndbrx.com/#">buy cialis online</a> us cialis online pharmacy buy viagra cialis a <a href="http://cialischmrx.com/#">buy cheap cialis online</a> buy cheap generic cialis <a href="http://cialischbrx.com/#">buy generic cialis online</a> order cialis online without otc <a href="http://cialisdbrx.com/#">buy cheap cialis online</a> viagra how it works <a href="http://chviagranrxusa.com/#">buy generic viagra online</a>

Add new comment | arxic Drupal

I am extremely impressed with your writing skills as well as with the
layout on your blog. Is this a paid theme or did you customize it yourself?

Either way keep up the excellent quality writing, it's rare to see a nice blog like this one these days.

Add new comment | arxic Drupal

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

Add new comment | arxic Drupal

Hey there! I'm at work browsing your blog from my new iphone!
Just wanted to say I love reading through your blog and look forward to all your
posts! Carry on the excellent work!

Add new comment | arxic Drupal

Hi I am so delighted I found your blog page, I really found you by accident, while I was researching on Google for something else,
Nonetheless I am here now and would just like to say thanks
for a tremendous post and a all round exciting blog (I also love the theme/design),
I don't have time to read through it all at the minute but I
have bookmarked it and also included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up
the superb job.

Add new comment | arxic Drupal

Write more, thats all I have to say. Literally, it seems as though you relied
on the video to make your point. You clearly know what youre talking
about, why waste your intelligence on just posting videos to your blog
when you could be giving us something enlightening to read?

Add new comment | arxic Drupal

Howdy, i read your blog occasionally and i own a similar one and i
was just curious if you get a lot of spam feedback? If so how do you
protect against it, any plugin or anything you can recommend?
I get so much lately it's driving me crazy so any help is very much appreciated.

Habledy

Order generic cialis india <a href="http://farmingsim.com/#">cheap generic cialis</a> montreal cialis generic <a href="http://customerservicetrainingassociation.co.uk/#">Buy Cialis Online</a> metformin onset cialis generic pills <a href="http://lacreteheritagecentre.com/#">cialis cheap</a> canada cialis generic <a href="http://apteka-nektar.ru/#">cheap generic cialis</a> cialis <a href="http://clubconfuse.com/#">buy generic cialis online</a> buy cialis online pharmacy

Add new comment | arxic Drupal

Your style is unique in comparison to other people I've
read stuff from. Many thanks for posting when you've
got the opportunity, Guess I will just book mark this site.

Viory

Cheap brand cialis <a href="http://cadentfinancial.com/#">cialis online</a> buy cialis online without a prescription <a href="http://bedsgolfunion.org/#">cheap generic cialis</a> buy tadalafil prescription online <a href="http://michael-parent.com/#">buy cheap cialis coupon</a> generic cialis cheapest <a href="http://alanristic.com/#">buy cheap cialis coupon</a> cheap cialis canada <a href="http://blogthebrain.com/#">cheap cialis</a> order cialis online no prescription

Add new comment | arxic Drupal

I’m not that much of a online reader to be honest but your blogs really nice, keep it up!

I'll go ahead and bookmark your site to come back later.
Many thanks

Pages

Add new comment