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 to complete the installation.


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

3 thoughts on “Install Drupal 7 in Ubuntu 12.04

  1. Zubair

    Hi, in some tutorial they are saying for creating some database too, while here I can not see the creation of any database, Is it tutorial is tested by some friend, Please let me know if it is working.


    1. scott Post author

      Thanks! Ubuntu creates and sets up the database automatically for you.

  2. John

    I need where I put my Own website ,My own HTML and css files, I nned sites/all/themes/


Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.