yum -y install mysql-server httpd php php-mysql unzip wget
chkconfig httpd on
chkconfig mysqld on
/etc/init.d/mysqld start
/etc/init.d/httpd start

mysql -u root -p
CREATE USER wordpress@localhost IDENTIFIED BY “wordpress”;
OR SET PASSWORD FOR wordpress@localhost= PASSWORD(“wordpress”);

create database wordpress;
GRANT ALL ON wordpress.* TO wordpress@localhost;
FLUSH PRIVILEGES;

/etc/httpd/conf/httpd.conf

<VirtualHost *:80>
ServerAdmin tecmint@tecmint.com
DocumentRoot /var/www/html/wordpress
ServerName wordpress
ErrorLog /var/log/httpd/wordpress-error-log
CustomLog /var/log/httpd/wordpress-acces-log common
</VirtualHost>

service httpd restart

# cd /var/www/html/wordpress
# cp wp-config-sample.php wp-config.php

# vi wp-config.php
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘database_name_here’);

/** MySQL database username */
define(‘DB_USER’, ‘username_here’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘password_here’);

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);

/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);