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!

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 :
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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