CageFS and 500 Internal Server Error suPHP
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:
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?
[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?
-
I check permission of folders and files but everything looks OK - folders (755), files (644). PHP is running as suphp on server.
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.0 -
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. 0 -
Hello, I'm happy to see you were able to address the issue. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments