WordPress installation on Ubuntu Server

In this short tutorial we will install WordPress on a Ubuntu 11.04 server. Before you begin you will need to configure and verify network connectivity. You will also need to install the following software:

  • Apache2
  • php5
  • vsftp (or your favorite ftp program)
  • openssh-server (or your favorite ssh program)
  • mysql


To begin installing WordPress, first we will download and install the WordPress software: wget http://wordpress.org/latest.tar.gz

Then extract the file: sudo tar -zxvf latest.tar.gz The extracted file is named wordpress.

Now move the wordpress folder into the /var/www directory: sudo mv wordpress /var/www/wordpress

Change directory to /var/www: cd /var/www

Start the mysql software installed on your server: mysql -u -root -p

Next, enter the command: Create database wordpress; This command creates a database called wordpess.

To confirm that the database was created successful enter the command: Show databases;

Once you have confirmed the “wordpress” database enter the command: Exit

Rename your wp-config.sample.php file to wp-config.php:  sudo mv wp-config-sample.php wp-config.php

Next, edit the file wp-config.php: sudo nano wp-config.php

For the next step we will install php5-mysql. This is very important:  sudo apt-get install php5-mysql

Finally, restart apache: sudo /etc/init.d/apache2 restart

Test to ensure that the install was successfully- enter your ip address into your internet browser and hit enter. If the install was successful you should be  directed to a WordPress activation page.

Your done!,  WordPress has now been installed.

To find out how to use one WordPress database for several blogs… Check-outhttp://flawlesspix.com for more info.

  • 126 Users Found This Useful
Was this answer helpful?

Related Articles

Direct emailing

Direct email delivery is disabled on the network for server packaged ordered after 5/15/2012....

Check and open ports in CentOS / Fedora / Redhat

  If you want to open or close a port for a Linux firewall you have to edit the rules in the...

Get started with your Control Panel (Webmin/cPanel)

  Webmin: Webmin is disabled by default, you will have to enable it: - Access the server via...

Run File System Check in Linux

  # fsck fsck is used to check and optionally repair one or more Linux file systems....

How to restart Webmin

Here is a little helper if your Webmin does not respond. Just run this command from the...