Apache and php settings

Discussion in 'Site & Server Administration' started by ASTRAPI, Apr 7, 2010.

  1. #1
    Hello

    Where all these settings are in the server?

    Which files?

    How can i adjust them for a high traffic forum with server specs:

    # 2x Intel Xeon Quad 5405
    # 12GB Ram
    # 4 SAS Disks in Raid 10
    # 1.000 Mbit port Unshared

    I am using Apache and Mpm Worker and Cpanel.


    --------------------------------------

    KeepAlive=on
    KeepAliveTimeout=6
    MaxKeepAliveRequests=1000

    --------------------------------------

    ServerLimit 60
    MaxClients 60

    --------------------------------------

    StartServers 30
    MinSpareServers 30
    MaxSpareServers 30
    MaxRequestsPerChild 1000


    Thank you
     
    ASTRAPI, Apr 7, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    I always recommend to use the "Includes" files with cPanel for customizing configurations.

    
    /usr/local/apache/conf/includes/
    
    Code (markup):
    If you make changes to the ServerLimit, you must completely stop, the start the Apache service for the changes to take effect, a simple restart will not work.
     
    RHS-Chris, Apr 8, 2010 IP
  3. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #3
    The OP stated they are using cPanel, if the installation is default, then from my understanding, apachectl would be located here:
    
    /usr/local/apache/bin/apachectl
    
    Code (markup):

    You can also achieve this by issuing the following commands, as the root user:
    /sbin/service httpd stop
    /sbin/service httpd start
    Code (markup):
    Chris
     
    RHS-Chris, Apr 8, 2010 IP
  4. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What do you think is a good value for my "MaxKeepAliveRequests" ?

    Thank you
     
    ASTRAPI, Apr 13, 2010 IP
  5. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #5
    In most cases, I turn KeepAlive off. It used to be needed due to slow dial connections, where you would want to keep the connection alive for the next request. If anything, keep it at a lower value.
     
    RHS-Chris, Apr 13, 2010 IP
  6. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok thanks :)
     
    ASTRAPI, Apr 14, 2010 IP
  7. sysadmin

    sysadmin Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hello,
    I have some optimization and tuning documentation for high traffic websites , please read it here "www.sherin.co.in/openxhandbook/" . Most of those methods are general for high traffic sites
     
    sysadmin, Apr 15, 2010 IP