Add php extensions?
-
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.
-
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
-
We don't need to edit ?
/usr/local/etc/php.ini
-
No, leave that alone.
-
Great. I will make the changes and let u know, thanks doktornotor .
-
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]
-
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?
-
Just upgrade to 2.1