How to install ionCube Loader in EasyEngine

EasyEngine v4 builds with container minded. So, every site will have separate configuration. It uses docker heavily. If you want to add some modules or extension, you need to know how docker works first.

Lately, i have a project using ionCube PHP Loader. I need to add the extension to my site container. If you have the same situation with me, this guide will help you to enable ionCube PHP Loader in your site container.

Download ionCube PHP Loader library.


Extract it.

tar -xvzf ioncube_loaders_lin_x86-64.tar.gzcd ioncube

You will see it has many php library version.  USER-GUIDE.txt

Login to your site container using root login. [Change with your site name]

ee shell --user=root

Run php -v, this command will show your local php version and no ionCube PHP Loader showed.

PHP 7.2.12 (cli) (built: Nov 16 2018 03:34:25) ( NTS )Copyright (c) 1997-2018 The PHP GroupZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies    with Zend OPcache v7.2.12, Copyright (c) 1999-2018, by Zend Technologies

Now, you now which ionCube PHP Loader version to copy to your site container.

Copy it to your website root directory.

cp /opt/easyengine/sites/

Login again to your site container.

ee shell --user=root

Find the extension directory.

php -i | grep enxtension_dir

Mine will show:

extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20170718 => /usr/local/lib/php/extensions/no-debug-non-zts-20170718

See also  How to install LibModsecurity WAF app on Nginx CentOS 8

Copy ionCube Loader extension to extension directory.

cp /usr/local/lib/php/extensions/no-debug-non-zts-20170718

Add zend_extension to your php configuration. The best way, is to create new .ini file for ionCube PHP Loader inside extension configuration directory.

php -i | grep additional

Mine will show this:

Scan this dir for additional .ini files => /usr/local/etc/php/conf.d

Create a new .ini file in this directory

echo '' > /usr/local/etc/php/conf.d/00-ioncube-loader.ini

Check with php -v command to see if ionCube PHP Loader has been loaded successfully.

PHP with ionCube PHP Loader enabled

And then restart your php service in your site container.

ee site restart --php

Then, access your browser to test your site working with ionCube PHP Loader.

If you have used Webinoly as your site management, you can use above method to enable ionCube.

Originally posted 2019-01-09 23:00:00.

About wahyuway

Check Also

How to install and configure Anaconda on CentOS 7

How to install and configure Anaconda on CentOS 7

Anaconda is the most popular machine learning and data science tool used in large scale …

Leave a Reply