php: PHP Version 5.0.0b4
apache: Apache/2.0.49 (Win32)
1,做为cgi来运行
2,做为module来运行
1,做为apache2的cgi运行
ScriptAlias /php/ "/usr/local/bin/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi"
上面的代码添加到httpd.conf
2,做为apache的模块运行
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
AddType application/x-httpd-php .php
上面的代码添加到httpd.conf