PHP install failed
-
Good Morning,
yesterday I tried to install the Captive Portal Self Registration (according to http://forum.pfsense.org/index.php?topic=57260.0) on a embedded box.
First step is to install php-mysql support in pfSense (according to http://forum.pfsense.org/index.php/topic,47150.0.html). Unfortunately I got some strange errors and pfSense won't start any more:Output of```
pkg_info -r http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/All/php52-5.2.13_3.tbzDepends on:
Dependency: pkg-config-0.23_1
Dependency: libiconv-1.13.1_1
Dependency: libxml2-2.7.7after``` pkg_add -rfi http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/All/php52-5.2.13_3.tbz ```I installed the dependencies as mentioned above and did a``` /etc/rc.php_ini_setup
Now I got tons of errors like
Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/simplexml.so' - /usr/local/lib/php/20090626/simplexml.so: Undefined symbol "zend_class_serialize_deny" in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/xmlreader.so' - /usr/local/lib/php/20090626/xmlreader.so: Undefined symbol "zval_property_ctor" in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/xmlwriter.so' - /usr/local/lib/php/20090626/xmlwriter.so: Undefined symbol "zval_property_ctor" in Unknown on line 0 Warning: PHP Startup: curl: Unable to initialize module Module compiled with module API=20090626, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0 Warning: PHP Startup: gettext: Unable to initialize module Module compiled with module API=20090626, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0
resulting in a fatal error (xml support seems not to be loaded) and pfSense doesn't work anymore.
Where is my mistake?
Greets Philipp
-
Installing the right version of php-mysql (which was needed) did the trick ;)
pkg_add -rfiv http://ftp.uni-erlangen.de/mirrors/FreeBSD/ports/packages/databases/php53-mysql-5.3.27.tbz pkg_info -r http://ftp.uni-erlangen.de/mirrors/FreeBSD/ports/packages/databases/php53-mysql-5.3.27.tbz /etc/rc.php_ini_setup reboot