How to install Drupal 7 on ubuntu

June 26, 2012 in CMS

How to install Drupal 7 on Ubuntu Part 4:

Download and extract Drupal 7

Now that our system is ready to host a cms like Drupal we can go to Drupal official site and download Drupal. There are more than one packages that you can download. In this tutorial I use the one with the ending tar.gz. When you download this with firefox you can find that file in your local folder /home/(your_account_name)/Downloads/

Ok now we have to copy and extract that file in /var/www/ folder. This folder is the default apache folder. To do that open a terminal and type:

cd ~/Downloads/

You should see the downloaded Drupal package in this folder if you type:

ls

Now we have to copy that file in the apache default folder. So type:

sudo cp (the name of drupal package including the ending tar.gz) /var/www

If all was ok you can now find this file also in /var/www/ directory.

Let’s check it out. Type:

cd /var/www/

ls

you should be able to see the Drupal package and also another file index.html.

Ok now we will extract this file here by typing:

sudo tar -xvf (the name of drupal package including the ending tar.gz)

Great, now you have a directory inside the /var/www/ with the name “drupalxxx” (where xxx is the version of rupal)

Let’s rename that folder.

sudo mv drupalxxx /var/www/drupal

I just do that because its annoying to write “.” , “-” and numbers in your browser.

Note!

if you want your Drupal site to be the default site of your server and appear under http://localhost you should follow the next steps.

All you have to do is to delete the index.html from /var/www/
sudo rm /var/www/index.html
And copy everything from /var/www/drupal into /var/www
cd /var/www/drupal/
sudo cp -r * /var/www
sudo /etc/init.d/apache2 restart

 


Pages: 1 2 3 4 5