I am having a problem with Php/Apache for Windows.
I have installed php and apache, and modified the Apache httpd.conf in the
ways followed:
<Directory "C:/Apache/cgi-bin">
Options ExecCGI
</Directory>
ScriptAlias /php/ "c:/Php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
I then run the Apache server, and into a browser type
http://localhost/cgi-bin/test.php
The test.php file contains the text:
<?php echo "Hello"; ?>
The page that loads in the browser says: "The server encountered an internal
error or misconfiguration and was unable to complete your request".
And the error log says 2 things:
c:/apache/cgi-bin/test.php is not executable; ensure interpreted scripts
have "#!" first line
(2)No such file or directory: couldn't spawn child process:
c:/apache/cgi-bin/test.php
Can anyone help ????