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.
1 | yum install httpd php php-cli |
Enable and start the Apache web server.
1 2 3 | systemctl enable httpd systemctl start httpd systemctl status httpd |
1.Download ionCube Loader
Download ionCube Loader for 64bit architecture.
1 | curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz |
Extract ionCube Loader.
1 | tar xzvf ioncube_loaders_lin_x86-64.tar.gz |
2.Copy ionCube Loader
Check the running PHP version.
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.
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.
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.
1 | cp ioncube/ioncube_loader_lin_5.4.so /usr/lib64/php/modules |
Enter ionCube Loader into the PHP configuration.
1 | vi /etc/php.ini |
Enter the options below into the php.ini file.
1 | zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so |
Restart Apache web server.
1 | systemctl restart httpd |
3.Testing
Test to find out if ionCube Loader is running on PHP.
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. |
If you found this article helpful and would like to support my work, consider making a donation through PayPal. Your support helps me continue creating useful content and tutorials. Thank you!
Donate via PayPal: https://paypal.me/musaamin