Applicable to:
- Plesk for Linux
Question
How to enable the ionCube Loader module for PHP 8 shipped with Plesk?
Answer
- Go to Tools & Settings > General Settings > PHP Settings > PHP 8.1 > Manage PECL Packages.
- Search for "ioncube" and install "ioncube_loader" with the plus (+) button as shown below:
-
Connect to a Plesk server via SSH
-
Run the command below:
# plesk bin php_handler --extension-install ioncube_loader -id plesk-php81-fpm
For the following steps can be applied to install it manually for PHP 8.1:
Note: ionCube Loader for PHP 8 installation at the server with Plesk had not been tested and Plesk cannot guarantee its stable work.
-
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:
# cp -av /opt/plesk/php/8.1/lib/php/modules/ioncube_loader_lin_8.1.so{,.old}
-
Install a new one:
# cp -av ioncube/ioncube_loader_lin_8.1.so /opt/plesk/php/8.1/lib/php/modules/ioncube_loader_lin_8.1.so
For RHEL, CentOS and CloudLinux:-
Backup the old loader:
# cp -a /opt/plesk/php/8.1/lib64/php/modules/ioncube_loader_lin_8.1.so{,.old}
-
Install a new one (confirm file overwriting when asked):
# cp -a ioncube/ioncube_loader_lin_8.1.so /opt/plesk/php/8.1/lib64/php/modules/ioncube_loader_lin_8.1.so
-
- Create ini file:
# touch /opt/plesk/php/8.1/etc/php.d/00-ioncube-loader.ini
- Add the following string to ini file:
CONFIG_TEXT: zend_extension=ioncube_loader_lin_8.1.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:# /opt/plesk/php/8.1/bin/php -v | grep -i ioncube
with the ionCube PHP Loader v12.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
Comments
9 comments
I followed the instructions and still don't have ioncubeloader.
php -v
PHP 7.4.3 (cli) (built: Aug 17 2022 13:29:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
I guess I have to find how to change the base PHP version
This is how I got PHP8.1 working
add-apt-repository ppa:ondrej/php
plesk installer add --components php8.1(change the version number I'm using php8.1)
apt install php8.1-{gd, zip,mysql,oauth,yaml, fmp,mbstring,memcache}
php --modules
systemctl restart apache2
php -v
PHP 8.1.9 (cli) (built: Aug 15 2022 09:39:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.9, Copyright (c) Zend Technologies
with Zend OPcache v8.1.9, Copyright (c), by Zend Technologies
not working
please help
missing in the description :
echo "zend_extension=ioncube_loader_lin_8.1.so" >> /opt/plesk/php/8.1/etc/php.ini
Very poor manual, doesn't even work and is missing essential stuff.
Plesk pricing is going up (again) and support is going down unfortunately.
Hello, thanks, I followed the instructions, but it does not work, please, some instructions that work in Alma Linux 8 with Plesk for linux
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvf ioncube_loaders_lin_x86-64.tar.gz
/bin/cp -a ioncube/ioncube_loader_lin_8.1.so /opt/plesk/php/8.1/lib64/php/modules/ioncube_loader_lin_8.1.so
echo "zend_extension=ioncube_loader_lin_8.1.so" >> /opt/plesk/php/8.1/etc/php.ini
service httpd restart && service plesk-php81-fpm restart
/opt/plesk/php/8.1/bin/php -v | grep -i ioncube
For me the command worked, just had to reboot the server (restarting some service would probably have been enough, but sudo reboot was quicker I guess)
#NOTE#
These instructions wouldn't work unless you updated your Plesk control panel to the latest version (Plesk ObsidianVersion 18.0.49).
If you've got an outdated Plesk control panel, you'll not be able to find the PECL installer or the --extension-install option from the CLI.
Please sign in to leave a comment.