Last updated June 2, 2011. Created by pbarnett on October 28, 2008.
Edited by Willynux, mike stewart, bryan kennedy, add1sun. Log in to edit this page.

Use the Synaptic Package Manager from the System->Administration menu to find and install the following packages :

  • mysql-server (a metapackage to install the latest version)
  • apache2 (another metapackage)
  • php5 (yet another...)
  • libapache2-mod-php5
  • phpmyadmin
  • libgd2-xpm (the GD library)
  • php5-gd
  • drupal6

This installs drupal in /usr/share/drupal, so you will need to create a virtual host or edit /etc/apache2/sites-available/default to point to this directory.
To do this open terminal from Applications>Accessories and type
gksudo gedit  /etc/apache2/sites-available/default
and replace the path that contains www (by default)

For Clean URLs to work, AllowOverride All should be enabled for directory /usr/share/drupal in /etc/apache2/sites-available/default - /usr/share/drupal should be set as the DocumentRoot in the same file.

The installation of MySQL and phpmyadmin will involve setting up a root password for MySQL - the install procedure should prompt you for this, and the phpmyadmin install will ask for it too.

To enable the Apache rewrite module -

sudo a2enmod rewrite

To increase PHP memory to a more drupal-friendly value, open a terminal and execute

sudo gedit /etc/php5/apache2/php.ini

Change memory_limit to 128M then restart Apache

sudo /etc/init.d/apache2 restart

now go to http://localhost/drupal6/install.php and enjoy!!

Looking for support? Visit the forums, or join #drupal-support in IRC.


Works great! thx

On my system the lines:

/usr/share/drupal needed to change to /usr/share/drupal6

http://localhost/drupal/install.php needed to change to http://localhost/drupal6/install.php

And of course remember to sudo when you restart apache.