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

    Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/2013122

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 Posters 2.7k 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.
    • T
      talbotdeg4
      last edited by

      Getting the following after upgrading from the terminal. Previous topics on the forum suggest editing extensions.ini file…which doesn't exist.
      Any help would be greatly appreciated. I have multiple sites to maintain.

      Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/simplexml.so' - Unknown relocation type 0 in PLT in Unknown on line 0
      pfSense - Netgate Device ID: 74a03544bda024246774
      
      *** Welcome to pfSense 2.4.2-RELEASE (amd64) on pfSense ***
      
       WAN (wan)       -> re0        -> v4: 24.73.248.82/30
       LAN (lan)       -> em0        -> v4: 10.10.10.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 '/usr/local/lib/php/20131226/simplexml.so' - Unknown relocation type 0 in PLT 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
       8) Shell
      
      Enter an option:
      
      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        These files should exist in /usr/local/lib/php/20131226 :

        total 3428
        drwxr-xr-x  2 root  wheel     1024 Nov 22 11:11 .
        drwxr-xr-x  4 root  wheel      512 Apr 13  2016 ..
        -rw-r--r--  1 root  wheel    37808 Nov 17 11:32 bcmath.so
        -rw-r--r--  1 root  wheel    22080 Nov 17 11:32 bz2.so
        -rw-r--r--  1 root  wheel    13408 Nov 17 11:32 ctype.so
        -rw-r--r--  1 root  wheel    82296 Nov 17 11:32 curl.so
        -rw-r--r--  1 root  wheel   185576 Nov 17 11:32 dom.so
        -rw-r--r--  1 root  wheel    46064 Nov 17 11:32 filter.so
        -rw-r--r--  1 root  wheel    54912 Nov 17 11:33 ftp.so
        -rw-r--r--  1 root  wheel    12776 Nov 17 11:32 gettext.so
        -rw-r--r--  1 root  wheel   177152 Nov 17 11:32 hash.so
        -rw-r--r--  1 root  wheel    41800 Nov 17 11:32 json.so
        -rw-r--r--  1 root  wheel    59688 Nov 17 11:32 ldap.so
        -rw-r--r--  1 root  wheel  1049792 Nov 17 11:32 mbstring.so
        -rw-r--r--  1 root  wheel    45552 Nov 17 11:32 mcrypt.so
        -rw-r--r--  1 root  wheel   147912 Nov 17 11:32 opcache.so
        -rw-r--r--  1 root  wheel   155384 Nov 17 11:32 openssl.so
        -rw-r--r--  1 root  wheel    30144 Nov 17 11:32 pcntl.so
        -rw-r--r--  1 root  wheel   102016 Nov 17 11:32 pdo.so
        -rw-r--r--  1 root  wheel    25384 Nov 17 11:32 pdo_sqlite.so
        -rw-r--r--  1 root  wheel   111312 Nov 17 11:32 pfSense.so
        -rw-r--r--  1 root  wheel    28960 Nov 17 11:32 posix.so
        -rw-r--r--  1 root  wheel    49360 Oct  9 00:09 radius.so
        -rw-r--r--  1 root  wheel    30384 Nov 17 11:32 readline.so
        -rw-r--r--  1 root  wheel    32688 Oct  9 00:14 rrd.so
        -rw-r--r--  1 root  wheel    80736 Nov 17 11:32 session.so
        -rw-r--r--  1 root  wheel    11904 Nov 17 11:32 shmop.so
        -rw-r--r--  1 root  wheel    54016 Nov 17 11:33 simplexml.so
        -rw-r--r--  1 root  wheel    83728 Nov 17 11:33 sockets.so
        -rw-r--r--  1 root  wheel    46176 Nov 17 11:32 sqlite3.so
        -rw-r--r--  1 root  wheel    71040 Oct  9 00:17 ssh2.so
        -rw-r--r--  1 root  wheel   149432 Oct  9 00:11 suhosin.so
        -rw-r--r--  1 root  wheel    16464 Nov 17 11:32 sysvmsg.so
        -rw-r--r--  1 root  wheel     9056 Nov 17 11:32 sysvsem.so
        -rw-r--r--  1 root  wheel    12376 Nov 17 11:32 sysvshm.so
        -rw-r--r--  1 root  wheel    18344 Nov 17 11:32 tokenizer.so
        -rw-r--r--  1 root  wheel    53360 Nov 17 11:32 xml.so
        -rw-r--r--  1 root  wheel    34448 Nov 17 11:33 xmlreader.so
        -rw-r--r--  1 root  wheel    49096 Nov 17 11:32 xmlwriter.so
        -rw-r--r--  1 root  wheel    36568 Nov 17 11:32 zlib.so
        -rw-r--r--  1 root  wheel    73040 Oct  9 00:14 zmq.so
        

        If one or more are missing consider your system 'hosed' : reinstall.

        Btw :

        find / -name extensions.ini
        

        informs me that that files doesn't exist any more.
        "extensions.ini" was used with an old PHP version – these days things work differently.

        See /usr/local/etc/php.ini and /usr/local/etc/php.conf for more info.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        T 1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          You can try forcing a reinstall of the php56-simplexml package.

          pkg clean -ay
          pkg install -fy php56-simplexml
          

          We don't use extensions.ini anymore, there are module-specific ini files in a common directory.

          For example,  the simplexml module would be loaded from /usr/local/etc/php/ext-20-simplexml.ini

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • T
            Thinawanga @Gertjan
            last edited by

            @gertjan where do I put the details

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @Thinawanga
              last edited by

              @thinawanga

              Can you explain what you mean with details ?

              You mean this place :

              @jimp said in Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/2013122:

              /usr/local/etc/php/

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Necroposting a vague message on a 5 year old thread, they're most likely a spammer/spambot.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 1
                • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.