Howto add in extra PHP module support into pfsense
-
Here a howto add in extra php support into pfsense
you need to add extra php module support int pfsense for database manipulation or what have you.
here is the easiest way to do it
your software is found here:http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/All/
you use php52 modules for pfsense
the biggest problem with pfsense is that installing php modules directly will break it.
for some strange reason if certain file are reinstalled it breaks pfsense..
so you will have to step through the install skipping files that are already installed.
the easiest way to do it is with the use of pkg_add -rfi and pkg_info -r
step 1:
do a:
pkg_info -r http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/All/php52-XXXXX.tbz of the package you want to install ( XXXXX representing the name of the package )then
pkg_add -rfi http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/All/php52-XXXXX.tbz
(this forces only to install the PHP portion of the package )then
/etc/rc.php_ini_setup
this will list the broken dependency
Step 2:
compare the broken dependency name to the pkg_info list if you can not determine which file it belongs to do a google search to determine it
once you determined the file copy and paste the name from the pkg_info list to where the XXXXX are in the line below and enter .pkg_add -rfi http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/All/php52-XXXXX.tbz
then do a
/etc/rc.php_ini_setupit will list the next dependency
now repeat step 2 until no more broken dependencies
Step 3
now do a
touch /etc/php_dynamodules/YYYY(YYYY being the name of the module minus the version/release numbers)
/etc/rc.php_ini_setup
exit
when you are back at the shell main menu screen , if all went well the it should look normal if something got broke you usually displays an error here..
restart the computer all should be work fine afterwards
background software
the background software such as mysql server can usually be installed normally with
pkg_add -r http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/All/ZZZZZZ.tbzif by some chance it does break it (has not happen to me yet) you most likely will have to step through the installation the same way as mention above
good luck have fun :)