suexec/fcgid problem - error 500 - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: suexec/fcgid problem - error 500 (/thread-10161.html) |
suexec/fcgid problem - error 500 - GioMac - 03-28-2010 10:41 AM Hi, Don't know why, but on one of my environments faced with problem running php scripts with fcgid, tried to find differences between them - no luck... When i do some manipulations with suexec - it runs, but in case root, few times was able to get scripts running with virtual user, with insecure way, but it didn't show "Loaded Configuration File" path in phpinfo. How it's possible to get full debug for both fcgid & suexec runtime? RE: suexec/fcgid problem - error 500 - GioMac - 03-29-2010 06:42 AM Code: ==> error_log <== who can help with taking traces anyway? one solution (thanks to malte): change /bin/false to /bin/sh for user cd to working dir export variables specified in fcgid wrapper strace -e open ./fcgid-wrapper if ok - seems like problem is in running script as that user, in my case script was run by suexec, so, we've checked it and found that group doesn't match apache's one: found it - was my fault: Code: # rpm -V httpd RE: suexec/fcgid problem - error 500 - kilburn - 03-29-2010 03:53 PM Just for the record, suexec errors are logged to "/var/log/apache2/suexec.log" (and the group mismatch shows there). RE: suexec/fcgid problem - error 500 - GioMac - 03-29-2010 06:01 PM (03-29-2010 03:53 PM)kilburn Wrote: Just for the record, suexec errors are logged to "/var/log/apache2/suexec.log" (and the group mismatch shows there). Yes, but in my case suexec didn't run because apache had no rights to launch it, so, log file wasn't generated at all... |