How to install Drupal 7 on Ubuntu 11.4
To install Drupal 7, you have to install LAMP on you machine before. You can see my guide how to install LAMP on Ubuntu 11.4.
Ok. Now you got LAMP on your Ubuntu, we will install Drupal 7 in these steps below:
Step 1: Download Drupal
Go to drupal website: http://drupal.org/project/drupal and download file tar.gz to you pc.
Step 2: Create a database for drupal
Go to phpMyAdmin page: http://localhost/phpmyadmin and log in with your account and create a database named drupal (or whatever you want).
Use this command:
sudo mkdir /var/www/drupal7
Now, unpack downloaded file tar.gz and move it content to folder drupal7. After that you have to copy settings file with this command:
sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
Step 4: Change files permission
Change file permission to writeable with this command:
sudo chmod 666 /var/www/drupal/sites/default/settings.php
sudo mkdir /var/www/drupal/sites/default/files
sudo chmod 666 /var/www/drupal/sites/default/files
Step 5: Install it easy
Now you can open your browser and type: http://localhost/drupal7 and a screen will display and guide you to install drupal 7.
After install successfully you can go to http://localhost/drupal7/ and see your new site buid with drupal7.