Install WordPress on Ubuntu 12.04 with Nginx Web Server

Step One – Download WordPress from the official website

Navigate to your /tmp directory

wget http://wordpress.org/latest.tar.gz

Unzip the installed package using below command

tar -xzvf latest.tar.gz

Step Two – Create the wordpress database

Connect to mysql shell

mysql -u root -p 

Log in using mysql password for root user. Then create a new database for wordpress installation.

CREATE DATABASE wordpress;

Step Three – Move the unzipped WordPress package to your Nginx web root directory

mv /tmp/wordpress /var/www/www.example.com/web/wordpress

Step Four – Configure WordPress

Then copy the wordpress sample-config file as shown below. This file contains database connection settings.

cp wp-config-sample.php wp-config.php

Then edit this file wp-config.php using any editor

vi wp-config.php

Find the below section in the wp-config.php file

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'wordpressuser');

/** MySQL database password */
define('DB_PASSWORD', 'password');

Save and Exit

Step Five – Access the WordPress installation. It will look like below image.

login-wordpress-data

  • http://photosparthy.tumblr.com/post/59975835150/how-to-setup-apache-virtual-hosts-in-ubuntu virtual host

    Just desire to say your article is as astounding. The clearness on your submit is just nice and i can suppose you are knowledgeable on this subject. Well with your permission let me to clutch your RSS feed to stay updated with forthcoming post. Thanks one million and please continue the gratifying work.