How to install ION cube for your Magento installation. These steps are tailored for those hosting on MDOQ, though the steps will be very similar on all hosts.
- Create a development instance.
- Downlod "Linux (64 bits)" from here: https://www.ioncube.com/loaders.php
- Extract the .tgz
- Upload the correct .so file for your php version. (You don't need the TS one) to `htdocs/mdoq/php-fpm/`, if the directory doesn't exist you will need to create it.
- If the file `htdocs/mdoq/php-fpm/configure` doesn't exist, make it with the below content. (You will then need to run `chmod a+x htdocs/mdoq/php-fpm/configure` to make sure it can be executed)
#!/bin/bash
If the file does already exist just ensure the 5 lines following `# install ioncube` are added.
echo "configuring php-fpm"
echo "PHP Version: ${PHP_VERSION}"
# install ioncube
IONCUBE_SO=ioncube_loader_lin_8.1.so
mkdir -p /usr/local/ioncube || true
cp /home/magento/htdocs/mdoq/php-fpm/${IONCUBE_SO} /usr/local/ioncube/
echo "zend_extension=/usr/local/ioncube/${IONCUBE_SO}" > /etc/php/${PHP_VERSION}/mods-available/ioncube.ini
ln -s /etc/php/${PHP_VERSION}/mods-available/ioncube.ini /etc/php/${PHP_VERSION}/cli/conf.d/ioncube.ini
echo "Config updated, restarting PHP-FPM"
supervisorctl restart php-fpm
supervisorctl status php-fpm
echo "done" - Set your php-fpm confiuration to
- Synchronize PHP-FPM
- Test
- If all is well you will need to commit everything in the `htdocs/mdoq/php-fpm` to source control.
You can then do a normal release.
Once released you can synchronize php-fpm on production to install on prod.