I've been trying to get the cgi version of php working with Apache and
suexec but so far I have not had much success.  I've installed the Apache
module version of php and it seems to work fine. I then installed the 
cgi version of php and it too seems to work fine as long as it
doesn't run through suexec.  Suexec works fine for other (perl, c,
etc...) cgi's.

Here's what I have in Apache's httpd.conf:
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php.cgi
  
When I try to access a .php file I get an error about the command not
being in the document root.  This is one of the tests suexec performs and
it is true, the cgi-bin directory (and hence the php binary) is not under
the document root (although the .php file is).

If I change httpd.conf to this:
ScriptAlias /php-bin/ "/local/www/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php /php-bin/php.cgi
 
Now the php binary is under the document root but when I try to access a
.php file I get an error that the target uid/gid does not match that of
the directory or program.  This is also true since the php binary is owned
by the web server and the .php file is owned by another user.

So my question is "What am I missing?".  How can I ever get the cgi
version of php to work with suexec?  The php binary is owned by the web
server but the .php files will be owned by other users.  

Here is some more information about the environment in which I am working
in case it is relevant:

Solaris 7
Apache 1.3.17
php 4.04pl1

I'm just about ready to give up on this one.  Thanks in advance for any
and all help.
 
-john



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to