php: PHP Version 5.0.0b4
apache: Apache/2.0.49 (Win32)
1, run as cgi
2, run as module
1, run as apache2's cgi run
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php -cgi.exe"
Add the above code to httpd.conf
2 and run it as an apache module
LoadModule php5_module "c:/php/sapi/php5apache2.dll"
AddType application/x-httpd-php .php
Add the above code to httpd.conf