Настроил fastcgi через fcgid_module, скрипты PHP (в частности infophp();) отлично работает, но вот на файлы расширения .cgi и .fcgi выдает ошибку Internal Server Error - 500.
ОС Centos 6.4
в логах error_log пишет:
Content-type: text/plain 
Het werkt! 
Content-type: text/plain 
Het werkt! 
Content-type: text/plain 
Het werkt!
(Het werkt! - по немецки «Работает!») - это была задача test.cgi вывести на экран эту надпись. На сайте с php как CGI этот скрипт работает
site.ru.error.log:
[Sun Sep 29 04:18:35 2013] [warn] [client 127.0.0.3] (104)Connection reset by peer: mod_fcgid: error reading data$ 
[Sun Sep 29 04:18:35 2013] [error] [client 127.0.0.3] Premature end of script headers: test.cgi 
[Sun Sep 29 04:18:38 2013] [warn] [client 127.0.0.3] (104)Connection reset by peer: mod_fcgid: error reading data$
 
[Sun Sep 29 04:18:38 2013] [error] [client 127.0.0.3] Premature end of script headers: test.cgi 
fcgid.conf:
# This is the Apache server configuration file for providing FastCGI support 
# through mod_fcgid 
# 
# Documentation is available at 
# http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html 
LoadModule fcgid_module modules/mod_fcgid.so 
# Use FastCGI to process .fcg .fcgi & .fpl scripts 
AddHandler fcgid-script cgi fcg fcgi fpl 
# Sane place to put sockets and shared memory file 
FcgidIPCDir /var/run/mod_fcgid 
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm 
FcgidMaxRequestsPerProcess 500 
PHP_Fix_Pathinfo_Enable 1 
FcgidBusyTimeout 3600 
FcgidIOTimeout 600
VirtualHost в httpd.conf:
VirtualHost *:80> 
<IfModule mod_fcgid.c> 
SuexecUserGroup www3 www3 
FcgidBusyTimeout 3600 
<Directory "/var/www/user_name/site3.ru/"> 
Options +ExecCGI 
AllowOverride All 
AddHandler fcgid-script .cgi .fcgi .php
 
FCGIWrapper /var/www/user_name/site3.ru/php-fcgi/php-fcgid .php 
Order allow,deny 
Allow from all 
</Directory> 
</IfModule> 
ServerAdmin admin@site3.ru 
ServerName site3.ru 
ServerAlias www.site3.ru 
DocumentRoot /var/www/user_name/site3.ru/httpdocs
 
ErrorLog logs/site3.ru-error_log 
CustomLog logs/site3.ru-access_log common 
ServerSignature off 
</VirtualHost> 
Очень много инфы пересмотрел, только что не пробывал, не помогает. Прошу помочь предположениями.

