PHP 4.1.0, suEXEC, and #!/usr/local/bin/php
| From: | Brandon Stone | Date: | Tue, 11 Dec 2001 19:07:29 +0000 |
| Subject: | PHP 4.1.0, suEXEC, and #!/usr/local/bin/php | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-5267@lists.php.net to get a copy of this message | ||
Hello,
I am using suexec with apache 1.3.22. When I try to use PHP as a cgi-script
instead of an external parser, I get this annoying #!/usr/local/bin/php on
the top of my page. I found in 4.0.6 if you goto line 702 in
sapi/cgi/cgi_main.c and change
} else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
to this:
}
if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
It fixes the problem, however in 4.1.0 their is no such code. Being able to
execute php inside the suexec sandbox is very attractive. Does anybody know
how to patch 4.1.0.
Thanks,
------------------------------
Brandon Stone
UNIX Systems Administrator
Amherst College
bbstone@amherst.edu