php only works in web root directory
| From: | Philip Tanner | Date: | Fri, 11 Oct 2002 19:01:32 +0000 |
| Subject: | php only works in web root directory | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8769@lists.php.net to get a copy of this message | ||
I'm sure this is probably an easy one, but I'm stuck. I have php
installed on a W2K system running IIS. I've gone through the install notes
several times but I can't seem to get .php files working throughout the web
site's directory structure.
I've got an index.php file under root which comes up with no problem.
However, if I name a file index.php in a directory underneath the root
level, I get the following:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
When I look at the source I see:
<head><title>Error in CGI Application</title></head>
<body><h1>CGI Error</h1>The specified CGI application misbehaved by not
returning a complete set of HTTP headers. The headers it did return
are:<p><p><pre></pre>
I can take this file and move it into the web root and it works fine.
Any ideas?
Thanks,
Phil. Tanner
philip.tanner@stratus.com