php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48776 php-ini setting doc root
Submitted: 2009-07-02 13:51 UTC Modified: 2009-11-16 13:06 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: woutersch at yahoo dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Win Vista Ultimate
Private report: No CVE-ID: None
 [2009-07-02 13:51 UTC] woutersch at yahoo dot com
Description:
------------
php-ini on "doc_root" says:
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; doc_root = e:\Workfiles1\inetpub\wwwroot

Activated this gave the "no input file specified" on my IIS. It cost me a lot of time, installing and un-installing, googling to find the bug. For IIS the doc_root should be commented out. I had read this text many times, but did not get it. Put explicitly there something like "For IIS comment doc_root out!"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-11 14:30 UTC] narazana at googlemail dot com
I just finished installing PHP with FastCGI for IIS 7 in Windows 2008.
I gave me the infamous yell "No input file specified." when I browsed to my new virtual directories which was created outside the C:\inetpub\wwwroot.

I commented doc_root out. It was still yelling "No input file specified." The problem was the "open_basedir = C:\inetpub". So, I comment out the open_basedir and it's working just fine. I still have doc_root uncommented at the moment because the doc_root is set to nothing like this doc_root =

If it doesn't harm to comment out the doc_root I think I will comment it out too.
 [2009-11-16 13:06 UTC] vrana@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 10 14:00:01 2026 UTC