1.#yum -y install httpd php mysql-server php-mysql
2.开启服务
#service httpd start
#service mysqld start
3.修改httpd配置文件
#vi /etc/httpd/conf/httpd.conf
4.重启httpd
#service httpd restart
或者#/etc/init.d/httpd restart
注:httpd-devel
php-common php-gd php-mbstring php-mcrypt php-devel php-xml
mysql-devel