Issue
When trying to reset, add or configure PHP extensions within the PHP Selector, this error is displayed:
Unable to save data to /var/cagefs/.../cl.php.d/alt_php.ini ([Errno 13] Permission denied: '/var/cagefs/.../clseltmp_XXX')
Environment
- PHP Selector
- CloudLinux
- CageFS
Solution
- Locate user cagefs directory
# find /var/cagefs -user exampleuser
- Reset the directory owner from the step above with the following command:
# chown -R exampleuser /var/cagefs/XXX/cl.php.d
- Update CageFS, and remount the user:
# cagefsctl --force-update
# cagefsctl -m exampleuser -
Ensure that directories inside the problematic path have the correct permissions as well.
# find /var/cagefs/XXX/cl.php.d -type d ! -perm 755 -exec chmod 755 {} \;
Cause
Incorrect permissions.
Comments
0 comments
Please sign in to leave a comment.