Install Drupal 7 in Ubuntu 12.04

By | 2012/08/08

Drupal 7 is provided in Ubuntu 12.04. I’ll show you how to get it up and running!


1. Install the package drupal7:

$ sudo apt-get install drupal7


2. Create the following apache site configuration file:

$ sudo nano /etc/apache2/sites-available/drupal7

Alias /drupal7 "/usr/share/drupal7"
< Directory /usr/share/drupal7 >
  Options -Indexes FollowSymLinks MultiViews
< /Directory >


3. Enable the site:

$ sudo a2ensite drupal7


4. Restart apache:

$ sudo service apache2 reload


5. Go to http://myserver.com/drupal7/install.php to complete the installation.

drupal_site

Done! The server alias can of course be changed to anything desired.