Applicable to:
- Plesk for Linux
Symptoms
- OS version is Ubuntu 16.04 with 17.5 or Ubuntu 18 with Plesk 17.8;
- Installation of the extension Softaculous Auto Installer fails with the following error:
PLESK_ERROR: Installation of extension has failed
- Execution of /opt/psa/tmp/moduleWHy2lH/plib/scripts/pre-install.php failed with exit code 1 and the output:
- ionCube Loader is not loaded. Please enable it to continue installation
Cause
This is a Plesk bug #PPPM-9045 (Ubuntu 16) and #PPPM-10236 (Ubuntu 18).
PPPM-10236 (Ubuntu 18) has been fixed in Plesk Obsidian
Resolution
For Ubuntu 18 upgrade to the latest Plesk version How to upgrade Plesk to the next release.
For Ubuntu 16, as a workaround install ionCube Loader in Ubuntu 16.04 for PHP provided by OS vendor:
-
Connect to the server via SSH
-
Download the necessary archive and unpack it:
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
# unzip ioncube_loaders_lin_x86-64.zip -
Find the extension directory:
# php -i | grep extension_dir
extension_dir => /usr/lib/php/20151012 => /usr/lib/php/2015101 -
Copy the binary to module directory that was found on step 3:
# cp -a ioncube/ioncube_loader_lin_7.0.so /usr/lib/php/20151012/
# for i in cli apache2 cgi fpm; do echo "zend_extension=ioncube_loader_lin_7.0.so" > "/etc/php/7.0/$i/conf.d/00-ioncube-loader.ini"; done -
Restart Apache and the PHP 7.0 service:
# systemctl restart php7.0-fpm
Comments
12 comments
I am having the same issue with Ubuntu 18.04.2. (Plesk Onyx
Version 17.8.11)
/opt/plesk/php/7.2/bin/php -v | grep -i ioncubeApparently it has Ioncube loader:
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.3.2, Copyright (c) 2002-2018, by ionCube Ltd.
root@localhost:~#
Please advise.
Hello @fergus,
I have reproduced the same behavior on a test server Ubuntu 18, Plesk 17.8 and I have reported this case.
After getting the results, the article will be updated. Click "Follow" to be notified.
Meanwhile, you can apply the workaround form the article https://support.plesk.com/hc/en-us/articles/115000228505 ,but change the "7.0" to "7.2".
For example,
----------
cp ioncube/ioncube_loader_lin_7.2.so /usr/lib/php/20170718
echo "zend_extension=ioncube_loader_lin_7.2.so" > /etc/php/7.2/cli/conf.d/00-ioncube-loader.ini
echo "zend_extension=ioncube_loader_lin_7.2.so" > /etc/php/7.2/apache2/conf.d/00-ioncube-loader.ini
echo "zend_extension=ioncube_loader_lin_7.2.so" > /etc/php/7.2/cgi/conf.d/00-ioncube-loader.ini
echo "zend_extension=ioncube_loader_lin_7.2.so" > /etc/php/7.2/fpm/conf.d/00-ioncube-loader.ini
----------
Thanks. That worked.
this issue still happens in Plesk obsdian (centos 7)
@Christopher Danks,
Check whether PHP by OS vendor is installed:
Tools & Settings > Updates > Web Hosting > PHP interpreter versios and install PHP from OS vendor.
The above instructions worked for me,it must be a bug in plesk just now especially if you have to reinstall the loader considering it tells you its loaded.Please fix this surely the devs can do this and iron out the bugs.
I got ioncube error in CentOS Linux 7.7.1908 & Plesk Obsidian Versión 18.0.21
The bug is still present in all php versions. How to fix it?
[root@server ~]# /opt/plesk/php/5.4/bin/php -v
PHP 5.4.45 (cli) (built: Sep 1 2017 17:56:06)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
[root@server ~]# /opt/plesk/php/5.6/bin/php -v
PHP 5.6.40 (cli) (built: Jan 11 2019 12:07:15)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.7, Copyright (c) 2002-2016, by ionCube Ltd.
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
[root@server ~]# /opt/plesk/php/7.2/bin/php -v
PHP 7.2.24 (cli) (built: Oct 25 2019 11:29:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.1, Copyright (c) 2002-2018, by ionCube Ltd.
with Zend OPcache v7.2.24, Copyright (c) 1999-2018, by Zend Technologies
[root@server ~]# /opt/plesk/php/7.3/bin/php -v
PHP 7.3.11 (cli) (built: Oct 25 2019 11:29:28) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.3.2, Copyright (c) 2002-2018, by ionCube Ltd.
with Zend OPcache v7.3.11, Copyright (c) 1999-2018, by Zend Technologies
Hello @Horacio Stolovitzky!
Softaculous Auto Installer uses only system PHP, engines shipped by Plesk in /opt/plesk/php/ are not used by it. And in Plesk Obsidian, system PHP is no longer pre-installed, which is causing the error. To fix it, install the component "PHP from OS vendor" either according to https://support.plesk.com/hc/en-us/articles/213901805 or with the command:
# plesk installer add plesk --components phpgroup
Plesk Version 18.0.23 Update Nr. 4
OS Ubuntu 18.04 LTS
@Noah,
Check whether PHP by OS vendor is installed:
Tools & Settings > Updates > Add/Remove Components > Web Hosting > PHP interpreter versions and install PHP from OS vendor.
@Anzhelika
It's not I will install it.
Thanks!
In my situation the PHP CLI in use was 5.6 which didn't have ioncube installed.
To know whether it is installed or not, go here:
https://support.plesk.com/hc/en-us/articles/214529185-Is-the-Ioncube-loader-shipped-with-Plesk-PHP-packages-
I changed the cli back to 7.2 (which is the OS vendor version). btw the 7.2 version also didn't have the ioncube extension installed, I followed the guide here to install it:
https://support.plesk.com/hc/en-us/articles/115000228505-How-to-install-ioncube-loader-in-Ubuntu-16-04
This one was a bit confusing
So this ended up helping me better
https://kb.virtubox.net/knowledgebase/install-ioncube-loader-php72-ubuntu-18-04-lts/
To know which CLI is being used run:
To view available CLI alternatives and change between them use this command:
I hope this might help someone with the same issue :)
Please sign in to leave a comment.