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

    Add php extensions?

    Scheduled Pinned Locked Moved pfSense Packages
    8 Posts 2 Posters 2.5k 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.
    • perikoP
      periko
      last edited by

      Hi my friends.

      We are building a app for pfsense, but we need some php extension like hash, json.

      I had seen freebsd packages-8.3 and we have there php5.3.x, pf runs php 5.2.x, someone have add some php extensions without issue?

      pf 2.0.3

      Thanks.

      Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
      www.bajaopensolutions.com
      https://www.facebook.com/BajaOpenSolutions
      Quieres aprender PfSense, visita mi canal de youtube:
      https://www.youtube.com/c/PedroMorenoBOS

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

        There are already there.

        
        touch /etc/php_dynamodules/json
        touch /etc/php_dynamodules/hash
        
        

        to load them.

        
        ls -1 /usr/local/lib/php/20090626/
        apc.so
        bcmath.so
        bz2.so
        ctype.so
        curl.so
        dom.so
        gettext.so
        hash.so
        json.so
        ldap.so
        mbstring.so
        mcrypt.so
        mysql.so
        openssl.so
        pcntl.so
        pdo.so
        pdo_sqlite.so
        pfSense.so
        posix.so
        radius.so
        readline.so
        session.so
        shmop.so
        simplexml.so
        sockets.so
        sqlite.so
        ssh2.so
        suhosin.so
        sysvmsg.so
        sysvsem.so
        sysvshm.so
        tokenizer.so
        xdebug.so
        xml.so
        xmlreader.so
        xmlwriter.so
        zlib.so
        zmq.so
        
        
        1 Reply Last reply Reply Quote 0
        • perikoP
          periko
          last edited by

          We don't need to edit ?

          /usr/local/etc/php.ini

          Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
          www.bajaopensolutions.com
          https://www.facebook.com/BajaOpenSolutions
          Quieres aprender PfSense, visita mi canal de youtube:
          https://www.youtube.com/c/PedroMorenoBOS

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

            No, leave that alone.

            1 Reply Last reply Reply Quote 0
            • perikoP
              periko
              last edited by

              Great. I will make the changes and let u know, thanks doktornotor .

              Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
              www.bajaopensolutions.com
              https://www.facebook.com/BajaOpenSolutions
              Quieres aprender PfSense, visita mi canal de youtube:
              https://www.youtube.com/c/PedroMorenoBOS

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

                On another note, these are loaded by default with 2.1, so there's nothing to do really:

                
                $ /usr/local/bin/php -m | /usr/bin/grep -v "\["
                apc
                bcmath
                cgi-fcgi
                Core
                ctype
                curl
                date
                dom
                ereg
                gettext
                hash
                json
                ldap
                libxml
                mbstring
                mcrypt
                mhash
                mysqlnd
                openssl
                pcntl
                pcre
                PDO
                pfSense
                posix
                radius
                readline
                Reflection
                session
                shmop
                SimpleXML
                SPL
                SQLite
                ssh2
                standard
                suhosin
                xml
                xmlreader
                xmlwriter
                zlib
                zmq
                Suhosin
                [/code]
                
                
                1 Reply Last reply Reply Quote 0
                • perikoP
                  periko
                  last edited by

                  I'm running 2.0.3, json is there, how can I add php5-hash?

                  If I run:

                  pkg_add -r

                  Will bring php52.

                  Any tip? need to build just that module on other machine running fbsd?

                  Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
                  www.bajaopensolutions.com
                  https://www.facebook.com/BajaOpenSolutions
                  Quieres aprender PfSense, visita mi canal de youtube:
                  https://www.youtube.com/c/PedroMorenoBOS

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

                    Just upgrade to 2.1

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