Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    43

    Default How to install mod_security without loosing httpd.conf changes?

    Im really confused now. With running of easyapache3 today we have lost all our httpd.conf changes, now we are back to square one, all changes lost.

    In the new httpd.conf it says that any changes made will be lost la di da!!

    So how are we supposed to install 3rd party apps that make changes to httpd.conf during installation, eg mod security installs mod_sec.so plus a few other things? How are these preserved?

    We also need to add some other things to httpd.conf. Where do we add them and what do we run to preserve them? And after that, how do we reedit what has already been preserved?

    Im very confused.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,165
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Search the forums for the word distiller. There are several threads you'll probably want to read completely.

  3. #3
    Member
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    300

    Default

    Any manual changes made to httpd.conf need to be distilled. We are using a new config system that will help in keeping a syntactically correct httpd.conf at all times.

    Once you make any manual edits to httpd.conf. You will need to run '/usr/local/cpanel/bin/apache_conf_distiller --update --main' in order to update the templates with these changes. Once the changes have been distilled, they will be saved for later conf rebuilds.

    ModSecurity can also be installed using EA3.
    -Todd Shipway

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by gotroot View Post
    Im really confused now. With running of easyapache3 today we have lost all our httpd.conf changes, now we are back to square one, all changes lost.

    In the new httpd.conf it says that any changes made will be lost la di da!!

    So how are we supposed to install 3rd party apps that make changes to httpd.conf during installation, eg mod security installs mod_sec.so plus a few other things? How are these preserved?

    We also need to add some other things to httpd.conf. Where do we add them and what do we run to preserve them? And after that, how do we reedit what has already been preserved?

    Im very confused.
    The method to saving your changes is documented in httpd.conf at the top of the file.

  5. #5
    Member
    Join Date
    Mar 2007
    Posts
    43

    Default

    Yes i understand that making changes to httpd.conf then running distiller saves them elsehwere but what happens if i want to remove those changes? Where do i remove them from? Also, i had to rebuild apahce via easyapache. Are my old changes still in place and if so where can i see them?

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    There are several ways to remove entries. First check the output of /usr/local/cpanel/bin/apache_conf_distiller --help for various flags.

    If you wish to remove a Directive, simply remove it from httpd.conf and rerun apache_conf_distiller with --reset --update --main flags.

    If you wish to start afresh, run apache_conf_distiller with --update --reset --defaults

Similar Threads & Tags
Similar threads

  1. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2010, 03:08 AM
  2. httpd.conf sites/www.domain.com.conf Wildcard DNS
    By ttremain in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-16-2008, 12:19 PM
  3. mod_evasive install, then strange entry found in httpd.conf
    By jols in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-30-2008, 02:56 AM
  4. Install SSL Bundle CA without httpd.conf?
    By emdeex in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-19-2005, 07:00 PM
  5. SSL Install & httpd.conf. Apache Doesnt Start!
    By vinc_dc43 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-06-2003, 03:38 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube