# service mysqld start
And when you do run this, the mysqld start up script will give an output that will only be displayed when you attempt to start mysqld for the first time. And that is to set a password to the mysql root account and run the /usr/bin/mysql_secure_installation. Now if you have a strict security requirement, you might want to take heed. Well I am going to stick with the /usr/bin/mysql_secure_installation script, since it will make your life so easy, when installing MySQL of course.
What the /usr/bin/mysql_secure_installation will do is pretty much the following:
1. Set a password for the root account
2. Remove all anonymous user account.
3. Disable remote root login, in other words removing any root@'*' entry from the mysql.user table.
4. Drop the database called test
5. Reload privileges, which is typically what you would do when changes are made to the mysql.user table.
I am not going to open up the port 3306 on iptables since the mysql database is going to be running on the same host as where the wordpress is going to be running from.
Right, download the latest wordpress from the link http://wordpress.org/latest.tar.gz
Right, I might have mention that I would be install wordpress from the EPEL yum repository, and as it turns out, the wordpress has all sorts of weird dependencies which I wasn't willing to force (which you can when using yum) and break the dependencies on any other packages that are already installed.
Since I've download the latest wordpress tar ball into the root home directory, extract the tarball into the directory /var/www
# cd /var/www/html
# tar xvfz ~/latest.tar.gz
# mv wordpress blog
Make a copy of the wp-config-sample.php and call it wp-config.php. This should be made from the directory /var/www/html/blog
# cd /var/www/html/blog
# cp -p wp-config-sample.php wp-config.php
Edit the file wp-config.php appropriately, especially the database-related connection parameters.
The next thing that should be done would to change the authentication unique keys and salts. Yep, it a mouthful, but it has to be done (I think, not sure if it's optional). Since this has been mentioned in the installation steps, I thought I should just do as stated in the docs.
Fire up the browser and point it to the URL https://api.wordpress.org/secret-key/1.1/salt/.
Copy and paste the contents into the wp-config.php appropriately.
Apparently I missed out on the php-mysql package. To install it simply run yum install -y php-mysql php-pdo
php-pdo is the dependency require by php-mysql.
Apparently httpd requires a restart after php-mysql has been installed.
Open up your browser again and point it to the URl http://hostname
And voila you know have a running Wordpress copy, hopefully.