yum install mysql-server
service mysqld start
#set root password, disable root remote login, remove test database,etc
/usr/bin/mysql_secure_installation
#disable tcp/ip connection of # put skip-networking to section [mysqld] of /etc/my.cn service mysqld restart
setup php
yum install php
setup php-fpm
yum install php-fpm
service php-fpm restart
#please make sure the user/group(default apache/apache) have write permission to /var/lib/php/session folder#you may change user/group in /etc/php-fpm.d/www.conf#you may also change the process manager policy in the above config# pm = static/dynamic
setup phpMyAdmin
yum install phpMyAdmin
#you may wish change /etc/phpMyAdmin/config.inc.php to use unix socket to connect mysql