- Download the latest ionCube Loader archive:
-
cd ~ && curl -LO https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_aarch64.tar.gz
-
- Extract the contents:
-
sudo tar zxvof ioncube_loaders_lin_aarch64.tar.gz -C /usr/local
-
- Configure ionCube Loader for each available PHP version:
-
PHP_VERSIONS=$(ls /etc/php)
for VERSION in $PHP_VERSIONS; do
if [ -f /usr/local/ioncube/ioncube_loader_lin_${VERSION}.so ]; then
sudo mkdir -p /etc/php/${VERSION}/cli/conf.d
sudo mkdir -p /etc/php/${VERSION}/fpm/conf.d
echo zend_extension=/usr/local/ioncube/ioncube_loader_lin_${VERSION}.so | sudo tee /etc/php/${VERSION}/cli/conf.d/00-ioncube.ini
echo zend_extension=/usr/local/ioncube/ioncube_loader_lin_${VERSION}.so | sudo tee /etc/php/${VERSION}/fpm/conf.d/00-ioncube.ini
echo “Configured ionCube Loader for PHP ${VERSION}”
fi
done
-
- Verify that the ionCube Loader module is loaded on all PHP versions:
for php_bin in $(find /usr/bin/ -name 'php*' -type f); do $php_bin -v 2>&1 | grep -E 'PHP|ionCube'; done
To persist the installation of ionCube Loader, perform the following steps in the AutoPilot interface:
- Navigate to the "Backups" tab of the deployment
- Select "Operating System" as the "Resource" option. Enter a unique "Backup Name". Select "Request".
- Navigate to the "Adjust" tab of the deployment
- Select "Instance Details"
- Select "Operating System Image", then select "Operating System", then select the image.
After this, your changes persist from now on in your deployment.
Comments
0 comments
Article is closed for comments.