View Full Version : fedora8, apache2, php5, mod_fcgid - doesn't work at all

8th September 2008, 10:04 PM
all of it has been installed via rpm - latest available versions.

in httpd.conf -

AddHandler fcgid-script .php5
FCGIWrapper /usr/bin/php .php5

(i have php4 installed as a module under /usr/local, it works just fine).

When i try to open a phpinfo page, this is what i get in the logs:

[Wed Aug 27 03:06:53 2008] [info] mod_fcgid: server
/var/vwww/dev/phpinfo.php5(1790) started
[Wed Aug 27 03:06:53 2008] [warn] (104)Connection reset by peer:
mod_fcgid: read data from fastcgi server error.
[Wed Aug 27 03:06:53 2008] [error] [client] Premature
end of script headers: phpinfo.php5
[Wed Aug 27 03:06:56 2008] [notice] mod_fcgid: process
/var/vwww/dev/phpinfo.php5(1790) exit(communication error), terminated
by calling exit(), return code: 0

I've been doing some googling for some time now, and I can't find any
info on this.
Suexec is not loaded into apache, btw.

Does anybody have any info on this? I'm really lost with this one...

the funny thing is that if i swap php4 and php5 (php5 module, php4 - fastcgi) everything works ok, but thats not the way i need it to work....

8th September 2008, 11:29 PM
and look through

9th September 2008, 07:29 AM
Thanks for the links. I know HOW to get it done and I have it working the other way arround - php4 via mod_fcgid and php5 as an apache module. As soon as I switch them - it crashes. PHP5 is installed via yum and I have checked that it have been built with fast_cgi support. PHP4 has been built form source with fast_cgi support also.

I'm lost with this error message - I have found only several mentions of it, and no solutions that were offered helped me in my case. so the problem is when I try to get the rpm versions of php5 and mod_fcgid to work together...

10th September 2008, 11:37 AM
hasn't anybody else faced this issue before?

10th September 2008, 05:37 PM
well you can use yum to remove the new packages then install the old ones and add a line to /etc/yum.conf
exclude=Apache* php*

add the correct name for each of them

10th September 2008, 05:47 PM
why would I want to remove the new packages? i have it working using the exact same packages, just swapping the php versions.
php4+mod_fcgid = works great
apache+libphp4 = works great
apache+libphp5= works great
php5+mod_fcgid = crashes and burns.....

10th September 2008, 08:06 PM
my fault i was thinking of a diff. thread .