How to install WordPress 3.3 on ubuntu 11.10

March 20, 2012 in CMS

How to install WordPress 3.3 on Ubuntu Part 4:

Download and extract wordpress

Now that our system is ready to host a cms like WordPress we can go to WordPress official site and download WordPress. 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 folders /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 /home/(your_account_name)/Downloads/

You should see the downloaded wordpress 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 wordpress 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 WordPress package and also another file index.html.

Ok now we will extract this file here by typing:

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

Great, now you have a directory inside the /var/www/ with the name "wordpress"

Note!

if you want your wordpress 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/wordpress into /var/www
cd /var/www/wordpress/
sudo cp -r * /var/www
sudo /etc/init.d/apache2 restart

Pages: 1 2 3 4 5