#48776 [Com]: php-ini setting doc root

From: Date: Wed, 11 Nov 2009 14:30:10 +0000
Subject: #48776 [Com]: php-ini setting doc root
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3092@lists.php.net to get a copy of this message
ID: 48776 Comment by: narazana at googlemail dot com Reported By: woutersch at yahoo dot com Status: Open Bug Type: Documentation problem Operating System: Win Vista Ultimate PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2009-07-02 13:51:31] 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!" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48776&edit=1

« previous php.doc.bugs (#3092) next »