From 534762a2afb10dbd19b0cbf2414e4f03a7186768 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 6 Mar 2018 00:38:42 -0700 Subject: [PATCH] Create ioncube.sh --- freebsd/resources/ioncube.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 freebsd/resources/ioncube.sh diff --git a/freebsd/resources/ioncube.sh b/freebsd/resources/ioncube.sh new file mode 100644 index 0000000..5bd40cb --- /dev/null +++ b/freebsd/resources/ioncube.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ./config.sh +. ./colors.sh +. ./environment.sh + +#get the ioncube 64 bit loader +fetch http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_fre_9_x86-64.tar.gz + +#uncompress the file +tar -xvzf ioncube_loaders_fre_9_x86-64.tar.gz + +#remove the tar.gz file +rm ioncube_loaders_fre_9_x86-64.tar.gz + +#copy the php extension .so into the php lib directory +cp ioncube/ioncube_loader_fre_7.1.so /usr/local/lib/php/20160303 + +#add the 00-ioncube.ini file +echo "zend_extension = /usr/local/lib/php/20160303/ioncube_loader_fre_7.1.so" > /usr/local/etc/php/00-ioncube.ini + +#restart the service +service php-fpm restart