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!

Custom httpd.conf not saving after rebuild

Discussion in 'General Discussion' started by GoWilkes, Jun 19, 2013.

  1. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    397
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    I went through my httpd.conf file quite awhile back, creating numerous RewriteRules, combining ServerAliases, etc. When it was all said and done, the file had gone from 122kb to 30kb (including the new RewriteRules), and the server load was notably lower.

    A few days ago, though, Apache updated, and I lost all of those custom configurations! Luckily, I had a backup on file, and after going through everything line-by-line, the only thing that the update HAD to change was turning this line:

    UserDir public_html

    To this:

    <IfModule !mod_ruid2.c>
    UserDir public_html
    </IfModule>

    <IfModule mod_ruid2.c>
    UserDir disabled
    </IfModule>

    So, after I updated everything and uploaded the new, updated httpd.conf, I ran:

    /usr/local/cpanel/bin/apache_conf_distiller --update

    This was linked in the httpd.conf file, but I thought that I had just overlooked it before.

    The problem now, though, is that when I rebuild Apache, via:

    /usr/local/cpanel/bin/build_apache_conf

    I lose all of those changes again.

    So, the question is, how can I permanently store those changes, so that future updates don't wipe them all out again?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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