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.

FastCGI (mod_fcgid) issue with cPanel

Discussion in 'General Discussion' started by 9xlinux, Aug 10, 2010.

  1. 9xlinux

    9xlinux Well-Known Member

    Joined:
    Dec 20, 2009
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,
    I have recompiled apache via easyapache with FastCGI (mod_fcgid) but after successfully compiled The php sites are not working after switching to fcgi but working fine with DSO, Below messages is in error log,

    (13)Permission denied: mod_fcgid: spawn process

    Can anybody guide me how to use fastcgi with cpanel?
     
    #1 9xlinux, Aug 10, 2010
    Last edited: Aug 11, 2010
  2. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    What are the permissions on the /usr/local/apache/logs/fcgi* files?

    Code:
    ls -lah /usr/local/apache/logs/fcgi*
    It might well be this file having the wrong permissions:

    Code:
    drwx------ 2 root root 4.0K Apr 9 00:44 fcgidsock/
    I worked on a server with a similar error due to this file having root:root ownership. The right ownership would be this instead on the server I fixed it on (can't be certain in your situation if this is the issue, though):

    Code:
    drwx------ 2 nobody root 4.0K Apr 9 00:44 fcgidsock/
    To change to that ownership:

    Code:
    chown nobody:root /usr/local/apache/logs/fcgidsock
    Please do first check the permissions before going around making changes to them, though, in case they are already set correctly and that isn't the cause of the issue.
     
  3. 9xlinux

    9xlinux Well-Known Member

    Joined:
    Dec 20, 2009
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    This works for me,

    Thanks Miraenda.
     
  4. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    You are very welcome :)
     
  5. techzilla

    techzilla Registered

    Joined:
    Dec 20, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    OH
    Man thank you so much, permissions root:root as they were not supoosed to be.
     
Loading...

Share This Page