Applicable to:
- Plesk for Linux
Question
How to enable the ionCube Loader module for PHP shipped with Plesk on Linux?
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:
-
Go to Tools & Settings > PHP Settings > click on any handler of necessary version (8.1 in the above example) and enable ioncube_loader_lin_X.X.
-
Connect to a Plesk server using 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 using 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
2 comments
I don't have Manage PECL Packages in PHP settings.
no news for windows
Please sign in to leave a comment.