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.