How to fix ‘File Usage’ error on cPanel Shared Hosting GoDaddy

Solved: You’re at your resource limits. Visitors might have trouble accessing your site.

“You’re at your resource limits. Visitors might have trouble accessing your site.” – Are you seeing this in your cPanel dashboard? Exceeded the File Usage limit of 250,000 inodes on your shared server? Unable to get help from GoDaddy Experts and other technical guru websites? Planning to move to another host?

Here is the answer you are looking for all over the internet. It’s very simple and extremely easy to solve this issue. How? Read on.

First of all, you must know that its not you who uploaded or created this big amount of files on your server. And your server is not hacked as well. Everything is cool. GoDaddy and cPanel have made a tiny mistake which is causing this issue which effects all of your hosted websites and emails.

The problem is with the CageFS, which is a technology to keep you in a cage.. lol. Yes, while using a Shared Server, you must stay in your limits so that your over-usage does not effect other server users. The CageFS creates temporary files but it’s lazy enough to delete them after use. The number of files (actually session tokens) keeps on increasing and there is no way to stop it. As on Today, cPanel has not provided any tool in the panel to delete these temp files or to set a limit on it. Great job cPanel guys!

Now, How to get rid of these files? You cannot see them in the file manager as they are stored in a hidden directory. Don’t worry, follow these 3 simple steps and you will have your error resolved!

Step 1: Go to ‘Disk Usage’ page of your cPanel home: (Red Circle)

Step 1: Disk Usage
Step 1: Disk Usage


Step 2: Scroll down the page and Click on .cagefs link to open this hidden directory in File Manager.

Step 2: Open CageFS Directory
Step 2: Open CageFS Directory


Step 3: Just delete the tmp folder. However, It will be instantly recreated by the server. Remember to delete this folder permanently, do not move to Trash as it too big to fit in trash.
[Just a precaution, before you delete it, select the ‘tmp’ folder and click on ‘Compress’ command on the menu as it will give you a backup of the folder just in case you need it back. If you get some error like disk full, you can click this folder and delete some session files from within to spare some nodes.]

Step 3 - Delete tmp folder
Step 3 – Delete tmp folder

Step 4: There is no Step 4, Just return to your cPanel home and check the number of files under your ‘File Usage’. Happy? Let me know your experience below by adding your comments.

PS: (Specially if you have OpenCart or similar session based script) It is advised to modify your php.ini and specify your own custom session folder so that you can delete those files by your custom php code or a cron job. This will also make sure that your script keep working fine. Hows that sound?

– Hashim Taylor



16 thoughts on “How to fix ‘File Usage’ error on cPanel Shared Hosting GoDaddy

  1. Hi,

    I followed your instructions.

    Please change the step 3. You are lucky the system recreated the folder. This is not my case on my hosting plan Utilimate ( linux ).

    On this folder you have 2 symlink if you delete it the use of sessions don’t work correctly anymore and if your are lucky( like me ) you have to find a tech on Godaddy who recreate the 2 symlink for you.
    ( Maybe it’s can be done by SSH connection )

    Just delete all sess_* files on the folder and don’t delete the folder because in same time you’ll delete the symlink and if you are not lucky like me the system will not recreate the folder.

    But the trick works because you delete session files who take many “File Usage” just change the step 3. It’s little bit weird that no cron do this job for us like delete all sessions files older than 30 days.


  2. Thank you Francis for pointing this out. CageFS does not create the folder in rare cases. If this happens, all the scripts that needs session files like Opencart may stop working. Don’t panic if this happens with you, also do not try to explain this to godaddy tech support people as they might have never heard of CageFS.

    You can specify a custom path for sessions in your php.ini file. The folder you specify in your php.ini for session files can also be cleaned with a cron job too.

  3. Hi Hashim,
    This worked really well to clear the files but I have an Opencart site which is a bit messed up now. Can you explain in a bit more detail how to fix that?

  4. Hey Mark, I’m not sure what kind of mess you see on your Opencart site. If you could post an screenshot or url of error page that would be much helpful to identify the problem.

    Assuming the most common issue on opencart due to missing session files folder, I would like to suggest that you provide a custom session file location in your php.ini.

    Step 1) Just create a folder in your root or anywhere you want. You can name it anything or just ‘sess’ as I did.
    Step 2) Add this line anywhere in your php.ini file:
    session.save_path = “/home/yourpath/sess”;

    You can clean this folder frequently by a CronJob or manually empty this folder to avoid File Usage alert once again.
    Remember to include closing ; at the end of the line. Try refreshing your Opencart homepage and see if you still get the error.

  5. hi buddy great job.
    i was mad because of my hosting no one knows about this. you are a real tech master.
    really imp knowledge. but please share this article as most of peoples facing this problem.

    one thing i noticed that my inodes were not reduced as much i was expecting as the files with me are not that much as much inodes are.


  6. Thank you esk for the kind words. I’m really happy 🙂

    As per the inodes, this way you only deleted the session files which were taking much of your disk but that’s not the only problem. Most scripts uses cache system for a faster user experience. Cache is extremely useful and should always be used so that the user get a quick response from your website and the server does not get overloaded every-time you get visitors. Unfortunately cache needs the disk to write thus burning your inodes limit to get your godaddy cPanel exhausted.

    All you need to do is either disable the cache in your scripts settings, or at least, reduce the number of days for keeping the cache. If you are unsure, do let me know what script you are using, including every script running on all domains hosted on your cpanel account, and I will try to help.

  7. My Website Stopped Working when i deleted thos files 🙁
    showing me error like ” Link to database cannot be established: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) :

    any idea how to recover thos Temp files again 🙁

    Need urgent help

  8. Hi can anyone respond to the question above:
    SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)

    I have the same problem now, and no one is willing / capable helping me.


  9. Dear Hahsim,

    I have a big problem with deleting /tmp directorie and i cannot find any help form my hostingpartner.
    I cannot find a php.ini file and my website is down. Can you help me

  10. kindly take this suggestion down or correct step 3 as has been suggested, I’m also having problems with my sessions…

  11. Hi peepbb and others, Please edit your php.ini and specify the session folder as your script needs to place a session file in the given folder before rendering the page. Wanna know how to do that? Check my comment of 17 Oct 2015 for the steps.

  12. Yeah really should take this down -_- I followed it and now I can;t upload anything to any of my sites, talking to Godaddy who seem clueless and it doesn’t recreate the tmp folder.

  13. Tom, I’m sorry but I don’t understand ‘Cant Upload’, how can your cPanel File manager not letting you upload files by deleting just one folder? May be you are facing problem with some third party script.
    Make sure you’ve edit your php.ini file and specify some session folder before you could be able to see your script working.

  14. hi buddy great job.

    i was mad because of my hosting no one knows about this. you are a real tech master.

    Thank you so much for this help 🙂 God Blase you my Friend 🙂

Leave a Reply

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