|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Not sure which forum is most appropriate for this?
Anyhow I've recently setup php for apache which works fine as the module version .php I have also setup suExec which when i run cgi scripts which call whoami, they print the correct user, eg muphicks and not nobody... When i run php as cgi by putting #!/usr/local/apache/cgi-bin/php at the top of the sphp files and the following types in httpd AddType application/x-httpd-wphp sphp Action application/x-httpd-wphp /cgi-bin/php Action php-script /cgi-bin/php AddHandler php-script sphp I have tried various combinations of the above, eg both enabled, 1 enabled, and neither enabled... The script itself runs fine with no suexec errors (unless both are disabled then it just outputs the source due to been an unrecognised type), however it outputs that it is running as nobody, when it should be muphicks, due to the script been run from within the ~/muphicks/cgi-bin/test.sphp directory Any ideas why it works with cgi, but not with php? and gives no errors to indicate that the php scripts failed any of the suexec security tests?? Cheers, |
|
#2
|
|||
|
|||
|
SuEXEC does not work with Apache Modules
Darren
__________________
HTTP://WWW.PHP4HOSTING.COM ($) HTTP://WWW.PHP4HOSTING.CO.UK (£) Website Hosting from $4.80/£3pm -- .COM/.NET $39.98/£24.99 PHP4, MySQL (Root Access), Full CGI-BIN, Shell Access, FTP, POP3, WAP Full Control Reseller Accounts, unlimited domains, FTP, POP, MySQL,PHP4 |
|
#3
|
|||
|
|||
|
Hi,
I'm not using the module version, I used the module version only for php scripts... I use the cgi version for sphp scripts. The sphp scripts are processed by the cgi version without error. SUexec is enabled and working as any cgi scripts of the #!/bin/sh type definatly get processed by it as i have checked the user changed by using whoami. I can even force SUexec errors by deliberatly failing the security checks for the cgi scripts... However for the sphp scripts they simply get processed by the cgi version of php and run normally without changing user. Are my AddTypes correct for setting sphp to be processed by the cgi version and not the module (see previous post) Cheers, |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > PHP suExec works but doesnt work!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|