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.

httpd.conf extra configuration

Discussion in 'General Discussion' started by bhd, Oct 20, 2009.

  1. bhd

    bhd Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    JNB ZA
    cPanel Access Level:
    Root Administrator
    I used /usr/local/apache/conf/httpd.conf but you could also do it in the include files specified at the top of the httpd.conf file. Mine show:

    Include "/usr/local/apache/conf/includes/pre_main_global.conf"
    Include "/usr/local/apache/conf/includes/pre_main_2.conf"

    What is important is that you run this after you make changes:

    /usr/local/cpanel/bin/apache_conf_distiller --update
     
  2. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    1) What httpd.conf should I edit for making changed to all of the sites?

    2) Where do I add information such as MaxClients and StartServer etc?
     
  3. bhd

    bhd Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    JNB ZA
    cPanel Access Level:
    Root Administrator
    very weird -- my post was after you started this thread but it's the first post and the time shows it was posted before you :confused:
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    bhd is correct in suggesting the include files; the Apache configuration includes may be used to insert this type of customization for when the desired option or setting does not have an existing entry in your main Apache configuration (httpd.conf) file.

    To note, it is only necessary to run the distiller when modifying the main "httpd.conf" file; if just editing an include file, I would primarily recommend verifying the Apache configuration as a whole is free of error and verify that Apache can still stop, start, and restart successfully. Here is a command you could use to run a basic configuration test, followed by testing stop, start, and restart:
    Code:
    # /usr/local/apache/bin/apachectl configtest
    Reference documentation, for editing the include files via WHM:
    IncludeEditor < AllDocumentation/WHMDocs < TWiki
    OutsideVHost < EasyApache3 < TWiki
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Regarding post date mix up above ...

    This would suggest either the clock was reset between the posts or Cpanel is running mirrored servers that have clocks that are out of sync. ;)
     
Loading...

Share This Page