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.

Preserve httpd.conf during recompile

Discussion in 'General Discussion' started by kives, Aug 2, 2009.

  1. kives

    kives Registered

    Aug 2, 2009
    Likes Received:
    Trophy Points:
    I am using cPanel and EasyApache with this configuration:

    cPanel 11.24.5-R37629 - WHM 11.24.2 - X 3.9
    CENTOS 5.3 i686 virtuozzo on h187420
    When I recompile apache using EasyApache through WHM it overwrites my httpd.conf, even though I have ran the distiller listed in the top of the comments of the httpd.conf.

    Am I missing something? I hate having to fix hot swap my httpd.conf back when recompiling to enable a PHP or Apache extension. I have also modified it so that that htdocs is inside a home directory (/home/user_name/public_html) instead of the traditional /usr/local/apache/htdocs

  2. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Apr 22, 2009
    Likes Received:
    Trophy Points:
    Starting with cPanel 11.x all the apache settings are also stored in a database and the configuration files are recreated each time an account is added or a recompile is done.

    To also save the changes in the database you will have to run:
    /usr/local/cpanel/bin/apache_conf_distiller –update

    You can check to see if the changes were accepted and will not be discarded at the next apache recompile by running :

Share This Page