Add ioncube 81 ubuntu (#424)

* Add ioncube loader for php8.1
This commit is contained in:
frytimo 2024-04-20 13:31:30 -03:00 committed by GitHub
parent 582d1ffb69
commit 664dc95771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

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