Hi, I've almost got this sorted now but not quite.
I have got php to run as a module with no probs.
I have also got cgi scripts to run from my user space no probs.
I have also setup suexec so that a cgi script that contains whoami will show my username and not nobody.
I want the same to happen for php, so I have setup php as cgi instead of a module so that it is forced through suexec.
The scripts run fine but do not change user. If I change permission to 700 I get the Internal server error but no suexec log. So the user is not been changed on the script.
What do I need to add to httpd.conf so that all php or sphp or php3 (or whatever extention you think i should use) goes via the php.cgi program? which is installed in /usr/local/apache/cgi-bin/php.cgi
also should the permissions on php.cgi be execute for all?
The permission on the dir I'm running my script in eg ~/test/test1.php3 is execute for all and +rwx for the owner. The script itself is 700.
Can anyone suggest anything that may be wrong? I've tried all sorts of permissions according to how the suexec docs state it should be set and I think they are correct, I think the prob is the calling of the php.cgi from apache?? since normal .cgi scripts are suexec'd to the correct user, so I used the same permissions as I have set on the .cgi.
The way i'm testing whether the php script has changed user is by setting it 700 and seeing if i can do
www.myserver.com/~muphicks/test/test1.php3
It also within the <?php has a call to passthru( whoami )
HELP I'm compleatly stuck on this one.
