Announcement

Collapse
No announcement yet.

CageFS & PHP7: 500 Server Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CageFS & PHP7: 500 Server Error

    I have the same problem as https://www.cloudlinux.com/forum/forum18/topic695 but my /proc/mount doesnt mention /home as being noexec. Im getting 500 error when accessing a caged user, and "SoftException in Application.cpp:604: Could not execute script" in error logs. Ive 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":

    Code:
    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

  • #2
    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.

    Comment

    Working...
    X