#4426 [Opn->WFx]: php when run w/ binfmt_misc does not work w/ apache

From: Date: Mon, 03 Apr 2006 07:33:34 +0000
Subject: #4426 [Opn->WFx]: php when run w/ binfmt_misc does not work w/ apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95231@lists.php.net to get a copy of this message
ID: 4426 Updated by: tony2001@php.net Reported By: kstone at trivergent dot net -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0 New Comment: As far as I understand, this is no longer valid, since we have separate server APIs and none of them require to modify the code. Previous Comments: ------------------------------------------------------------------------ [2001-02-10 14:19:43] jimw@php.net refiled against 4.0. ------------------------------------------------------------------------ [2000-05-12 11:39:44] kstone at trivergent dot net Running php with binfmt_misc on linux is beautiful. You set it so that .php3 files are run automagically by /usr/bin/php3. This allows you to do things like ./index.php3. (No #! at the top of the file at all.) You can run php under suexec transparently and without anyone modifying their code. The problem is that main.c does some environment variable checking. If it sees "SERVER_NAME", etc, it assumes that it should be in cgi mode. Putting a "cgi=0"; after the checks fixes that problem. It might be nice to offer that as a standard option to "configure". It's a really neat way to use php. It fixes a lot of security problems with cgi mode, lets you run with suexec, etc. There is an option "--force-cgi-mode", would it be possible for someone to add a "--force-no-cgi-mode" or "--force-interpreter-mode" ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=4426&edit=1

« previous php.bugs (#95231) next »