Update ioncube.sh

This commit is contained in:
FusionPBX 2025-03-10 21:35:15 -06:00 committed by GitHub
parent 028dd53504
commit 88f70caa38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -146,6 +146,14 @@ if [ ."$php_version" = ."8.2" ]; then
#restart the service
service php8.2-fpm restart
fi
if [ ."$php_version" = ."8.3" ]; then
#copy the php extension .so into the php lib directory
cp ioncube/ioncube_loader_lin_8.3.so /usr/lib/php/20230831
#add the 00-ioncube.ini file
echo "zend_extension = /usr/lib/php/20230831/ioncube_loader_lin_8.3.so" > /etc/php/8.2/fpm/conf.d/00-ioncube.ini
echo "zend_extension = /usr/lib/php/20230831/ioncube_loader_lin_8.3.so" > /etc/php/8.2/cli/conf.d/00-ioncube.ini
#restart the service
service php8.3-fpm restart
fi