Problem with apache/php and fcgid

Hi

When I select FCGId instead of mod_php I get the following error on all pages :

[Sun Dec 14 17:40:03 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Sun Dec 14 17:40:03 2008] [error] [client 10.0.20.3] Premature end of script headers: index.php

The server runs RHEL 5 with all updates installed

The suesec should be the right one

[root@panodil ~]# /usr/sbin/suexec -V
-D AP_DOC_ROOT="/home"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"

[root@panodil ~]# cat /home/nicolaisenconsulting/fcgi-bin/php5.fcgi
#!/bin/bash
PHPRC=$PWD/../etc/php5
export PHPRC
umask 022
PHP_FCGI_CHILDREN=5
export PHP_FCGI_CHILDREN
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php-cgi

Any idea what I am doing wrong ?

Status: 
Closed (fixed)