How to Install ionCube Loader on CentOS 7

ionCube is an application tool for PHP Encoder, which protects and encrypts the source code or PHP program code. While ionCube Loader is a PHP extension for ionCube so the encrypted PHP program code can be run on the server (decrypted).

*0.Install PHP and Apache*

Install Apache web server and PHP.

[INPUT]

1 yum install httpd php php-cli

Enable and start the Apache web server.

[INPUT]

1 2 3 systemctl enable httpd systemctl start httpd systemctl status httpd

*1.Download ionCube Loader*

Download ionCube Loader for 64bit architecture.

[INPUT]

1 curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Extract ionCube Loader.

[INPUT]

1 tar xzvf ioncube_loaders_lin_x86-64.tar.gz

*2.Copy ionCube Loader*

Check the running PHP version.

[INPUT]

1 2 3 4 5 php -v   PHP 5.4.16 (cli) (built: Apr  1 2020 04:07:17) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Check the contents of the ioncube folder whether it is available for PHP used.

[INPUT]

1 2 3 4 5 6 7 8 ls ioncube   ioncube_loader_lin_4.1.so     ioncube_loader_lin_5.0.so     ioncube_loader_lin_5.3.so     ioncube_loader_lin_5.6.so     ioncube_loader_lin_7.2.so     README.txt ioncube_loader_lin_4.2.so     ioncube_loader_lin_5.0_ts.so  ioncube_loader_lin_5.3_ts.so  ioncube_loader_lin_5.6_ts.so  ioncube_loader_lin_7.2_ts.so  USER-GUIDE.pdf ioncube_loader_lin_4.3.so     ioncube_loader_lin_5.1.so     ioncube_loader_lin_5.4.so     ioncube_loader_lin_7.0.so     ioncube_loader_lin_7.3.so     USER-GUIDE.txt ioncube_loader_lin_4.3_ts.so  ioncube_loader_lin_5.1_ts.so  ioncube_loader_lin_5.4_ts.so  ioncube_loader_lin_7.0_ts.so  ioncube_loader_lin_7.3_ts.so ioncube_loader_lin_4.4.so     ioncube_loader_lin_5.2.so     ioncube_loader_lin_5.5.so     ioncube_loader_lin_7.1.so     LICENSE.txt ioncube_loader_lin_4.4_ts.so  ioncube_loader_lin_5.2_ts.so  ioncube_loader_lin_5.5_ts.so  ioncube_loader_lin_7.1_ts.so  loader-wizard.php

Check the location of the extension directory.

[INPUT]

1 2 3 php -i | grep extension_dir   extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules

Copy ionCube Loader 5.4 into the extension directory.

[INPUT]

1 cp ioncube/ioncube_loader_lin_5.4.so /usr/lib64/php/modules

Enter ionCube Loader into the PHP configuration.

[INPUT]

1 vi /etc/php.ini

Enter the options below into the php.ini file.

[INPUT]

1 zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so

Restart Apache web server.

[INPUT]

1 systemctl restart httpd

*3.Testing*

Test to find out if ionCube Loader is running on PHP.

[INPUT]

1 2 3 4 5 6 php -v   PHP 5.4.16 (cli) (built: Apr  1 2020 04:07:17) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies     with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.

Good luck 🙂

Leave a Reply

Your email address will not be published.