Recently I got the following error in WordPress while trying to upload image. In a CloudLinux based cPanel server if you’re experiencing the same problem, don’t worry. It’s so simple and here’s the fix.
More about Cloud Linux technology
CloudLinux is a Linux based Operating system especially used in a shared environment which isolates each user in its own light weight virtualized environemnts (LVE) which consumes predefined amount of resources allocated for each user. That is, each user will be in a caged environment.
The resource usage of any user won’t affect the stability of another users. Each user will be allocated a specific amount of resources. If a user’s PHP script utilizes the entire resources allocated to it, then it won’t affect other users. Only that particular user will face problems related to this. That particular user will get a “Resource limit reached” error while he access his website. Read more related posts from Cloud Linux
The screenshot of error is added below:
First of all, you need to make sure that the user quota limit of the account is not reached. Also, check if the tmp folder exists in /hom/user/tmp.
If everything looks fine and still you’re getting error then the problem is the user is not enabled correctly in CageFS. If you check the CageFS, the user might be listed in CageFS but it’s not enabled properly. To fix this, remove the user from CageFS and re-add it. This can be done either via WHM or via terminal.
1. Log into WHM
2. Navigate to Plugins >> CageFS
3. Select the user you need to remove from the CageFS and click on “>>”.
4. Then click on “Update CageFS skeleton
Now you disabled CageFS for that particular user. To re-enable the user select the user from “Disabled users” and click on “<<“. Once you’ve done that click on “Update CageFS skeleton”.
This can be done in two ways.
1. Either disable and enable user from CageFS using commandline
#/usr/sbin/cagefsctl --disable $username #/usr/sbin/cagefsctl --enable $username #/usr/sbin/cagefsctl --force-update
2. Follow the steps below which remount cageFS
#/usr/sbin/cagefsctl --remount-all #/usr/sbin/cagefsctl --force-update
1, Error while accessing sent and draft folders – webmail – Squirrel mail
2, WordPress dashboard loading blank page – WordPress 3.3.1
3, Possible root compromise detected: Failed to create directory /dev/null – cPanel