[PHP-DEV] SV: shebang through suid-wrapper (execv) From: Johan Ekenberg (johan <email protected>)
Date: 01/19/01

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.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>