aboutsummaryrefslogtreecommitdiffstats
path: root/config/vhosts/vhosts.inc
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-12-23 15:00:58 -0700
committermcrane <mctch@yahoo.com>2009-12-23 15:00:58 -0700
commit3ac45af4c58eafd559f178e2f5ae0e2c20fedf03 (patch)
treecb1f4a63257a339cf059bf51b80e8fd46eb17421 /config/vhosts/vhosts.inc
parentcb47099503bb62663f1e93f02dec0bdabe2cc68e (diff)
downloadpfsense-packages-3ac45af4c58eafd559f178e2f5ae0e2c20fedf03.tar.gz
pfsense-packages-3ac45af4c58eafd559f178e2f5ae0e2c20fedf03.tar.bz2
pfsense-packages-3ac45af4c58eafd559f178e2f5ae0e2c20fedf03.zip
vHosts missing dependency for php5 added for pfsense 1.2.3.
Diffstat (limited to 'config/vhosts/vhosts.inc')
-rw-r--r--config/vhosts/vhosts.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/vhosts/vhosts.inc b/config/vhosts/vhosts.inc
index e9a1a6ec..6cea0c04 100644
--- a/config/vhosts/vhosts.inc
+++ b/config/vhosts/vhosts.inc
@@ -732,6 +732,25 @@ function php_install_command() {
exec("mkdir /usr/local/vhosts/");
}
+ if(stristr(php_uname('r'), '7.2') == TRUE) {
+ if (!file_exists('/usr/local/lib/libxml2.so.5')) {
+ chdir('/usr/local/lib/');
+ exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/libxml2.so.5");
+ }
+ if (!file_exists('/usr/local/lib/libxml2.so')) {
+ chdir('/usr/local/lib/');
+ exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/libxml2.so");
+ }
+ if (!file_exists('/usr/local/lib/libxml2.la')) {
+ chdir('/usr/local/lib/');
+ exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/libxml2.la");
+ }
+ if (!file_exists('/usr/local/lib/libxml2.a')) {
+ chdir('/usr/local/lib/');
+ exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/lib/libxml2.a");
+ }
+ }
+
//rename PHP files from .tmp to .php
exec("cp /tmp/vhosts_php.tmp /usr/local/www/packages/vhosts/vhosts_php.php");
unlink_if_exists("/tmp/vhosts_php.tmp");