yum -y install httpd PHP MysqL MysqL-server PHP-MysqL httpd-manual mod_ssl mod_perl mod_auth_MysqL PHP-mcrypt PHP-gd PHP-xml PHP-mbstring PHP-ldap PHP-pear PHP-xmlrpc MysqL-connector-odbc MysqL-devel libdbi-dbd-MysqL
安装完后,给MysqL 授权
chgrp -R MysqL /var/lib/MysqL
chmod -R 770 /var/lib/MysqL
service MysqLd start
MysqLadmin -u root password ‘新密码’ [引号内填密码]
http://www.webtatic.com/packages/PHP53/
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum --enablerepo=webtatic install PHP
OK~