1 tar -zxf php-5.3.0.tar.gz
2
3 cd php5.3.0
4
5 ./configure --prefix=/program/php --with-apxs2=/program/httpd/bin/apxs
6
7 make && make install
8
9 cp php.ini-development /program/php/etc/php.ini
修改apache配置
1 AddType application/x-httpd-php .php
2 AddType application/x-httpd-php3 .php3
3 AddType application/x-httpd-php4 .php4
4 AddType application/x-httpd-php-source .phps
在Apache的 htdocs目录下面建一个test.php
<?php phpinfo(); ?>