Can you please help me?
| From: | JR | Date: | Mon, 14 Jan 2002 17:56:24 +0000 |
| Subject: | Can you please help me? | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8203@lists.php.net to get a copy of this message | ||
I followed your directions for setting up php on Windows XP with IIS. I ran into one of your
problems you described in your FAQ but I don't understand how to fix the problems you
described. I highlighted the parts I don't understand how to fix in bold font, can you be a
little bit more descriptive on how to fix this?
9. Windows: I have installed PHP, but when I to access a PHP script file via my browser, I get the
error: cgi error:
The specified CGI application misbehaved by not
returning a complete set of HTTP headers.
The headers it did return are:
This error message means that PHP failed to output anything at all. To get to see a sensible error
message, from the command line, change to the directory containing the PHP executable (php.exe on
Windows) and run php -i. If PHP has any problems running, then a suitable error message will be
displayed which will give you a clue as to what needs to be done next. If you get a screen full of
html codes (the output of the phpinfo() function) then PHP is working.
Once PHP is working at the command line, try accessing the script via the browser again. If it still
fails then it could be one of the following:
a.. File permissions on your PHP script, php.exe, php4ts.dll, php.ini or any PHP extensions you
are trying to load are such that the anonymous internet user ISUR_<machinename> cannot access
them.
b.. The script file does not exist (or possibly isn't where you think it is relative to your
web root directory). Note that for IIS you can trap this error by ticking the 'check file
exists' box when setting up the script mappings in the Internet Services Manager. If a script
file does not exist then the server will return a 404 error instead. There is also the additional
benefit that IIS will do any authentication required for you based on the NTLanMan permissions on
your script file.
Thanks,
Jeff