Current time: 09-10-2024, 03:37 AM Hello There, Guest! (LoginRegister)


Post Reply 
suexec/fcgid problem - error 500
Author Message
GioMac Offline
Junior Member
*****
Dev Team

Posts: 43
Joined: Mar 2008
Reputation: 0
Post: #2
RE: suexec/fcgid problem - error 500
Code:
==> error_log <==
[Mon Mar 29 00:40:10 2010] [notice] mod_fcgid: call /var/www/virtual/test.ge/htdocs/some.php with wrapper /var/www/fcgi/test.ge/php5-fcgi-starter
[Mon Mar 29 00:40:10 2010] [info] mod_fcgid: server test.ge:/var/www/virtual/test.ge/htdocs/some.php(31752) started

==> test.ge-combined.log <==
77.92.229.53 - - [29/Mar/2010:00:40:10 +0400] "GET /errors/inc/errordocs.css HTTP/1.1" 304 - "http://test.ge/some.php" "ELinks/0.12pre5 (textmode; Linux; 191x48-2)"

==> users/test.ge-access.log <==
77.92.229.53 - - [29/Mar/2010:00:40:10 +0400] "GET /errors/inc/errordocs.css HTTP/1.1" 304 - "http://test.ge/some.php" "ELinks/0.12pre5 (textmode; Linux; 191x48-2)"

==> error_log <==
[Mon Mar 29 00:40:10 2010] [warn] [client 77.92.229.53] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Mar 29 00:40:10 2010] [error] [client 77.92.229.53] Premature end of script headers: some.php

==> test.ge-combined.log <==
77.92.229.53 - - [29/Mar/2010:00:40:10 +0400] "GET /some.php HTTP/1.1" 500 780 "-" "ELinks/0.12pre5 (textmode; Linux; 191x48-2)"

==> users/test.ge-access.log <==
77.92.229.53 - - [29/Mar/2010:00:40:10 +0400] "GET /some.php HTTP/1.1" 500 780 "-" "ELinks/0.12pre5 (textmode; Linux; 191x48-2)"

==> test.ge-traf.log <==
780

==> error_log <==
[Mon Mar 29 00:40:13 2010] [notice] mod_fcgid: process /var/www/virtual/test.ge/htdocs/some.php(31752) exit(communication error), terminated by calling exit(), return code: 255

who can help with taking traces anyway? Smile

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
S.5....T.  c /etc/httpd/conf.d/proxy_ajp.conf
S.5....T.  c /etc/httpd/conf/httpd.conf
S.5....T.  c /etc/sysconfig/httpd
.......T.    /usr/sbin/apachectl
......G..    /usr/sbin/suexec
......G..    /var/cache/mod_proxy
......G..    /var/lib/dav
......G..    /var/run/httpd
(This post was last modified: 03-29-2010 07:01 AM by GioMac.)
03-29-2010 06:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
suexec/fcgid problem - error 500 - GioMac - 03-28-2010, 10:41 AM
RE: suexec/fcgid problem - error 500 - GioMac - 03-29-2010 06:42 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)