Install and Configure WordPress



Now that we have all the components required for running WordPress, we will go ahead with the WordPress installation.
Step 1: Download latest WordPress
#wget http://wordpress.org/latest.tar.gz
Step 2: Extract the tar file.
#tar -xvf latest.tar.gz
Step 3: Copy wordpress folder content to /var/www/html folder
#cp -vR  wordpress/* /var/www/html/
Step 4: Change the owner of /var/www/html to apache user. Because the WordPress files will be manipulated by httpd apache user.
#chown -R apache:apache /var/www/html/*

Now Configuring WordPress

Step 1: cd in to /var/www/html folder
#/var/www/html(note give u directory name)
Step 2: Copy wp-config-sample.php to wp-config.php file.
#cp wp-config-sample.php wp-config.php
Step 3: Open wp-config.php file and add the database details in the following parameters.
// ** 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', 'wordpress_admin');

/** MySQL database password */
define('DB_PASSWORD', 'password');
Now That’s it! If you browse to the IP you will be able to access the WordPress websit