From 6d96e75ea12742bb5826a5cc5253875370b7328b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 3 Jun 2019 09:55:35 -0600 Subject: [PATCH] Update ioncube.sh --- ubuntu/resources/ioncube.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ubuntu/resources/ioncube.sh b/ubuntu/resources/ioncube.sh index 478d9a5..4e21c89 100755 --- a/ubuntu/resources/ioncube.sh +++ b/ubuntu/resources/ioncube.sh @@ -70,3 +70,13 @@ if [ ."$php_version" = ."7.1" ]; then #restart the service service php7.1-fpm restart fi +if [ ."$php_version" = ."7.2" ]; then + #copy the php extension .so into the php lib directory + cp ioncube/ioncube_loader_lin_7.2.so /usr/lib/php/20160303 + + #add the 00-ioncube.ini file + echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.2.so" > /etc/php/7.2/fpm/conf.d/00-ioncube.ini + + #restart the service + service php7.2-fpm restart +fi