No announcement yet.

MPM-ITK, Mod_Security and cagefs

  • Filter
  • Time
  • Show
Clear All
new posts

  • MPM-ITK, Mod_Security and cagefs

    MPM-ITK Mod_Security Cagefs

  • #2
    We want to convert a server from the following configuration:
    MPM-ITK, Mod_Security centos 6 & cpanel

    to a server with cloudlinux and cagefs (and MPM-ITK& Mod_Security & cpanel)

    We read it is possible but there is need for extra cagefs entries/configuration accourding to cpanel:

    > CageFS
    > To build EasyApache with Mod Security and the MPM ITK option on the CloudLinuxâ„¢ operating system, you must either uninstall or properly enable and configure CageFS before you run EasyApache with the Mod Security and MPM ITK options.
    > For more information about CageFS, read CloudLinuxs CageFS documentation.

    But we cant find the specifics what to do exactly (I could not found it in the documentation of cagefs). As this is a production server I would like to know what I have to do.

    And we need MPM-ITK with mod_security for this particular server

    So has anyone a idea/simular setup?


    • #3
      Apache MPM ITK support CageFS only if properly patched: and . Really not sure what is the proper way to do it on cpanel server, most probably with some /scripts/before_apache_make .

      Overall you can enable cagefs only for one account to test how it is going, and only after confirming all Ok enable it for all users.


      • #4
        Ok thanks, I will try that. Can you give me a hint what will go wrong if MPM_ITK is not patched? Wil if fail completely and show in the apache logs? Or will only some things go wrong? (so we can test it completely en correctly)


        • #5
          Without those patches websites on MPM ITK will work correctly however without CageFS, just like on regular linux server (however with LVE limits).


          • #6
            Ok the patch isnt nessecary because cPanel was kind enoug to include it in the easyapache:

            -- Begin dryrun test Applying CloudLinux patches (if applicable) --
            Patch tested at -p1; /home/cpeasyapache/src/cppatch/0002-easy-cloudlinux-itk.patch
            Applying patch; /home/cpeasyapache/src/cppatch/0002-easy-cloudlinux-itk.patch
            patching file
            patching file server/mpm/experimental/itk/itk.c
            -- End dryrun test Applying CloudLinux patches (if applicable) --

            (it took me a hole day to figure it out why the patch was showing errors when I did it manualy...)