Re: a php cgi problem
| From: | Erik | Date: | Tue, 21 May 2002 14:05:39 +0000 |
| Subject: | Re: a php cgi problem | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7062@lists.php.net to get a copy of this message | ||
hi,
that's easy man apache expects perl cgi in "cgi-bin" you must first set de
proper apache directive see /logs/error_mog.log for more inforemation php
cannot execute stuff in cgi-bin unless it is specially configured to do that
you mus setup the proper directives first ..........
"Brian Kim" <dkkim@fl.net.au> schreef in bericht
news:CPEMJGBHAOIKHMKLNLNGIEDACAAA.dkkim@fl.net.au...
> 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
>