Open Apache http.conf file and make the following changes.
The following modification is only required for run PHP as CGI.
1. Find the default directory section
#Deny from all
Comment out the following two lines
Deny from all
2. Add the following lines for Module or CGI
# RUN PHP as Module
LoadModule php5_module "D:/php5/php5apache2_2.dll"
AddType text/html .php .php5
AddHandler application/x-httpd-php .php . php5
# RUN PHP as CGI
ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
Allow from all