2009
04.07

How-to Install WordPress on Ubuntu (The REALLY Easy Way):

This guide is using Hardy (8.04.1 LTS).

First we need to access the extra repositories into Ubuntu so:
sudo nano /ect/apt/sources.list

Now add the line
deb http://archive.ubuntu.com/ubuntu hardy main restriced multiverse universe

Update the Apt Sources.
sudo apt-get update

Then we need to install LAMP (Linux-Apache-MySQL-PHP) To do so we will use Tasksel.

We need to install Taskel.
sudo apt-get install tasksel

Now install LAMP
sudo tasksel install lamp-server

Enter a root password for MySQL, make sure its a strong password and don’t forget it.

Now for the fun part, Lets install WordPress.
sudo apt-get install wordpress

Now pick where you would like WordPress setup on your server. In this example WordPress will be installed to http://<servername>/wordpress. To customise change the second WordPress to the folder on your Webserver you would like it to point to (ie blog).
sudo ln -s /usr/share/wordpress /var/www/wordpress

Configure MySQL database
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost

Restart Apache
sudo /etc/init.d/apache2 restart

Ok, all the hard work is done.

If your setting up WordPress on your local PC all you will need to do is go-to http://localhost/wordpress(if you set the directory to WordPress like above) and follow the wizard.

Once you have run the wizard you will need to copy the config so that it can be access externally. Make sure you set <yourdomain> to your fully qualified domain name (ie everyrandom.com).
sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-<yourdomain>.php

If you are installing WordPress on a remote server you will need to run the above command BEFORE you can access the setup wizard. If you do not you will get PHP errors or a 404.

Share and Enjoy:
  • Print
  • Facebook
  • RSS
  • Twitter
  • Digg
  • Slashdot

No Comment.

Add Your Comment