PHP 4.0 Bug #7449 Updated: CGI Error when a php script isn't under c:\inetpub\wwwroot
| From: | iam at asafus dot com | Date: | Sun, 29 Oct 2000 10:02:21 +0000 |
| Subject: | PHP 4.0 Bug #7449 Updated: CGI Error when a php script isn't under c:\inetpub\wwwroot | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36336@lists.php.net to get a copy of this message | ||
ID: 7449
User Update by: iam@asafus.com
Status: Open
Bug Type: IIS related
Description: CGI Error when a php script isn't under c:\inetpub\wwwroot
I made a little research on the problem and these are the results:
1. When I don't work in safe mode (php.ini, safe_mode = off) and don't set doc_root any
value, everything works.
2. Even if I don't work in safe mode and I set doc_root to c:\Inetpub I get the CGI error.
3. Thanks to all those who helped me out, especially Frank Seesink :-)
Asafus Flavius
http://www.asafus.com
Previous Comments:
---------------------------------------------------------------------------
[2000-10-25 08:12:31] iam@asafus.com
This issue has occured on a web server with various web sites on it, using host headers on the same
IP address.
The default web site is on c:inetpubwwwroot, but another site is on c:inetpubsitename.com. When I
set up php.ini for doc_root = c:inetpubwwwroot, only the default web site returned results to the
browser. The other site gave an error message:
--- error start ---
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The
headers it did return are:
--- error end ---
I tried changing the doc_root to c:inetpub, but then both sites gave the error message. When I
changed doc_root to c:inetpubsitename.com, PHP scripts could only be run on that site & the
default web site returned the CGI error.
-- end bug report --
-- start my advice --
I think there should be an ability to specify more than one doc_root in php.ini.
-- end my advice --
Hope this helps,
Asafus Flavius :-)
http://www.asafus.com
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7449