浏览代码

Start adding php version 7.4

FusionPBX 4 年之前
父节点
当前提交
8a9620a581
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      ubuntu/resources/ioncube.sh

+ 11 - 0
ubuntu/resources/ioncube.sh

@@ -81,3 +81,14 @@ if [ ."$php_version" = ."7.2" ]; then
         #restart the service
         service php7.2-fpm restart
 fi
+if [ ."$php_version" = ."7.4" ]; then
+        #copy the php extension .so into the php lib directory
+        cp ioncube/ioncube_loader_lin_7.4.so /usr/lib/php/20170718
+
+        #add the 00-ioncube.ini file
+        echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.4.so" > /etc/php/7.4/fpm/conf.d/00-ioncube.ini
+	echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.4.so" > /etc/php/7.4/cli/conf.d/00-ioncube.ini
+
+        #restart the service
+        service php7.4-fpm restart
+fi