Install ionCube on Ubuntu 18.04

Download ioncube loader from

cd /usr/local/src
tar xvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube/

Find extension diretcory and copy .so file to php extension diretcory. To find php extension directory run

php -i | grep  extension_dir

For PHP 7.2, run

cp /usr/local/src/ioncube/ /usr/lib/php/20170718 

Enable ioncube

echo "" > /etc/php/7.2/mods-available/ioncube.ini
ln -s /etc/php/7.2/mods-available/ioncube.ini /etc/php/7.2/cli/conf.d/01-ioncube.ini

for Apache, run

ln -s /etc/php/7.2/mods-available/ioncube.ini /etc/php/7.2/apache2/conf.d/01-ioncube.ini
systemctl restart apache2

for php-fpm, run

ln -s /etc/php/7.2/mods-available/ioncube.ini /etc/php/7.2/fpm/conf.d/01-ioncube.ini
systemctl restart php7.2-fpm
Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *