aboutsummaryrefslogtreecommitdiffstats
path: root/config/vhosts/vhosts.inc
diff options
context:
space:
mode:
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");