Sorry for the wait here @klikkit . I’ve worked on a guide below to help install Ioncube. Please note we have not fully tested the following guide. Make any necessary backups of your work before continuing. At this time it’s a manual process. If you’re interested, you can request for this to be added to DevKinsta in our Feature Request section as well.
- Open up Terminal
docker exec -it devkinsta_fpm bash this should bring you inside the Docker container.
apt-get update && apt-get upgrade. Type Y if it asks if you’d like to continue. This may take some time.
apt-get install wget
wget -P /tmp/ http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar xvfz /tmp/ioncube_loaders_lin_x86-64.tar.gz -C /tmp
mkdir -p /usr/lib/php/ioncube/ && cp /tmp/ioncube/ioncube_loader_lin_*.so /usr/lib/php/ioncube/
- The next file to edit will depend on which PHP version you’re running. Enter
php -v to check on that or you can open DevKinsta then click on your site to see which PHP version it’s running. In the following example, it’s going to apply for PHP 7.4.
echo 'zend_extension = /usr/lib/php/ioncube/ioncube_loader_lin_7.4.so' >> /etc/php/7.4/fpm/php.ini. If you change PHP versions, be sure to implement this on the other version as well.
- Confirm that it has been added by entering
cat /etc/php/7.4/fpm/php.ini. You’ll see the ioncube line added in the bottom.
docker restart devkinsta_fpm to restart the container. phpinfo can help confirm that Ioncube has been installed.
That should be it! Let me know if you have any questions on this.