安装Apache和PHP

# yum install httpd
# yum install php
# yum install php-mbstring
# yum install php-mysql
# yum install php-pgsql
# chkconfig httpd on
# /etc/rc.d/init.d/httpd start
<?php phpinfo() ?>

如果能够访问到 http://HOST/info.php 并显示PHP的信息,那就可以了。

环境

CentOS6.4(樱花的VPS)
Apache2.2.15
PHP5.3.3