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.

Modify httpd.conf

Discussion in 'General Discussion' started by NT, Oct 4, 2007.

  1. NT

    NT Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    England, UK
    Hi All,

    I recently made some changes to my httpd.conf, however these changes have now been removed, presumably by easyapache or some other cPanel program.

    My question is - how can I make changes to httpd.conf without them being overwritten? I tried the easyapache distiller as suggested at the top of httpd.conf, and this worked when restoring the configuration (also suggested at the top of the file), but now - for some reason - those changes have been lost.

    Thanks in advance,
    Nick
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
  3. NT

    NT Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    England, UK
    Hi David,

    Thanks for the link - I'll take a look :)
     
  4. NT

    NT Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    England, UK
    Hi David,

    My changes are in the VirtualHost template in /var/cpanel/userdata, but they're not in httpd.conf. This is strange because they were in httpd.conf yesterday, but something must have happened today to remove them. The only thing I've done today is a force upcp, which I guess could have done something...

    Do you have any idea how I can "merge" my changes back into the main httpd.conf? I don't really want to fiddle around without knowing what I'm doing :)

    Thanks
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    /var/cpanel/userdata is not a template, it is subject to change.

    If you want to change something in a VHost, please read the question "User wants to add something to a virtualhost" in the document David linked to. If you want to add something to the global portion of httpd.conf, then make your change and execute:

    /usr/local/cpanel/bin/apache_conf_distiiller --update --main
     
  6. NT

    NT Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    England, UK
    Thanks for clarifying - I've got my head round that document and am pleased to say that it is now working :)

    Thanks again all.
     
Loading...

Share This Page