Hi, I installed php 4.0.4 (cgi binary) and apache 1.3.14 on window 2000. When I run <?php phpinfo(); ?> in the 'DocumentRoot' directory, it works. But when I run a php cgi script stored in the "cgi-bin" directory, it gives an error: "Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request."
So I tried to add "#!c:/php/php.exe" to the first line of the above cgi-script, it works, but this time, #!c:/php/php.exe is displayed in the output of the cgi-script. I followed the standard instructions, but I am not sure what went wrong. Any idea on how to fix this problem? Brian ----------------------------- My httpd.conf has the following lines: ... DocumentRoot "D:/Web" <IfModule mod_alias.c> ... ScriptAlias /php/ "C:/php/" ScriptAlias /cgi-bin/ "D:/Web/cgi-bin/" <Directory "D:/Web/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> </IfModule> --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 2002-04-02 -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php