Re: php4, windows 98/ME, and pws4/apache.

From: Date: Thu, 28 Dec 2000 15:43:13 +0000
Subject: Re: php4, windows 98/ME, and pws4/apache.
Groups: php.install 
Request: Send a blank email to php-install+get-1366@lists.php.net to get a copy of this message
Hi Josh > Since you're running php as CGI, does your test script have a > #!/php4/php.exe > line at the top of it? So it should look like this: > > #!c:/php4/php.exe > <? phpinfo(); ?> Thanks, I'm not a CGI guy. Didn't really think that was needed. Now that the ISAPI module has been added in 4.0.4, its real tricky to get all this correct, especially if you try to go one way, it doesn't work, and you switch to the other method. So, before adding the line, I get: 1) browser HTTP 500 Internal Server Error msg 2) Error log written: c:/inetpub/scripts/php/a.php is not executable; ensure interpreted scripts have "#!" first line So, I add the line #!c:/inetpub/scripts/php/php.exe and now I get 1) same browser msg 2) Error log written: Premature end of script headers: c:/inetpub/scripts/php/a.php > That would probably explain the error message. As for your frustration, I > can assure you it's not PHP's problem.... it's 99.9999999% always your > configuration. ya, I believe you. I guess I'm REAL CLOSE to re-installing Windows on this machine. I just did it a few weeks ago, so I won't lose too much. > Also, your Action line doesn't look correct... although I wouldn't really > know :) the line you mention is directly out of the documentation. But here's my lines from my installed .CONF Alias /scripts/ "C:/inetpub/scripts/" <Directory "C:/inetpub/scripts"> Options Execcgi </Directory> ScriptAlias /php4/ "C:/inetpub/scripts/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "c:/inetpub/scripts/php/php.exe" I've added the ALIAS because of another app that has stuff in my /scripts/ directory. So, at present, I can use either of these URLS: 1) http://localhost/php4/a.php -- gets the server error 2) http://localhost/scripts/php/a.php -- http 400 bad request - the Error log: Invalid URI in request GET /scripts/php/a.php HTTP/1.1 thx, jaymer...

« previous php.install (#1366) next »