Submitted by andrewrimmer on Tue, 08/24/2010 - 17:13
Hi
I get this error:
[Wed Aug 25 02:11:18 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Wed Aug 25 02:11:18 2010] [error] [client 188.220.21.251] Premature end of script headers: info.php
Can anyone help
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Tue, 08/24/2010 - 19:18 Comment #1
What URL / web page are you getting this error for?
If you are just seeing this in the logs but all your pages are loading fine, it can be safely ignored..
Submitted by andrewrimmer on Wed, 08/25/2010 - 03:45 Comment #2
albastru.co.uk
Submitted by andreychek on Wed, 08/25/2010 - 09:43 Comment #3
It looks like suexec thinks that the UID/GID listed for this particular Virtual Server doesn't match the files or directories being executed.
I'm not sure why though, as they do appear to be correct. I'm looking into this further...
Submitted by andreychek on Wed, 08/25/2010 - 10:06 Comment #4
Okay, I see the problem. It looks like the permissions on the php5.cgi program had somehow changed so that it was owned as root, rather than as the Virtual Server owner. That was preventing any PHP code from executing.
The file in question is located in "/home/andrewrimmer/domains/albastru.co.uk/fcgi-bin/php5.fcgi".
I reset the permissions on it, so that it's owned by the user and group "andrewrimmer", and now your site seems to be loading okay.
Can you give it a try and verify that it's working as expected? Thanks!
Submitted by andrewrimmer on Wed, 08/25/2010 - 10:45 Comment #5
Thanks
It works fine now. Thanks for being so quick.
If you have time please tell me how you worked that out.
Submitted by andreychek on Wed, 08/25/2010 - 11:00 Comment #6
I saw from /var/log/apache/suexec.log that suexec was unhappy about the file permissions.
I used "ls -l" to review the file permissions of all the files it was executing, where I saw that /home/andrewrimmer/domains/albastru.co.uk/fcgi-bin/php5.fcgi was owned by root rather than andrewrimmer.
I then used "chown andrewrimmer:andrewrimmer php5.fcgi" to set the permissions on that file to the user and group "php5.fcgi".
Submitted by Issues on Wed, 09/08/2010 - 13:19 Comment #7
Automatically closed -- issue fixed for 2 weeks with no activity.