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.

Distilling httpd.conf can wipe it out. Be careful.

Discussion in 'General Discussion' started by jenlepp, Dec 23, 2009.

  1. jenlepp

    jenlepp Well-Known Member

    Joined:
    Jul 4, 2005
    Messages:
    116
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Liberty Hill, TX
    cPanel Access Level:
    DataCenter Provider
    Just wanted to share something that happened as a warning to be a little careful when messing with httpd.conf.

    A couple of days ago, I distilled and rebuilt httpd.conf, and something went "horribly wrong" and it produced a totally blank httpd conf. Yesterday, one of my staff who has his own server on Cpanel in a different data center, with different settings, in a totally different country had the same thing happen to him. (cPanel 11.25.0-C42399 - WHM 11.25.0 - X 3.9, Apache 2.2). We tried to fix it "right" by rebuilding apache, then doing a cPanel force, and nothing worked for a while. We're still not sure what caused it, or why.

    Just a friendly warning - before messing with httpd's config in any way, make sure you backup your current httpd.conf so that you can copy it over and get back up quickly (which I did not do :) ). I'm not sure what's causing it and initially I figured it was just me until it happened to someone else on a totally different server.

    Maybe it's just the two of us and we're just lucky that way, but in case not, just wanted to get this out there.
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Well, you should always backup (at least) the configuration files before making any changes... but well, with every mistake you learn something new and that's what is called "experience" ;)
     
  3. jenlepp

    jenlepp Well-Known Member

    Joined:
    Jul 4, 2005
    Messages:
    116
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Liberty Hill, TX
    cPanel Access Level:
    DataCenter Provider
    I know. In one of the cases, there was no change made to the configuration file, though, so there was no thought of a backup being needed. And I know we all should and I know some of us don't when in a hurry. :)

    Like I said, was just a friendly reminder/alert.
     
  4. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    cPanel automatically keep a history of all changes in a file called httpd.conf,v To recover a version of this file look at the man pages for the command "co".
     
  5. 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:
    Were any errors reported when distilling or rebuilding the Apache configuration?

    Was it something that you could reproduce more than once (i.e., trigger via a combination of specific modifications)?

    Were there any customizations applied to the Apache configuration templates (e.g., such as what can be customized in "/var/cpanel/templates")?
     
  6. jenlepp

    jenlepp Well-Known Member

    Joined:
    Jul 4, 2005
    Messages:
    116
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Liberty Hill, TX
    cPanel Access Level:
    DataCenter Provider
    Nope. I got "Distilled successfully" and "Built /usr/local/apache/conf/httpd.conf OK" both times with the message that "local" was being used.

    Once it was gone, it was gone, so whatever it was initially that broke it, it stayed broke until the original apache template was removed and another easyapache was run to rebuild it. I haven't tried to reproduce it. Once was enough on Christmas week, thanks. :)

    Yep, and that could have done it, but when it was taken out, it still couldn't return to a state where it could generate the httpd.conf as anything other than blank and there were no errors anywhere saying what the problem specifically was. Everything kept saying everything's a-ok, but the httpd.conf never got generated.
     
  7. markb14391

    markb14391 Well-Known Member

    Joined:
    Jun 9, 2008
    Messages:
    305
    Likes Received:
    2
    Trophy Points:
    18
    Well, I've had httpd fail on two new 11.25 servers without changing or distilling the config file. Things were moving along fine for a few hours, then httpd failed and won't start at all. I get e-mail alerts about it every few minutes.

    This is ridiculous, and is just the latest in many issues I've had with cPanel (not to mention the horrible banner that appears in every customer's account when you're using a trial version...our data center offers preconfigured cPanel VPS images with a 45-day trial account).

    Looking for alternatives...11.25 is very badly broken, which seems to continue a cPanel tradition of updates breaking people's servers.
     
  8. 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:
    The Apache issue experienced is unrelated to the difficulty distilling that was being discussed in this thread. As you are aware, the Apache issue was clarified in a different thread as mentioned here:
    Unable to connect to port 80 - cPanel Forums

    Please refrain from cross-posting the same issue as this increases the likelihood of confusion in the discussion within other, unrelated forum threads; the inquiry about trial licenses is discussed in-depth and answered in another thread as linked below:
    Ugly "Trial Version" Banner - cPanel Forums

    From the above thread, here are two specific posts that provide details and clarify the intended usage of trial licenses:
    cPanel Forums - View Single Post - Ugly "Trial Version" Banner
    cPanel Forums - View Single Post - Ugly "Trial Version" Banner

    If further difficulty is experienced where a bug is suspected or where the issue is of priority or a critical concern, please submit a support request so that the details may be thoroughly inspected, documented, investigated further, and or escalated as needed. Thank you for your understanding; it is greatly appreciated.
     
Loading...

Share This Page