From aac7ba0efee0b33fdc8912cd05dcb015fe8424b4 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Sun, 12 May 2024 17:47:30 +0300 Subject: [PATCH] Update PHPInstaller.php --- .../Server/Applications/PHPInstaller.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/web/app/Installers/Server/Applications/PHPInstaller.php b/web/app/Installers/Server/Applications/PHPInstaller.php index 9c7947b..736969e 100644 --- a/web/app/Installers/Server/Applications/PHPInstaller.php +++ b/web/app/Installers/Server/Applications/PHPInstaller.php @@ -94,4 +94,25 @@ class PHPInstaller shell_exec('bash /tmp/php-installer.sh >> ' . $this->logFilePath . ' &'); } + + public function installIonCube() + { + + // 64 bit + // $ wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz + // tar -zxvf ioncube_loaders_lin_x86* + // cd ioncube/ + // php -i | grep extension_dir + // sudo cp /tmp/ioncube/ioncube_loader_lin_8.2.so /usr/lib/php/20220829 + +// sudo vi /etc/php/8.2/cli/php.ini #for PHP CLI +// sudo vi /etc/php/8.2/fpm/php.ini #for PHP-FPM & Nginx +// sudo vi /etc/php/8.2/apache2/php.ini #for Apache2 + + // zend_extension = /usr/lib/php/20220829/ioncube_loader_lin_8.2.so + + // command to add zend_extension to the php.ini file + // sudo echo "zend_extension = /usr/lib/php/20220829/ioncube_loader_lin_8.2.so" | sudo tee -a /etc/php/8.2/apache2/php.ini + // sudo echo "zend_extension = /usr/lib/php/20220829/ioncube_loader_lin_8.2.so" | sudo tee -a /etc/php/8.2/cli/php.ini + } }