Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    1

    Default Preserve httpd.conf during recompile

    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

    Thanks!

  2. #2
    Member
    Join Date
    Apr 2009
    Posts
    230

    Default

    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 :
    /usr/local/cpanel/bin/build_apache_conf

Similar Threads & Tags
Similar threads

  1. Custom php.conf how to preserve cpanel from overwriting it?
    By palav0s in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-19-2011, 01:49 PM
  2. Faulty httpd.conf - can't rebuild with rebuildhttpd.conf
    By movielad in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-21-2011, 12:43 PM
  3. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2010, 02:08 AM
  4. httpd.conf sites/www.domain.com.conf Wildcard DNS
    By ttremain in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-16-2008, 11:19 AM
  5. Daily httpd restart changes AllowOverride None to All in httpd.conf
    By Lasers in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 02-26-2007, 12:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube