Re: Problems with PHP4+Apache+Win2k
| From: | David Robley | Date: | Tue, 27 Jun 2000 07:45:29 +0000 |
| Subject: | Re: Problems with PHP4+Apache+Win2k | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-674@lists.php.net to get a copy of this message | ||
On 27 Jun, Guillaume Patry wrote:
> Hello,
>
> I have some problems with PHP4RC binaries downloaded from php.net and Apache1.3.12 binaries fro
> win32 running under win2k Pro
>
> php is correctly running under IIS5.0, but when I try to execute a PHP script from IE5, i have
> this error on the browser :
>
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable to complete your
> request.
>
> On the Apache logs I have this line :
>
> [Mon Jun 26 18:12:18 2000] [error] [client 192.192.192.14] (2)No such file or directory:
> couldn't spawn child process: c:/inetpub/wwwroot/php/enter.php
>
> My php.ini seems to be right, I have turn the ... On
>
> in my httpd.comf for Apache, i have this lines :
>
> ScriptAlias /cgi-bin/ "C:/Inetpub/wwwroot/php/"
> ScriptAlias /php4/ "C:/Inetpub/php4/" ;where php is installed
>
> <Directory "/cgi-bin">
> AllowOverride None
> Options All ExecCGI
> </Directory>
>
> AddType application/x-httpd-php .php .php3 .phtml
> Action application/x-httpd-php "/php4/php.exe"
>
> In my script i have inserted the line #!
>
> I have test with a simple php script :
>
> #!
> <?php
>
> echo "<html><body><h1>Hello
> World</h1></body></html>";
>
> ?>
>
> Could someone help me ?
>
> Guillaume PATRY.
Take the first line #! out of your script and move your script out of
the cgi-bin directory and try again. It looks like you are trying to
execute the script rather than paerse it with PHP.
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA