Bug #16111 Updated: IIS/CGI only gives "Security Alert! PHP CGI cannot be accessed directly."

From: Date: Tue, 18 Jun 2002 09:48:22 +0000
Subject: Bug #16111 Updated: IIS/CGI only gives "Security Alert! PHP CGI cannot be accessed directly."
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-11091@lists.php.net to get a copy of this message
ID: 16111 Updated by: derick@php.net Reported By: ramac10@hotmail.com -Status: Critical +Status: Open Bug Type: Documentation problem Operating System: Windows PHP Version: 4.2.1 New Comment: Leaving this open as a doc problem. Derick Previous Comments: ------------------------------------------------------------------------ [2002-06-18 05:39:30] michael@phpdevshed.com Ok .. Big Oops No BUG! Big lesson: This is to do with permission settings when installing php. Make sure your IIS user or everybody has permissions to access php and dlls in the php directory. Sorry guys :) ------------------------------------------------------------------------ [2002-06-18 05:15:53] michael@phpdevshed.com >The problem was the php.exe was not reading the php.ini >in the system32 directory as per normal. Sorry I meant to say "winnt" folder and not "system32" ------------------------------------------------------------------------ [2002-06-18 04:05:09] mfischer@php.net It's c:\winnt\ as stated in http://cvs.php.net/co.php/php4/win32/install.txt ------------------------------------------------------------------------ [2002-06-18 03:59:42] michael@phpdevshed.com Ok people here is the problem. I had the same the problem on a newly built server Win2K SP2 with the latest PHP release. After hours of messing around to get this thing to work - I finally found the problem. The problem was the php.exe was not reading the php.ini in the system32 directory as per normal. I ran a phpinfo() from the commmand line (DOS Window) checked the "Configuration File (php.ini) Path" and surely enough the path was pointing to where my php scripts where located on the webserver doc root (e.g. c:/www/www.umm.com/doc/php.ini), so I moved the php.ini file to this folder - and guess what? it worked. I can't see anywhere where I can set the configuration file path - and i don't think its very wise to store php.ini in the web folder. Is this a bug? If so please can you fix this ASAP - this is truly a show-stopper! ------------------------------------------------------------------------ [2002-06-03 07:26:10] mfischer@php.net Updated version, OS, Summary, reclassified as documentation problem. As mentioned already, the way to go is to set cgi.force_redirect = 0 in php.ini . It's now documented in php4/win32/install.txt but needs to be properly documented in the manual too (especially in the ini settings and the http://php.net/security.cgi-bin page). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16111 -- Edit this bug report at http://bugs.php.net/?id=16111&edit=1

« previous php.bugs (#11091) next »