Re: apache php perl
One way that I've seen it done is to recompile apache w/suexec
directory to one above all the user cgi-bin directories. Then a copy of
the php-cgi binary is put into each user's cgi-bin.
I'm seem to remember some other solutions to this issue, since it seems
to come up every now and then.
should turn up other discussions, on this and other mailing lists.
On Friday, December 6, 2002, at 02:31 PM, Adam Henry wrote:
I'm aiming to use PHP and Perl with Apache, in a suexec environment.
The problem I am running into is that mod_php doesn't work with
suexec, so I am forced to use php-cgi. Suexec is compiled with
'/usr/lib/cgi-bin' as its root directory, so even if the interpreter
for php4 is in this directory, when Perl scripts are run Suexec
complains because they are not in this root (they're in the users'
home directory under /cgi-bin/).
Since I can have only one root for suexec, I would have to make that
root general enough to contain both directories. It seems that
setting the root to '/' is a bad idea.
Would compiling php into apache solve this problem? I could then
set suexec root to something like '/home/www', which contains all the
actual scripts to be run in the suexec container?
If I put the perl interpreter into '/usr/lib/cgi-bin', and also set
suexec root to this, would that be the best solution?
Thank you all for any insight on how to do this in the most secure
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact