[Fixed] Missing a temporary folder in WordPress

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.


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.

Using WHM:

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”.

Using Terminal:

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

That’s it!!

Also read

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

Post navigation

Heba Habeeb

Working as a Linux Server Admin, Infopark, Cochin, Kerala.

Leave a Reply

Your email address will not be published. Required fields are marked *