Bug #7449 Updated: CGI Error when a php script isn't under c:\inetpub\wwwroot

From: Date: Sun, 11 Nov 2001 17:04:11 +0000
Subject: Bug #7449 Updated: CGI Error when a php script isn't under c:\inetpub\wwwroot
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70120@lists.php.net to get a copy of this message
ID: 7449 Updated by: sander Reported By: iam@asafus.com Old Status: Open Status: Closed Bug Type: IIS related Operating System: Windows 2000 PHP Version: 4.0.3pl1 New Comment: I don't think this is a bug in PHP. Anyway, please upgrade to the latest version. Reopen this report if the problem still exists. Previous Comments: ------------------------------------------------------------------------ [2000-10-29 05:02:21] iam@asafus.com 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 ------------------------------------------------------------------------ [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:\inetpub\wwwroot, but another site is on c:\inetpub\sitename.com. When I set up php.ini for doc_root = c:\inetpub\wwwroot, 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:\inetpub\sitename.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 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=7449&edit=1

« previous php.dev (#70120) next »