Applicable to:
- Plesk for Linux
Question
How to update ionCube Loader to the latest version for PHP 7.3 and 7.4 shipped by Plesk?
Answer
For PHP version by OS vendor, refer to the following article: http://kcs.plesk.ru/search-api/article/115000228505
-
Connect to the server via SSH.
-
Download the latest version of the loader:
# cd /root/
# wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -
Unpack it:
# tar -xvf ioncube_loaders_lin_x86-64.tar.gz
-
Install It:
For Debian and Ubuntu:-
Backup the old loader:
For PHP 7.3:# cp -av /opt/plesk/php/7.3/lib/php/modules/ioncube_loader_lin_7.3.so{,.old}
For PHP 7.4:
# cp -av /opt/plesk/php/7.4/lib/php/modules/ioncube_loader_lin_7.4.so{,.old}
-
Install a new one:
For PHP 7.3:# cp -av ioncube/ioncube_loader_lin_7.3.so /opt/plesk/php/7.3/lib/php/modules/ioncube_loader_lin_7.3.so
For PHP 7.4:
# cp -av ioncube/ioncube_loader_lin_7.4.so /opt/plesk/php/7.4/lib/php/modules/ioncube_loader_lin_7.4.so
For RHEL, CentOS and CloudLinux:-
Backup the old loader:
For PHP 7.3:
# cp -a /opt/plesk/php/7.3/lib64/php/modules/ioncube_loader_lin_7.3.so{,.old}
For PHP 7.4:
# cp -a /opt/plesk/php/7.4/lib64/php/modules/ioncube_loader_lin_7.4.so{,.old}
-
Install a new one (confirm file overwriting when asked):
For PHP 7.3:
# cp -a ioncube/ioncube_loader_lin_7.3.so /opt/plesk/php/7.3/lib64/php/modules/ioncube_loader_lin_7.3.so
For PHP 7.4:
# cp -a ioncube/ioncube_loader_lin_7.4.so /opt/plesk/php/7.4/lib64/php/modules/ioncube_loader_lin_7.4.so
-
-
Restart Apache Web Server in order to apply the change:
-
For Debian and Ubuntu:
# service apache2 restart
-
For RHEL-based operating systems:
# service httpd restart
-
-
Check the version by executing
php -v
command for the corresponding PHP version. For example, for PHP 7.3:# /opt/plesk/php/7.3/bin/php -v | grep -i ioncube
With the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com v10.2.0, Copyright (c) 2002-2018, by ionCube Ltd.
Comments
13 comments
I am running Plesk 17.8 and noticed that the update command below was wrong. It should be the second one...
1. cp ioncube/ioncube_loader_lin_7.0.so /opt/plesk/php/7.0/lib64/php/modules/ioncube_loader_lin_7.0.so
2. cp ioncube/ioncube_loader_lin_7.0.so /opt/plesk/php/7.0/lib/php/modules/ioncube_loader_lin_7.0.so
The lib64 directory is just lib on my Ubuntu server.
@Jon Bishop
Thank for this note.
Indeed, for Debian and Ubuntu it should be opt/plesk/php/X.X/lib/php/modules/ioncube_loader_lin_7.0.so.
The article was updated.
what about php 7.2?
@Luis, IonCube loader was not added yet for Plesk PHP 7.2. It will be added soon to Plesk PHP 7.2 package.
For now, you may use workaround from this article.
i do that steps one by one, but at the end, not installed that.
what to do?
or where i can check the logs about that?
Hello @Support2,
let me know were there any errors while following steps?
What are Plesk version, OS, PHP version an which command you used to check that ionCube is installed correctly?
Hallo,
ist es Möglich das Ihr Auch für PHP 7.3 den PHP Ioncube loader mit liefert was ?
@Michael Angenendt
Here are the steps:
1. wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
2. tar -xvf ioncube_loaders_lin_x86-64.tar.gz
3. /bin/cp -a ioncube/ioncube_loader_lin_7.3.so /opt/plesk/php/7.3/lib64/php/modules/ioncube_loader_lin_7.3.so
4. echo "zend_extension=ioncube_loader_lin_7.3.so" >> /opt/plesk/php/7.3/etc/php.ini
5. service httpd restart && service plesk-php73-fpm restart
Then you may check the installation with "/opt/plesk/php/7.3/bin/php -v"
This should be adjusted for:
the library should be copied to /usr/lib/php/20170718/ instead of /opt/plesk/php/7.4/lib/php/modules/
And also step #5 didn't work for me.
I may be quite new to this. I have no access to SSH through Putty nor Windows it seems.
I am attempting to update ioncube to version 11 so that I can get a script update. It reports that I need to restart my server, yet when I click that, it simply says Failed to Fetch and I go round in circles. No idea how to resolve this. Any suggestions?
Hello Gerry Edwards,
I've re-checked the solution from the article and it is working on a test server. No reboot is required for updating the ionCube Loader version for PHP versions shipped by Plesk, only the Apache restart.
To apply the solution from the article you should be connected to the server over SSH. In case you face any issues with accessing the server over SSH please contact your hosting provider so they can assist you on this matter. The hosting company should provide you with the correct credentials for the server and the instruction for how to connect to it.
Hello Anastasia Zyrianova
is possible to install ionCube in php 8. ?
Thanks
Hello Artur Beqiraj,
ionCube Loader currently doesn't support PHP 8 from their side: https://www.ioncube.com/news.php. As soon as PHP 8 support starts being provided by ionCube, the article will be updated accordingly.
For now, please consider using PHP 7.3 or PHP 7.4.
Please sign in to leave a comment.