Forum Moderators: phranque

Message Too Old, No Replies

how to configure & run FCGI

         

haimanti

12:18 pm on Mar 18, 2008 (gmt 0)

10+ Year Member



Hello All,

I have installed mod_fcgid module in Apache on Fedora Core 7 system. I have created fcgi-bin folder in /var/www to put .fcgi files here. I've checked CHMOD and SELInux file context mode where directory and files are running with 755 mode. But .fcgi file is not running. It shows the error:
-------------------------------
[Tue Mar 18 17:23:21 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Tue Mar 18 17:23:21 2008] [error] [client 192.168.0.11] Premature end of script headers: index.fcgi
Content-type: text/html

<html><body><h1>Hello World</h1></body></html>

[Tue Mar 18 17:23:24 2008] [notice] mod_fcgid: process /var/www/fcgi-bin/index.fcgi(6799) exit(communication error), terminated by calling exit(), return code: 0
[Tue Mar 18 17:23:24 2008] [notice] mod_fcgid: process /var/www/fcgi-bin/index.fcgi(6798) exit(server exited), terminated by calling exit(), return code: 0
---------------------------------
My fcgid.conf looks like:
----------------------------
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule !mod_fastcgi.c>

ScriptAlias /fcgi-bin/ /var/www/fcgi-bin/

<Directory "/var/www/fcgi-bin">
SetHandler fcgid-script
Options +ExecCGI
Allow from all
</Directory>

AddHandler fcgid-script .fcg .fcgi .fpl .py

</IfModule>

SocketPath run/mod_fcgid
SharememPath run/mod_fcgid/fcgid_shm
----------------------------------
Please help me to fix it.

Thanks
Haimanti