CageFS & PHP7: 500 Server Error
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. James Cantrell
  2. Wednesday, 05 April 2017
  3.  Subscribe via email
I have the same problem as https://www.cloudlinux.com/forum/forum18/topic695 but my /proc/mount doesn't mention /home as being noexec. I'm getting 500 error when accessing a caged user, and "SoftException in Application.cpp:604: Could not execute script" in error logs. I've tried reinit, disabling/enabling cagefs. Changing permissions.
I do have 2 home directories on different drives. Default called /home/ and other /home2/

The end goal is to be able to choose PHP7 for specific clients until they are all php7.

Do you know what I doing wrong?

Thanks,
James

Here is the content from "cat /proc/mounts":


proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=16387860k,nr_inodes=4096965,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/sda2 / ext4 rw,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
devtmpfs /dev devtmpfs rw,relatime,size=16387860k,nr_inodes=4096965,mode=755 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sdb1 /home2 ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
/dev/loop0 /tmp ext3 rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/loop0 /var/tmp ext3 rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/sda2 /usr/share/cagefs-skeleton ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/var/lib/mysql ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/opt ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
tmpfs /usr/share/cagefs-skeleton/dev/shm tmpfs rw,nosuid,relatime 0 0
devpts /usr/share/cagefs-skeleton/dev/pts devpts rw,nosuid,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/apache/domlogs ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/var/lib/proxyexec/cagefs.sock ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/var/spool/at ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/var/run/dbus ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/var ext4 rw,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/lib ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/lib ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/lib64 ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/lib64 ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/include ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/share/locale ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/share/terminfo ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/share/zoneinfo ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/share/vim ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/lib/php ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/Cpanel ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/perl ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/lib ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/share ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/php ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/bin ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/var/lib/spamassassin ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/usr/local/cpanel/sys_cpanel/boxtrapper-message ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/sda2 /usr/share/cagefs-skeleton/opt/suphp/sbin ext4 ro,nosuid,relatime,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
proc /usr/share/cagefs-skeleton/proc proc rw,nosuid,relatime 0 0
/proc/bus/usb /usr/share/cagefs-skeleton/proc/bus/usb usbfs rw,nosuid,relatime 0 0
none /usr/share/cagefs-skeleton/proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,relatime 0 0
Rate this post:
  1. 05.04.2017 18:04:57
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Hey,
There should be something more in logs related to this error. I suppose something is not Ok with script permission/ownership or parent directory permissions.

For faster resolution better to create support ticket in our ticketing system.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.