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

    upgrade to 2.4.5 gone bad.. php libs gone missing.

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    11 Posts 5 Posters 2.6k Views 5 Watching
    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.
    • RicoR Offline
      Rico LAYER 8 Rebel Alliance
      last edited by

      I‘d just reinstall the system and restore the config.

      -Rico

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jeli @Rico
        last edited by

        @Rico I'm remote from the system. I don't have the luxury of that as far as I know....If it was just FreeBSD I'd be fine as I know all the moving pieces but all the php and database stuff to me is a mystery. So I don't know if I could reinstall while running it... If it used Boot environments it would be easier to experiment..
        Maybe I can just get a copy of php/20131226/ from someone..

        1 Reply Last reply Reply Quote 0
        • kiokomanK Offline
          kiokoman LAYER 8
          last edited by

          https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html#upgrade-not-offered-library-errors

          follow the troubleshooting path

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jeli
            last edited by jeli

            thing is that I think the upgrade is only half done.
            there are still pfsense binaries trying to access the old libraries. pfSense-upgrade is one of them..I need to get a new copy of these old binaries.
            I'm trying the 'reinstall every pkg ' option in the page you pointed to.. if that doesn't help it's going to be a difficult time bootstrapping this thing up.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jeli
              last edited by

              well that was a bust the install scripts for the new stuff want to run the old stuff???

              pages and pages of:

              Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
              XML Extension not found
              pkg-static: POST-INSTALL script failed
              [52/174] Reinstalling php72-pear-HTTP_Request2-2.3.0,1...
              [52/174] Extracting php72-pear-HTTP_Request2-2.3.0,1: 100%

              Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/lib/php/20131226/opcache.so (Cannot open "/usr/local/lib/php/20131226/opcache.so"), /usr/local/lib/php/20131226/opcache.so.so (/usr/local/lib/php/20131226/opcache.so.so: invalid file format)) in Unknown on line 0

              Warning: PHP Startup: Unable to load dynamic library 'pfSense.so' (tried: /usr/local/lib/php/20131226/pfSense.so (Cannot open "/usr/local/lib/php/20131226/pfSense.so"), /usr/local/lib/php/20131226/pfSense.so.so (/usr/local/lib/php/20131226/pfSense.so.so: invalid file format)) in Unknown on line 0

              1 Reply Last reply Reply Quote 0
              • kiokomanK Offline
                kiokoman LAYER 8
                last edited by

                pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade
                

                ??

                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                Please do not use chat/PM to ask for help
                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jeli
                  last edited by

                  yeah did that before..

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jeli
                    last edited by jeli

                    managed to get the system up but option 12 on the menu is still spewing errors. The library file suhosin.so is in the 20131226 directory. Everything else in there is 0 bytes long so I moved it to one side. If I put just the suhosin .so file there it just makes it so much worse because it then looks for a whole bunch more but cant find them (or they are 0 bytes if it can).. Since the new release uses 20170718, what is still looking for the old php?

                    
                    Warning: PHP Startup: Unable to load dynamic library 'suhosin.so' (tried: /usr/local/lib/php/20170718/suhosin.so (/usr/local/lib/php/20170718/suhosin.so: invalid file format), /usr/local/lib/php/20170718/suhosin.so.so (/usr/local/lib/php/20170718/suhosin.so.so: invalid file format)) in Unknown on line 0
                    Netgate SG-4860 - Serial: 1507152081 - Netgate Device ID: 804bab56f8c31a1b414b
                    
                    *** Welcome to pfSense 2.4.5-RELEASE-p1 (amd64) on pfSense ***
                    
                     WAN0 (wan)      -> igb0       -> v4/DHCP4: 192.168.0.27/24
                     LAN2 (lan)      -> igb1       -> v4: 192.168.2.2/24
                     WIFIQBURNETTIA (opt1) -> ath0_wlan0 -> v4: 192.168.3.1/24
                     LAN4 (opt2)     -> igb2       -> v4: 192.168.4.1/24
                    
                     0) Logout (SSH only)                  9) pfTop
                     1) Assign Interfaces                 10) Filter Logs
                     2) Set interface(s) IP address       11) Restart webConfigurator
                     3) Reset webConfigurator password    12) PHP shell +
                    Warning: PHP Startup: Unable to load dynamic library 'suhosin.so' (tried: /usr/local/lib/php/20170718/suhosin.so (/usr/local/lib/php/20170718/suhosin.so: invalid file format), /usr/local/lib/php/20170718/suhosin.so.so (/usr/local/lib/php/20170718/suhosin.so.so: invalid file format)) in Unknown on line 0
                    pfSense tools
                     4) Reset to factory defaults         13) Update from console
                     5) Reboot system                     14) Disable Secure Shell (sshd)
                     6) Halt system                       15) Restore recent configuration
                     7) Ping host                         16) Restart PHP-FPM```
                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      teicee
                      last edited by

                      The suhosin lib is not compatible with PHP 7.2.
                      You have to delete the following file: "/usr/local/etc/php/ext-30-suhosin.ini" to disable this PHP extension.

                      A 1 Reply Last reply Reply Quote 1
                      • A Offline
                        agahnim @teicee
                        last edited by

                        @teicee This worked great!

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