Several times, many students have complained about the compatibility issues with Drupal and Xampp or Wamp for windows. So, i decided to write this to help them install a test version of their site at localhost in ubuntu.
Step 1: Install Ubuntu 9.10 (Latest)
Step 2: Install LAMP server onto your fresh Ubuntu installation.
1 2 | sudo apt-get install lamp-server^ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin |
Do remember to provide admin password for MySQL database. Also, you will be asked to give admin password for phpmyadmin.
Step 3: Download latest version of Drupal and untar it in /var/www folder.
Step 4: visit http://localhost/phpmyadmin and create a new database for your drupal installation.
Step 5: [Important] Go to /var/www/[your site ]/sites/default and Copy default-settings.php to settings.php. Remember, I have instructed to copy and not move.
Step 6: Permission Settings
1 2 3 4 | cd /var/www/[your-site]/sites/default sudo chmod a+w settings.php cd .. sudo chmod a+w default |
Step 7: Visit: http://localhost/[your site] and provide information about the database you created in step 4.
Step 8: After completion of the installation, remember to undo the write privileges you have given.
1 2 3 4 | cd /var/www/[your-site]/sites/default sudo chmod a-w settings.php cd .. sudo chmod a-w default |
And, this completes your test drupal installation, free from all the hustles of Wamp and Xampp servers. And, it is much faster.

Most Read