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

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> \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


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


buy generic cialis uk

expired cialis 3 years <a href=" http://xiazai.shanqicn.com/home.php?mod=space&uid=1070661 ">buy generic cialis</a> and <a href=" https://www.woodsly.com/user/109455 ">generic cialis</a> and <a href=" http://lyjac.top/home.php?mod=space&uid=255912 ">cialis online</a> and <a href=" http://tuan.guoshu.la/home.php?mod=space&uid=1613751 ">cialis 20mg</a> and <a href=" http://mb.lckpw.org/home.php?mod=space&uid=1179618 ">generic cialis</a> and <a href=" http://tp.jsq001.com/home.php?mod=space&uid=97431 ">buy generic cialis</a> tiujana cialis <a href=" http://fs13.net/forum/profile.php?mode=viewprofile&u=101431 ">cialis 20mg</a> and <a href=" ">cialis price</a> and <a href=" http://hamsafon.tj/user/ysbpeono/ ">cialis 20mg</a> and <a href=" http://bbs.bolaiedu.com/home.php?mod=space&uid=989867 ">cialis price</a> and <a href=" https://buycabinetdirect.com/index.php?option=com_k2&view=itemlist&task=... ">buy cialis</a> and <a href=" http://www.alcohol-injection.com/forum/member.php?u=768083 ">buy cialis online</a>
http://www.chaozhiwd.cn/space-uid-17909.html cialis price

golden goose shoes

I simply needed to thank you so much once again. I am not sure the things that I would've done in the absence of those information documented by you regarding such a industry. Entirely was an absolute traumatic issue in my view, but discovering a new skilled manner you managed the issue made me to jump over happiness. I am just happy for the information and even hope that you know what a powerful job you happen to be providing training many people through a blog. I am sure you have never come across any of us.

cheap viagra next day delivery uk


[url=http://prostitutkilov.xyz]юные сучки бляди[/url] , размещенные на нашем ресурсе, настолько прекрасны, что выбор будет сделать совсем не просто, но выбрав самую развратную красотку-путану, она воплотит в реальность самые смелые сексуальные фантазии.

outlet golden goose

My wife and i felt very joyful John managed to finish off his researching via the precious recommendations he grabbed from your site. It is now and again perplexing to just be freely giving steps which usually other people could have been selling. So we do understand we have the blog owner to give thanks to for that. The type of explanations you made, the straightforward web site menu, the relationships your site aid to foster - it is most remarkable, and it is aiding our son and our family recognize that that theme is interesting, which is certainly pretty fundamental. Many thanks for the whole lot!


Add new comment