Skip to main content

Installing modsecurity Error

Comments

8 comments

  • quizknows
    You should just need to run an easyapache with your current apache and php versions intact. That will upgrade modsecurity when it runs. When new ModSecurity versions are available in EA, you don't get the new version unless you re-run EA. In other words, just because EA builds modsec 2.9 now doesn't mean you're running that version unless you've recently ran a build.
    0
  • cPanelMichael
    Hello :) Yes, as mentioned, it's likely because you have not run EasyApache recently. Ensure you proceed with the actual Apache build when utilizing the EasyApache option. Thank you.
    0
  • prakashnplink
    yes ofcourse easyapache was run and apache is rebuild again but again same problem. There is two options to build apache: apache 2.2 and 2.4, our apache is 2.2. The thing is that even it is not upgraded to minor version like from 2.2.26 to 2.2.29 or 2.2.31. How to upgrade minor version of apache when there is only two option 2.2 and 2.4? :(
    0
  • cPanelMichael
    How to upgrade minor version of apache when there is only two option 2.2 and 2.4?

    The most recent minor version available with EasyApache is automatically utilized. Have you verified that EasyApache completes successfully and there are no build failures? Thank you.
    0
  • quizknows
    You can run "/scripts/easyapache --latest-versions" to see what the latest minor versions are that will be built:
    [root@new ~]# /scripts/easyapache --latest-versions !! Object fetch succeeded with {"status":"1"} for EasyApache v3305 and Cpanel v1150 !! Easy Apache v3.30.5 [Apache] 2.2.31, 2.4.16 [PHP 5] 5.3.29, 5.4.44, 5.5.28, 5.6.12
    0
  • prakashnplink
    Okay looks like there is an error while rebuilding Apache. Because of this error, easyapache roll back to previous state and apache was never updated. ERROR: Configuration problem detected on line 28 of file /usr/local/apache/conf/httpd.conf.1440180446: : Syntax error on line 2 of /usr/local/apache/conf/includes/pre_main_global.conf: Cannot load /usr/local/apache/modules/mod_rpaf-2.0.so into server: /usr/local/apache/modules/mod_rpaf-2.0.so: cannot open shared object file: No such file or directory I think the module mod_rpaf-2.0.so is manually installed. To fix it I have to do following: [1] Remove the LoadModule line for the custom unsupported mod_rpaf-2.0 module from Apache includes [2] Run EasyApache as desired [3] Manually re-install the custom unsupported mod_rpaf-2.0 module again and put its LoadModule line back Thank you for replies. :)
    0
  • cPanelMichael
    I think the module mod_rpaf-2.0.so is manually installed. To fix it I have to do following:

    Hello :) Note there is a post about this at:
    0
  • prakashnplink
    Thank you.
    0

Please sign in to leave a comment.