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

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..

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...

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!

Thanks

It works fine now. Thanks for being so quick.

If you have time please tell me how you worked that out.

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".

Automatically closed -- issue fixed for 2 weeks with no activity.