Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache 2.2.6 / PHP 5.2.4

Discussion in 'EasyApache' started by i3903, Oct 15, 2007.

  1. i3903

    i3903 Well-Known Member

    Apr 27, 2003
    Likes Received:
    Trophy Points:
    Does Apache 2 follow MaxSpareServers, StartServers etc?
    Apache processes seem to be running away into their hundreds, and the new httpd.conf doesn't seem to contain any type of controls. Any advice appreciated :)
  2. jdlightsey

    jdlightsey Perl Developer III Staff Member

    Mar 6, 2007
    Likes Received:
    Trophy Points:
    Houston Texas
    cPanel Access Level:
    Root Administrator
    The directives you use to control resource usage in Apache 2.0 and 2.2 are dependant on the MPM you selected while building Apache. If you selected the prefork MPM, the directives are virtually identical to those used in Apache 1.3.

    You can tell which MPM your apache binary is using with a command like this:

    /usr/local/apache/bin/httpd -M 2>&1 | grep mpm

    If you're using one of the threaded MPMs like 'worker' or 'event', you'll need to be careful about which modules you load in httpd.conf. For example, libphp4 and libphp5 aren't thread-safe, so you really shouldn't configure PHP as DSO when using one of the threaded MPMs.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice