yum -y install xxx
yum y remove xxx
1.mysql
--mysql遇到问题重启(reboot), 直接mysql -u root,然后set password for root@localhost = password('123')
--Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)查看 '/var/lib/mysql/'目录下不存在‘mysql.sock’文件,修改/etc/my.cnf文件,
2.Apache中加载php模块
#cp php.ini-dist /usr/local/lib/php.ini
#vim httpd.conf
查看是否有下面这句话,没有则添加
LoadModule php5_module modules/libphp5.so
找到“#AddType application/x-gzip .gz .tgz”添加
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps