ionCube loader on Ubuntu 13.10 64bits with PHP-FPM and nginx

rock ssd

Site error: the file /data/httpd/domain.com/public_html/application/controllers/frontpage.php requires the ionCube PHP Loader ioncube_loader_lin_5.6.so to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.

1. Download the following archives of Loaders for Linux x86-64
cd /usr/local
sudo wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
sudo tar xzf ioncube_loaders_lin_x86-64.tar.gz

 

2. Copy or move the Loader files

PHP modules’ folder can be found using

php -i | grep extension_dir

Example of an output
Example of an output 

mv /usr/local/ioncube/* /usr/lib/php/20151012/

rock ssd

3. Load the ioncube loader in your php.ini

Open your php.ini

nano /etc/php5/fpm/php.ini

and add the following line

zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_5.6.so

4. Restart php-fpm

service php5-fpm restart

 

Thats it!
Forget those 20_ioncube.ini or ioncube.ini!
They were causing me 502 Bad Gateway!

Tested on Digital Ocean!

rock ssd

 

 

2 thoughts on “ionCube loader on Ubuntu 13.10 64bits with PHP-FPM and nginx

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.