The requested URL /PHP/php-cgi.exe/a.php was not found on this server

Posted by Alona on Server Fault See other posts from Server Fault or by Alona
Published on 2011-06-15T13:27:11Z Indexed on 2012/06/02 4:42 UTC
Read the original article Hit count: 585

Filed under:
|
|

I have logged in just now so I couldn't edit the previous question I have asked, Sorry :) my last question is The requested URL /PHP/php-cgi.exe/a.php was not found on this server

I have installed on Windows7 apache2.2 and php5.3 when I am trying to execute the *.php file I am getting an error:

404 Not Found "The requested URL /PHP/php-cgi.exe/a.php was not found on this server"

This is my httpd configuration file From httpd.conf: ScriptAlias /cgi-bin/ "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin/"

ScriptAlias /php/ "C:/PHP/" AddType application/x-httpd-php .php Action application/x-httpd-php "C:/PHP/php-cgi.exe"

DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs"

I can execute perl scripts that resides in "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin/" however execution of php scripts results with an error: "The requested URL /PHP/php-cgi.exe/a.php was not found on this server".

Thanks

© Server Fault or respective owner

Related posts about windows-7

Related posts about php5