The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit httpd processes per domain

Discussion in 'Workarounds and Optimization' started by pthirose, Mar 20, 2012.

  1. pthirose

    pthirose Member

    Mar 30, 2010
    Likes Received:
    Trophy Points:
    WHM 11.30.3 (build 5) REDHAT Enterprise 5.7 x86_64 vmware
    WHM 11.30.6 (build 4) REDHAT Enterprise 6.2 x86_64 vmware

    In short, any way to limit number of httpd processes on a per-domain basis?

    I'm guessing not :) I've seen a lot of similar requests based on per-user rather than per-domain, and that doesn't seem easy as well. I can try variations on /etc/security/limits.conf which sort of address the issue, since I do use suPHP and thus PHP pages run the process as the user, so limiting nproc on a per-user might work. It won't work on non-PHP pages, but any domain serving strictly *.html pages, I hope, aren't my limiting factor or problem :)

    These are all non-SSL domains using the same primary IP address, so I can't do iptables stuff on a per-target-IP basis (and even then, it's not exactly what I want.)

    I haven't done the rLimit* directives, since they really only affect children of httpd and not the httpd children themselves (although I suppose it doesn't hurt to have values for them anyway, just in case.)

    The above are generally what I've seen fly by on various forum postings in the past, and all roughly-sorta-kinda get to what I want to do. I was just hoping there might be some overlooked cPanel magic :)

    I'm trying to keep our cPanel relatively generic, so I haven't installed any of the various 3rd-party things such as CSF, despite their high recommendations here on the forums. For us, moving to CloudLinux (which also seems to get high recommendations) isn't quite (yet) an option. If CL is really that good (I don't know anything about it, coming from a RHEL-standard workshop), I might be able to make a case the work/learning is worth it. But that's a separate issue, not for this thread :)

    Thank you,

Share This Page