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

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.

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.

4 thoughts on “[Fixed] Missing a temporary folder in WordPress

  1. Thanks for sharing useful information!! I am really impressed to see that you have provided such an interesting information about WordPress.
    I was struggling with the same issue since last 3 days and finally solved it.
    Thank you once again!!

  2. Hi Heba,

    This is the real solution to that problem; I have surfed all over the web asking for a solution for the missing temporary directory and the only article that helped me was yours… congratulations and thank you very much for helping me to get rid of this headache!!!

  3. Thank you!

    I disabled CageFs and that solved it. But I need it activated… so I reactivated and tested it again, and the image uload continues to work.

    I realized that there is now a /home/user/.cagefs/tmp folder that didn’t exist before. It may be the problem here maybe it was some bug.

Leave a Reply

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