Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    156
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice