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!

chdir to /home/virtfs/username failed

Discussion in 'General Discussion' started by Nurs1927, Oct 6, 2018.

  1. Nurs1927

    Nurs1927 Well-Known Member

    Joined:
    Nov 22, 2015
    Messages:
    79
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Hello, I have a lot of error logs related with: "chdir to /home/virtfs/username failed"

    For example:
    Code:
    [Sat Oct 06 23:54:17.049618 2018] [:error] [pid 773] mod_ruid2 www.domain.com GET /forum/uploads/javascript_global/root_framework.js.d7fac88613454c3350a7f1a6de6e2fd0.js?v=17d88fcbb3 HTTP/1.1 chdir to /home/virtfs/username failed
    Any solution for this?
     
  2. Jeff P.

    Jeff P. Well-Known Member

    Joined:
    Feb 2, 2016
    Messages:
    52
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Daytona Beach, Florida, USA
    cPanel Access Level:
    DataCenter Provider
    The file owner:group does not permit this. This is why you never mess with permissions in cpanel servers.

    ls -n (in the command line) will give you the user id of the owner and group.

    You can also use suexec instead of mod_ruid
    in easy apache.... use suphp as well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    rpvw and Nurs1927 like this.
  3. Nurs1927

    Nurs1927 Well-Known Member

    Joined:
    Nov 22, 2015
    Messages:
    79
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Thank you Jeff.
    User is 0 and group 1004 is for /home/virtfs/username
    I'm using php-fpm. In your opinion what combination is better?: php-fpm+suphp or php-fpm+suexec
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,707
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Nurs1927


    I'd actually like to know if you're running mod_ruid2 and "experimental" Jail Apache Virtual Hosts. You can find the Jail Apache Virtual hosts setting in Tweak Settings within WHM. If you are running both of these in conjunction they are incompatible and are a common cause for this specific error. Disabling the experimental setting should resolve the issue.

    Thanks!
     
    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