Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Apache path error apache_mod_security.inc with fix

    Scheduled Pinned Locked Moved pfSense Packages
    18 Posts 3 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cmenghi
      last edited by

      Sorry,

      Im using Proxy Server with mod_security 0.1.7 in PFsense 2.2.4

      Im do the fix suggested in this post but didn't work, the only solution for my was copy the virtual host section from:

      /usr/local/etc/apache22/httpd.conf
      
      ```into
      

      /usr/pbi/proxy_mod_security-i386/etc/apache22/httpd.conf

      And start httpd from console to work correctly.
      
      If made any change form webui i get this error
      
      

      php-fpm: /pkg_edit.php: The command '/usr/local/sbin/httpd -t' returned exit code '1', the output was 'httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_cgi.so into server: Cannot open "/usr/pbi/proxy_mod_security-i386/local/libexec/apache22/mod_cgi.so

      
      Sorry, i'm do a mistake in my previous post.
      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @cmenghi:

        Im using Proxy Server with mod_security 0.1.7 in PFsense 2.2.4

        After looking at the package, I'd rather not comment on the code. The apache_mod_security-dev v0.1.7 variant should take about a day to fix. The apache_mod_security-dev thing, I don't think I have time nor patience to be digging in about 5 times the amount of code compared to the non-dev variant.

        As it is, chances of the code working are about zero.

        EDIT: Broken garbage fixes here: https://github.com/pfsense/pfsense-packages/pull/1069

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          Merged. Kindly test with 0.1.8 and report what's still broken.

          1 Reply Last reply Reply Quote 0
          • C
            cmenghi
            last edited by

            Hi im upgrade to 0.1.8 but problems still persist

            the changes made from ui are writing to /usr/pbi/proxy_mod_security-i386/etc/apache22/httpd.conf but , mod_security is not loaded or applied, and i cant start httpd service from webui (php-fpm: /pkg_mgr_install.php: The command '/usr/pbi/proxy_mod_security-i386/local/sbin/httpd -t' returned exit code '1', the output was 'Shared object "libaprutil-1.so.0" not found, required by "httpd"')

            and when i need to start from console say that de mod_cgi is not exist, so i edit manualy /usr/pbi/proxy_mod_security-i386/etc/apache22/httpd.conf and add a comment to the line #LoadModule cgi_module libexec/apache22/mod_cgi.so

            and start from console the service.

            PF 2.2.4 i386
            Proxy Server with mod_security 0.1.8

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              Upgrade is useless. You need to

              • uninstall
              • reinstall
              • resave the configuration of the package

              to have any chance to see the changes. Upgrade -> not working for any similar install fixes.

              1 Reply Last reply Reply Quote 0
              • C
                cmenghi
                last edited by

                Hi, thanks for the quick reply.

                Im tried reinstalling the package but didn't work.

                1 Reply Last reply Reply Quote 0
                • D
                  doktornotor Banned
                  last edited by

                  https://github.com/pfsense/pfsense-packages/pull/1157 - final time I'm touching this. When 0.1.9 gets merged, preferably try this on a box which never had the previous clusterfuck installed.

                  Doesn't work? Wait for 2.3, noone has time to deal with the PBI shit. Sorry.

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmenghi
                    last edited by

                    ok, thanks for your time, ETA to 2.3 ?

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by

                      Shrug; there are alpha snapshots available. Sure like hell completely unsuitable for production. :D

                      1 Reply Last reply Reply Quote 0
                      • C
                        cmenghi
                        last edited by

                        Im test in a VM, looks amazing, great job!!  but is too risky to use it in a production eviroment and i dont see apache+modsecurity in the packages to install.

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned
                          last edited by

                          0.1.9 merged - good luck :P

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.