To adjust the RAM limits for your hosting clients in cPanel, the process depends on whether you have CloudLinux installed. Most professional hosting environments use CloudLinux to manage these resources individually.
Case 1: You have CloudLinux (Recommended)
CloudLinux uses LVE (Lightweight Virtual Environment) to cap resources. You can adjust RAM (Physical Memory) either by “Package” or for a “Specific User.”
Method A: Adjust by Package (Best for scaling)
If you want all clients on a specific plan (e.g., “Silver Plan”) to have the same RAM limit:
- Log in to WHM as root.
- Search for CloudLinux Manager in the sidebar.
- Go to the Packages tab.
- Find the package you want to edit and click the Pencil icon (Edit).
- Locate PMEM (Physical Memory). Enter the value in MB or GB (e.g.,
1Gor1024M). - Click Save. All users assigned to that package will be updated automatically.
Method B: Adjust for a Single User
If one specific client needs a temporary boost:
- In CloudLinux Manager, go to the Users tab.
- Search for the client’s username.
- Click the Pencil icon next to their name.
- Change the PMEM value.
- Click Save.
Case 2: You do NOT have CloudLinux
Standard cPanel/WHM (on CentOS, AlmaLinux, or Ubuntu) does not have a native way to hard-limit a user’s total system RAM. You can only limit PHP memory, which prevents a single script from hogging RAM.
- Log in to WHM.
- Navigate to MultiPHP INI Editor.
- Select the Basic Mode tab and choose the PHP version your client is using.
- Find the
memory_limitrow and change it (e.g.,256Mor512M). - Click Apply.Note: This only limits PHP. If the user runs a Python script or a large cron job, this limit won’t stop them from using more system RAM.
Comparison of Memory Terms
| Term | Meaning | Recommendation |
| PMEM | Physical Memory: The actual RAM cap for the whole account. | Set to 1GB for standard sites. |
| VMEM | Virtual Memory: The limit on total memory address space. | Usually set to 0 (unlimited) to avoid errors. |
| memory_limit | PHP Limit: The max RAM a single PHP script can use. | Set to 256M for most WordPress sites. |
Quick CLI Shortcut (CloudLinux only)
If you have SSH access and want to do it quickly, run this command:
Bash
lvectl set-user [USERNAME] --pmem=2G
Replace [USERNAME] with the client’s actual username and 2G with your desired limit.