By khavich
I want to Install ionCube Loader on a CentOS 7, I check my vesrion php I find PHP 7.4.0 when I list the content of the ‘ioncube’ directory I can’t find the necessary file. what I have to do ? Thank you very much
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @khavich,
Here is a small guide to help you out:
SSH to your droplet and initial configuration
First you need to ssh to your droplet like
ssh root@Dropletip
Once you are in, perform some updates like
yum update
Download Ioncube loader
Once your system is up to date it’s time to download the IonCube Loader Itself:
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
Now unpack the tar archive
tar xfz ioncube_loaders_lin_x86-64.tar.gz
The ionCube Loaders for all PHP versions will be extracted in a new ‘ioncube’ directory.
Determine the PHP version and configuration
php -v
Let’s say you have a PHP version 7.2 installed on your server, so we will need the matching ionCube loader.
List the content of the ‘ioncube’ directory to find the necessary file
ls ioncube
And find the following files
ioncube_loader_lin_7.2_ts.so and ioncube_loader_lin_7.2.so
We will use the ‘ioncube_loader_lin_7.2.so’ file because it matches our PHP version. If you have a different version of PHP installed on your server you will have to use the appropriate file.
To find out the location of the extension directory, run the following command
php -i | grep extension_dir
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Please note the path might vary to your system!
Copy the ‘ioncube_loader_lin_7.2.so’ ionCube loader to the extension directory
cp ioncube/ioncube_loader_lin_7.2.so /usr/lib64/php/modules
Now, open the PHP configuration file and add the following line
nano /path/to/your/php.ini
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.2.so
** Web Server restart**
Save the configuration file and restart the Apache/Nginx web server for the changes to take effect.
Verify ionCube Loader installation
You can check if ionCube Loader is successfully enabled using the following command
php -v
Regards, Kalin
Yep, once again
tar xfz ioncube_loaders_lin_x86-64.tar.gz
tar (child): ioncube_loaders_lin_x86-64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Better do it good.
tar -xvzf ioncube_loaders_lin_x86.tar.gz
ioncube/
ioncube/ioncube_loader_lin_5.0.so
ioncube/ioncube_loader_lin_4.3.so
ioncube/ioncube_loader_lin_7.0_ts.so
ioncube/ioncube_loader_lin_4.2.so
ioncube/ioncube_loader_lin_5.6.so
ioncube/ioncube_loader_lin_7.1.so
ioncube/ioncube_loader_lin_5.3.so
ioncube/ioncube_loader_lin_7.3_ts.so
ioncube/ioncube_loader_lin_5.5_ts.so
ioncube/ioncube_loader_lin_5.4.so
ioncube/loader-wizard.php
ioncube/ioncube_loader_lin_4.3_ts.so
ioncube/ioncube_loader_lin_5.5.so
ioncube/LICENSE.txt
ioncube/USER-GUIDE.pdf
ioncube/ioncube_loader_lin_5.4_ts.so
ioncube/ioncube_loader_lin_7.0.so
ioncube/ioncube_loader_lin_5.3_ts.so
ioncube/ioncube_loader_lin_4.4.so
ioncube/ioncube_loader_lin_4.4_ts.so
ioncube/ioncube_loader_lin_7.3.so
ioncube/ioncube_loader_lin_7.1_ts.so
ioncube/ioncube_loader_lin_7.2_ts.so
ioncube/ioncube_loader_lin_5.2.so
ioncube/USER-GUIDE.txt
ioncube/ioncube_loader_lin_4.1.so
ioncube/README.txt
ioncube/ioncube_loader_lin_5.1_ts.so
ioncube/ioncube_loader_lin_7.2.so
ioncube/ioncube_loader_lin_5.0_ts.so
ioncube/ioncube_loader_lin_5.1.so
ioncube/ioncube_loader_lin_5.6_ts.so
ioncube/ioncube_loader_lin_5.2_ts.so
And continue
Find that it is wrong again…
php -v
Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20190902/ioncube.so: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/ioncube.so: cannot open shared object file: No such file or directory
PHP 7.4.0 (cli) (built: Nov 28 2019 12:53:42) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies
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
And notice that you wasted your time
php -i | grep extension_dir
Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20190902/ioncube.so: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/ioncube.so: cannot open shared object file: No such file or directory
extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20190902 => /usr/local/lib/php/extensions/no-debug-non-zts-20190902
sqlite3.extension_dir => no value => no value
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.