A compromised WordPress plugin should not give one hosting account a view into every other account on the server. That is the practical reason how to enable CloudLinux CageFS matters to anyone managing a cPanel server for cannabis, CBD, seed, or ecommerce websites. CageFS creates a virtualized file system for each user, limiting what that account can see and access if a site is compromised.
CageFS is a server-level feature, not a cPanel setting that individual website owners can switch on themselves. You need root-level access to WHM or SSH access as root on a server running CloudLinux OS. If you are on standard shared hosting, your provider controls it. In that case, ask support whether CageFS is enabled for your account rather than attempting to change server settings.
What CloudLinux CageFS Does
CageFS isolates each cPanel user inside their own restricted environment. A user can access the files, processes, temporary directories, and system resources needed to run their site, but they cannot freely browse other users’ home directories or many sensitive server files.
This matters on shared and reseller servers, where many separate businesses occupy the same physical infrastructure. If one outdated theme, weak password, or vulnerable extension is exploited, CageFS helps contain the damage to that individual account.
CageFS works alongside CloudLinux LVE limits, but the two features solve different problems. LVE controls resource consumption such as CPU, memory, entry processes, and I/O. CageFS controls file-system visibility and access. For a well-managed multi-account server, you generally want both.
There is a trade-off. Older custom scripts, poorly configured applications, and unusual server-side integrations may expect access to paths that CageFS intentionally hides. Test critical applications after activation, especially custom ecommerce software, backup scripts, cron jobs, and integrations that call external binaries.
Before You Enable CageFS
Confirm that CloudLinux OS is installed and licensed on the server. A standard Linux installation with cPanel will not have CageFS available until CloudLinux has been installed and configured. You should also update CloudLinux and cPanel before making broad security changes, preferably during a low-traffic maintenance window.
Back up the server or, at minimum, confirm that current account backups are completing successfully. CageFS does not normally alter website content, but enabling isolation can expose an existing permission or path problem. A current backup gives you options if a custom application needs adjustment.
You will need one of the following:
- Root access to WHM
- Root SSH access to the server
- A hosting provider willing to enable CageFS for your account or reseller environment
- Enough free disk space for CageFS initialization and normal server operations
If you use a managed platform, do not assume you have to handle this alone. Weed Hosts customers who need help with server-level security or account isolation can contact support and explain what they are trying to protect. A quick review of the hosting environment can prevent unnecessary disruption.
How to Enable CloudLinux CageFS in WHM
For most cPanel administrators, WHM is the simplest route. Log in to WHM as root, then search the left-hand menu for CloudLinux Manager. Depending on the installed CloudLinux version, you may see a dedicated CageFS section or a CageFS User Manager option.
Open the CageFS area and look for the initialization control. On a new or recently converted server, CageFS must be initialized before any users can be placed inside the file-system cage. Select Initialize CageFS and allow the process to complete. On a server with many accounts, this can take a few minutes.
Once initialization finishes, you can enable CageFS for selected users or for all eligible users. For a typical shared-hosting server, enabling it for all standard cPanel accounts is the practical approach. Review excluded or system accounts before applying the setting broadly. Root and certain service accounts are not meant to be treated like ordinary website users.
After enabling the accounts, use the user list to confirm that the status shows CageFS as enabled. Then test a few sites, beginning with accounts that use WordPress, WooCommerce, custom PHP code, and scheduled tasks. Open the sites in a private browser window, submit a test form if one exists, and confirm that administrative functions still work.
Enable CageFS From the Command Line
SSH is often faster when you manage multiple servers or prefer repeatable administrative procedures. Log in as root, then initialize CageFS with this command:
“`bash cagefsctl –init “`
After initialization, enable CageFS for every eligible account:
“`bash cagefsctl –enable-all “`
If you want to test one account before rolling the setting out server-wide, enable it for a specific cPanel username instead:
“`bash cagefsctl –enable username “`
Replace `username` with the actual cPanel account username. To see which users are currently protected by CageFS, run:
“`bash cagefsctl –list-enabled “`
A useful post-install check is:
“`bash cagefsctl –sanity-check “`
This can identify configuration problems that are not obvious from the WHM interface. If you modify CageFS configuration files or make changes that affect the virtualized environment, update the CageFS skeleton with:
“`bash cagefsctl –update “`
Use command-line changes carefully on production servers. A command that enables CageFS for all users is efficient, but it also means every legacy site receives the new restrictions at the same time. On a server with older customer sites, a staged rollout is usually the safer choice.
Verify That CageFS Is Working
Seeing an enabled status in WHM is a good start, but verification should go further. Log in to a test cPanel account and use File Manager or SSH access for that user. The account should see its own home directory and expected application paths, not other customers’ directories.
You can also review the enabled-user list from root SSH and check whether websites continue to process uploads, create cache files, send mail through their normal configuration, and run cron jobs. WordPress sites deserve special attention because caching plugins, image optimization tools, security plugins, and backup tools may write to temporary locations.
Do not judge the setup solely by whether the homepage loads. A cannabis ecommerce store may have working product pages while checkout webhooks, order emails, inventory syncs, or scheduled backups fail later. Test the business functions that matter to the account.
Common CageFS Problems and Fixes
The most common issue is that CageFS is not initialized. If the WHM interface appears available but user activation fails, run `cagefsctl –init` as root and try again. On a newly installed CloudLinux server, this is often the missing step.
Another common issue is a website that uses a custom executable, nonstandard PHP path, or external library outside the normal CageFS environment. The correct fix depends on the application. Sometimes the needed path can be added to the CageFS configuration; other times the script should be updated to use a supported location. Avoid disabling CageFS for every account just because one legacy application needs attention.
If a site fails after CageFS is enabled, check its error logs first. Permission-denied errors, missing-file messages, and failed cron output can point to the path or dependency that needs adjustment. Confirm file ownership and standard cPanel permissions as well. CageFS is often blamed for problems caused by incorrect ownership after a migration.
For an account that cannot be fixed immediately, you can temporarily disable CageFS for that specific user while you investigate:
“`bash cagefsctl –disable username “`
That is a short-term exception, not an ideal permanent configuration. Document why the account was excluded and revisit it after the application is repaired or replaced.
Keep Account Isolation Part of Routine Server Care
Enabling CageFS is one security control, not a substitute for updates, backups, malware scanning, strong passwords, two-factor authentication, or sensible PHP settings. It reduces the blast radius when something goes wrong, which is especially valuable on servers hosting multiple independent businesses.
For site owners, the key takeaway is simple: ask whether your hosting environment uses CloudLinux account isolation and keep your applications current. For server administrators, enable CageFS deliberately, test the accounts that generate revenue, and treat any exception as something to resolve rather than ignore. The best hosting security is the kind that protects a business quietly, before a small site issue becomes a server-wide problem.
