Re: CGI error

From: Date: Thu, 09 Aug 2001 10:49:13 +0000
Subject: Re: CGI error
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-61971@lists.php.net to get a copy of this message
i tend to get this error when the page being called doesn't exist. check the link and the file name Steve "Phil Driscoll" <phil@dialsolutions.co.uk> wrote in message news:01080909463405.04245@linux... > On Thursday 09 August 2001 09:46, karthik wrote: > > Hi, > > > > In install.txt there seems to be settings on how to install under various > > web servers. > > Well what about this bit: > > You have installed PHP, but when try to access a php script file via your > browser, you 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. > From the command line hange to the directory containing php.exe. Run > php.exe -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 ok. > > Once php is working at the command line, try accessing the php script via > the browser again. > If it still fails then it could be one of the following: > > 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. > > 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. > -- > Phil Driscoll

« previous php.general (#61971) next »