SV: shebang through suid-wrapper (execv)

From: Date: Fri, 19 Jan 2001 20:54:07 +0000
Subject: SV: shebang through suid-wrapper (execv)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-44600@lists.php.net to get a copy of this message
Jason, thanks alot! Should this be documented somewhere, anyone? Regards, Johan > Your problem has to do with the combination of your suexec-like > cgi-wrapper and the > detection algorythem implied in php. CGI mode of php detects your > webserver by looking at > various environment rules (eg. SERVER_SOFTWARE). When you a cgi > is executed by > the webserver (ex. wrapper.cgi), PATH_TRANSLATED and/or > SCRIPT_FILENAME is > set by the webserver to point to the script you just executed, > which is wrapper.cgi. PHP sees this > and then decides to execute wrapper.cgi. All you need to do to > fix your problem is set > PATH_TRANSLATED to the name of the script you want to run.

« previous php.dev (#44600) next »