The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

fast cgi / cgi problem..bit urgent

Discussion in 'General Discussion' started by Secret Agent, Jun 16, 2005.

Thread Status:
Not open for further replies.
  1. Secret Agent

    Secret Agent Guest

    Earlier today I did a "sudo gem install fcgi" because I new fcgi ruby gem was supposedly released that fixed some things like a bad memory leak. Upon apache restart, fcgi would not work. This came up with some errors "No definition for fcgi_finish" and many like it, although it reported success.

    the log files say:

    [Thu Jun 16 14:59:02 2005] [error] [client xx.169.85.248] FastCGI: comm with (dynamic) server "/home/polarity/public/dispatch.fcgi" aborted:
    (first read) idle timeout (30 sec)
    [Thu Jun 16 14:59:02 2005] [error] [client xx.169.85.248] FastCGI:
    incomplete headers (0 bytes) received from server "/home/polarity/public/dispatch.fcgi"

    My original FastCGI install steps (done 2 months ago, worked the entire time)

    # wget

    # tar xvzf mod_fastcgi-2.4.2.tar.gz

    # cd mod_fastcgi-2.4.2

    # /usr/local/apache/bin/apxs -o -c *.c

    # /usr/local/apache/bin/apxs -i -a -n fastcgi

    This should create an entry in httpd.conf that looks like this:

    LoadModule fastcgi_module <some_path>/

    Note that if there's a ClearModuleList directive after new entry,
    you'll have to either move the LoadModule after the ClearModuleList
    or add (have a look at how the other modules are handled):

    AddModule mod_fastcgi.c

    3. Edit the httpd configuration file(s) to enable your FastCGI
    application(s). See docs/mod_fastcgi.html for details.

    If you want to wrap the mod_fastcgi directives, use:

    <IfModule mod_fastcgi.c>

    4. Stop and start the server.

    # /etc/init.d/httpd stop
    # /etc/init.d/httpd startssl

    Any help is appreciated!
  2. chirpy

    chirpy Well-Known Member

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    fast_cgi isn't part of the cPanel build. You should ask on a server admin forum or hire someone who understand server administration. Please stop abusing the generosity of the people on these forums.
Thread Status:
Not open for further replies.

Share This Page