Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    7

    Question How do you upgrade from the current mod_sec to 2.5?

    How do you upgrade from the current mod_security plugin in WHM (which is version 2.0?) to version 2.5 and have it still show up in WHM? Also, I have the CSF plugin in WHM, are the mod_sec version synced? Is there a way to update the cPanel and CSF mod_sec plugins together?

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by webenthusiast View Post
    How do you upgrade from the current mod_security plugin in WHM (which is version 2.0?) to version 2.5 and have it still show up in WHM? Also, I have the CSF plugin in WHM, are the mod_sec version synced? Is there a way to update the cPanel and CSF mod_sec plugins together?
    If you are running Apache 2.x, recompiling with mod_security support will give you mod_security 2.5.6. Just be sure to adjust your rules accordingly to the new format of mod_security 2.5.

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    77

    Default

    So to upgrade Mod_sec to point releases, such as 1.9.1 to 1.9.5, I need to recompile apache?

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cookiesunshinex View Post
    So to upgrade Mod_sec to point releases, such as 1.9.1 to 1.9.5, I need to recompile apache?
    That is correct, as this module will be compiled into Apache.

  5. #5
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Thumbs up

    Quote Originally Posted by cookiesunshinex View Post
    So to upgrade Mod_sec to point releases, such as 1.9.1 to 1.9.5, I need to recompile apache?
    Yes and No .... That really depends on what you prefer to do!

    The main question is whether you already have the WHM "Mod Security" plugin
    installed that allows you to manage and review your Mod Security logs from
    within WHM. If that is already installed then all you really need to do is
    upgrade your "Mod_Security" modules for Apache itself. If you don't have
    that plugin, then I probably would go ahead and use EasyApache to go ahead
    and get the WHM plugin installed.

    Either way you could just run /scripts/easyapache but that also recompiles
    a lot of things that have nothing to do with Mod_Security so a bit of overkill
    if you don't really need it.

    To manually upgrade, just download and compile:
    Code:
    # cd /usr/local/src
    # wget http://www.modsecurity.org/download/modsecurity-apache_2.5.9.tar.gz
    # tar zxvf modsecurity-apache_2.5.9.tar.gz
    # cd ./modsecurity-apache_2.5.9/apache2
    # ./configure
    # ./make
    # ./make test
    # ./make install
    You can also just unpack the archive and APXS install it as well and
    that will work for upgrading as well.

    Go to /usr/local/apache/conf and update the "httpd.conf" and "modsec2.conf"
    files as needed. If upgrading 2.x+, probably don't need to do much.

    Restart Apache (service httpd restart)

Similar Threads & Tags
Similar threads

  1. upgrade to cpanel Current has LOTS of issues
    By merlinpa1969 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-07-2007, 06:11 PM
  2. Manual upgrade to MySQL 4.1.22 on the CURRENT tree ?
    By #mOdY# in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 03-16-2007, 09:48 AM
  3. Lates current - got errros after upgrade
    By Angel78 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-03-2006, 03:21 PM
  4. exim.conf deleted after upgrade to latest CURRENT
    By Stream in forum cPanel and WHM Discussions
    Replies: 19
    Last Post: 02-01-2005, 11:08 AM
  5. MYSQL errors after upgrade to latest CURRENT version
    By mydomain in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-31-2004, 12:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube