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!

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

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    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:
    166
    Location:
    England, UK
    Hi David,

    Thanks for the link - I'll take a look :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. NT

    NT Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,569
    Likes Received:
    45
    Trophy Points:
    308
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. NT

    NT Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    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