Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

Understanding .cagefs in cPanel — What It Is and How to Fix Issues

2 min read
08.11.2025

What is .cagefs?

.cagefs is part of CloudLinux CageFS, a virtualized filesystem that isolates each cPanel user's environment. It enhances security by preventing users from accessing each other's files and system resources.

Understanding .cagefs cPanel
.cagefs — CloudLinux per-user jail; cagefsctl manages.

For closely related CloudLinux / cagefs topics, see Understanding the .cagefs Folder in CloudLinux (sysadmin overview), How to Safely Delete .cagefs/tmp Files, Understanding .cagefs/tmp, and CloudLinux Hosting — Why Is It Secure?.

Benefits of CageFS:

  • Improves security by isolating users.
  • Prevents privilege escalation and unauthorized access.
  • Limits resource usage to prevent server overload.

The .cagefs folder is usually found in:

/home/username/.cagefs/
cPanel Hosting
Full control over your website
  • Convenient
  • Simple
  • Fast
  • Free 7-day trial
cPanel Hosting

Common Issues & Fixes Related to .cagefs

Error: "No such file or directory inside .cagefs"

If .cagefs is missing or corrupt, users may experience website errors or command failures.

Fix: Remount CageFS for the User

Run the following command:

cagefsctl --force-update
cagefsctl --enable username
cagefsctl --remount username

Replace username with the actual cPanel username.

Restart CageFS:

cagefsctl --remount-all

Error: "Permission denied" when accessing files in .cagefs

If a user cannot access files inside .cagefs, it might be due to incorrect permissions.

Fix: Reset Permissions for the User

cagefsctl --remount username

To reset for all users:

cagefsctl --remount-all

If the issue persists, force an update:

cagefsctl --force-update

Error: "Command not found" inside .cagefs

Sometimes, users cannot run basic commands like php, ls, or wget inside CageFS.

Fix: Update CageFS Skeleton

cagefsctl --update

If that does not work, reinitialize the environment:

cagefsctl --reinit

Remove .cagefs for a User (Disable CageFS)

If you want to completely disable CageFS for a specific user:

Disable CageFS for One User

cagefsctl --disable username

Disable CageFS for All Users

cagefsctl --disable-all

This should only be done if necessary, as disabling CageFS removes security protections.

Summary of Fixes

Issue Fix
Missing .cagefs folder Run cagefsctl --force-update
Permission denied inside .cagefs Run cagefsctl --remount username
Commands not found inside CageFS Run cagefsctl --update or cagefsctl --reinit
Disable CageFS for a user Run cagefsctl --disable username

Now CageFS should work properly, and your users will be securely isolated!

Frequently asked questions
CloudLinux creates a private filesystem view for each cPanel account. You see your own files plus a curated set of system files; you cannot see other users on the same server. This is the security guarantee shared hosting provides only when CageFS is enabled.
Different visible binary set. CageFS exposes a limited subset to your PHP process; commands not on that list aren't visible. Common: `composer`, `git`, custom binaries. Either: install via cPanel's "Node.js" or "PHP Selector" if available, or ask host to add to CageFS-allowed commands list.
Host-side decision. Provider can disable via `cagefsctl --disable ` — but most refuse because it weakens security for all customers. For specific commands, ask host to add to the allowed list instead of disabling whole jail.
Usually no — CageFS skeleton is shared across users (bind mounts), not counted per-user. Per-user portions (your /tmp, your home) count. If your account shows .cagefs eating quota, that's a misreport; verify with host.
Related articles
Understanding the .cagefs Folder in CloudLinux (cPanel Hosting)
Understanding .cagefs/tmp in CloudLinux CageFS
Fix: proc_open() Has Been Disabled for Security Reasons