Create ioncube.sh
This commit is contained in:
parent
0abe1ee285
commit
534762a2af
|
|
@ -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
|
||||||
Loading…
Reference in New Issue