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.

mod_userdir + suexec = command not in docroot

Discussion in 'General Discussion' started by paulkoan, Feb 19, 2008.

  1. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I am using Apache 2.2 + suexec + fcgi + mod_userdir enabled

    No problems with accessing via the domain, but if users access php files using userdir (~username), I get a 500 error, and the following log:

    Code:
    [2008-02-19 21:59:20]: uid: (32034/username) gid: (32033/32033) cmd: php5
    [2008-02-19 21:59:20]: command not in docroot (/usr/local/cpanel/cgi-sys/php5
    
    suexec expects that the php5 executable is in the docroot for the user. Which of course it isn't, but it isn't there when they access the site via a domain.

    Any ideas what I need to change to get this to work?

    Thanks,

    Paul
     
  2. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    The interesting part of this is that it is intermittent.

    I have

    Code:
    [2008-03-24 09:37:33]: uid: (32000/xxxx) gid: (32000/32000) cmd: php5
    [2008-03-24 09:37:33]: command not in docroot (/usr/local/cpanel/cgi-sys/php5)
    ...
    [2008-03-24 09:42:21]: uid: (32000/xxxx) gid: (32000/32000) cmd: php5
    
    So the same script is run, less that five minutes after the initial error, and now it works.

    What could be causing this?
     
Loading...

Share This Page