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.

CageFS and 500 Internal Server Error suPHP

Discussion in 'CloudLinux' started by rahnev, Jul 6, 2016.

Tags:
  1. rahnev

    rahnev Member

    Joined:
    Jul 6, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    I have clean installation of latest cPanel + cloudlinux + cagefs + php selector + mysql governor. When CageFS is enabled for user I get "Error 500 Internal Server Error". When disabled - it works. The following errors are generated in apache error log:

    Code:
    [Wed Jul 06 08:45:39.208673 2016] [:error] [pid 35305] [client xxx:53639] SoftException in Application.cpp:604: Could not execute script "/xxxxx/index.php"
    [Wed Jul 06 08:45:39.208735 2016] [:error] [pid 35305] [client xxx:53639] Caused by SystemException in API_Linux.cpp:465: chdir() failed: No such file or directory
    [Wed Jul 06 08:45:39.208896 2016] [core:error] [pid 35305] [client xxx0:53639] End of script output before headers: index.php 
    I check permission of folders and files but everything looks OK - folders (755), files (644). PHP is running as suphp on server.

    Tried reinstalling cagefs but no effect. Any ideas?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify if the files referenced in the error output are owned by the account username? Also, have you reviewed the permission and ownership values for the public_html directory itself?

    Thank you.
     
  3. rahnev

    rahnev Member

    Joined:
    Jul 6, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Yes permissions are OK. I think I found a solution. Home is not on separate partition. It's /var/home actually and /home is a symlink. After changing
    Home » Server Configuration » Basic cPanel & WHM Setup » Basic Config
    Enter the location where you wish for new users' home directories to be created. By default all directories matching the "Home Directory Prefix" are checked for available disk space and the directory with the most free space will be used to /var/home it seems to work now.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page