php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7449 CGI Error when a php script isn't under c:\inetpub\wwwroot
Submitted: 2000-10-25 08:12 UTC Modified: 2001-11-11 12:04 UTC
From: iam at asafus dot com Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.3pl1 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: iam at asafus dot com
New email:
PHP Version: OS:

 

 [2000-10-25 08:12 UTC] iam at asafus dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-29 05:02 UTC] iam at asafus dot 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
 [2001-11-11 12:04 UTC] sander@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 04:01:29 2025 UTC