Question
Why are the CloudLinux LVE memory limits not being enforced for Apache?
Answer
CloudLinux is not fully compatible with Apache module mod_ruid2. You can confirm whether it is being used or not with this command:
apachectl -M | grep ruid
If there is no output, mod_ruid2 is not in use. If it shows output like the following example, you will need to replace it with mod_suexec.
[server root@hostname ~]cPs# apachectl -M | grep ruid
ruid2_module (shared)
CloudLinux documentation on this is available here.
We have more information on the modules in this article: mod_ruid2 vs mod_suexec
To ensure that the LVE memory limits are being enforced for Apache, you will need to utilize EasyApache 4 to remove mod_ruid2 and replace it with mod_suexec. Information on installing Apache modules in WHM is available here: