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.

Apache 2.2.6 / PHP 5.2.4

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

  1. i3903

    i3903 Well-Known Member

    Joined:
    Apr 27, 2003
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    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

    Joined:
    Mar 6, 2007
    Messages:
    126
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    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.

    http://httpd.apache.org/docs/2.2/mod/prefork.html

    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.
     
Loading...

Share This Page