php 完全安装
1.InstallApache(httpd)WebserverandPHP5.3.9
yuminstallhttpdphpphp-common
2.InstallPHP5.3.9modules
yuminstallphp-pecl-apcphp-cliphp-pearphp-pdophp-mysqlphp-pgsqlphp-pecl-mongophp-sqlitephp-pecl-memcachephp-pecl-memcachedphp-gdphp-mbstringphp-mcryptphp-xml
3.StartApacheHTTPserver(httpd)andautostartApacheHTTPserver(httpd)onboot
/etc/init.d/httpdstart##userestartafterupdate
##OR##
servicehttpdstart##userestartafterupdate
chkconfig--level235httpdon
4.CreatetestPHPpagetocheckthatApache,PHPandPHPmodulesareworking
<?php
phpinfo();
?>
5.EnableRemoteConnectiontoApacheHTTPServer(httpd)–>OpenWebserverPort(80)onIptablesFirewall(asrootuseragain)
vim/etc/sysconfig/iptables
-AINPUT-mstate--stateNEW-mtcp-ptcp--dport80-jACCEPT
serviceiptablesrestart
##OR##
/etc/init.d/iptablesrestart
原文地址:http://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/