Create ioncube.sh

This commit is contained in:
FusionPBX 2018-03-06 00:38:42 -07:00 committed by GitHub
parent 0abe1ee285
commit 534762a2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

View File

@ -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