소스 검색

Update ioncube.sh

FusionPBX 6 년 전
부모
커밋
25ec4ae435
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      debian/resources/ioncube.sh

+ 10 - 0
debian/resources/ioncube.sh

@@ -70,3 +70,13 @@ if [ ."$php_version" = ."7.1" ]; then
         #restart the service
         #restart the service
         service php7.1-fpm restart
         service php7.1-fpm restart
 fi
 fi
+if [ ."$php_version" = ."7.3" ]; then
+        #copy the php extension .so into the php lib directory
+        cp ioncube/ioncube_loader_lin_7.3.so /usr/lib/php/20180731
+
+        #add the 00-ioncube.ini file
+        echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.3.so" > /etc/php/7.3/fpm/conf.d/00-ioncube.ini
+
+        #restart the service
+        service php7.3-fpm restart
+fi