Solved Site error: the ionCube PHP Loader needs to be installed.

feerdispzoo

Verified User
Joined
Jan 17, 2022
Messages
189
I try:
[root@live7263 ~]# cd /usr/local/directadmin/custombuild
[root@live7263 custombuild]# ./build ioncube
Downloading ioncube_loaders_lin_x86-64.tar.gz...
###################################################################################################################################################################################### 100.0%
ionCube loader 11.0.1 is now installed for PHP 7.4.
There is no ionCube loader available for PHP 8.0.
ionCube loader 11.0.1 is now installed for PHP 8.1.
CageFS: Executing 'cagefsctl --force-update'...


Now I check php version:

PHP Version 8.1.10​


I try reload litespeed and restart diradmin. Still I get: Site error: the ionCube PHP Loader needs to be installed.

I check in phpinfo and I not see any information about ionCube loader
 
Last edited:
Hello,

Just make sure your site is using either PHP 7.4 or PHP 8.1, there is no ionCube for 8.0

Another reason might be that your domain is using a PHP from CloudLinux (i.e. not native). If this is the case, then you need to apply extra steps to enable ionCube for your domain.
 
Another reason might be that your domain is using a PHP from CloudLinux (i.e. not native). If this is the case, then you need to apply extra steps to enable ionCube for your domain.
 
Yes, I use CloudLinux, The issue is for PHP 7.4 working correct. But for 8.1 I get this error.
 
Ok, I found strange issue.

U upload php info to server, then when I open php info in browser, then I see: PHP logo PHP Version 8.1.10

But when I cd in ssh to this domain and run then I get output:

$ php -v
PHP 7.4.32 (cli) (built: Sep 29 2022 15:16:47) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v12.0.2, Copyright (c) 2002-2022, by ionCube Ltd.
 
For this I get output: /usr/local/php81/bin/php -v

/usr/local/php81/bin/php -v
Failed loading /usr/local/lib/ioncube/ioncube_loader_lin_8.1.so: /usr/local/lib/ioncube/ioncube_loader_lin_8.1.so: cannot open shared object file: No such file or directory
PHP Warning: PHP Startup: Unable to load dynamic library 'imap.so' (tried: /usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/imap.so (/usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/imap.so: cannot open shared object file: No such file or directory), /usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/imap.so.so (/usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/imap.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.1.10 (cli) (built: Oct 19 2022 08:26:45) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.10, Copyright (c) Zend Technologies
 
I checked this folder /usr/local/lib/ioncube and last version Ioncube I see:

ioncube_loader_lin_4.1.so ioncube_loader_lin_5.6.so
ioncube_loader_lin_4.2.so ioncube_loader_lin_5.6_ts.so
ioncube_loader_lin_4.3.so ioncube_loader_lin_7.0.so
ioncube_loader_lin_4.3_ts.so ioncube_loader_lin_7.0_ts.so
ioncube_loader_lin_4.4.so ioncube_loader_lin_7.1.so
ioncube_loader_lin_4.4_ts.so ioncube_loader_lin_7.1_ts.so
ioncube_loader_lin_5.0.so ioncube_loader_lin_7.2.so
ioncube_loader_lin_5.0_ts.so ioncube_loader_lin_7.2_ts.so
ioncube_loader_lin_5.1.so ioncube_loader_lin_7.3.so
ioncube_loader_lin_5.1_ts.so ioncube_loader_lin_7.3_ts.so
ioncube_loader_lin_5.2.so ioncube_loader_lin_7.4.so
ioncube_loader_lin_5.2_ts.so ioncube_loader_lin_7.4_ts.so
ioncube_loader_lin_5.3.so LICENSE.txt
ioncube_loader_lin_5.3_ts.so loader-wizard.php
ioncube_loader_lin_5.4.so README.txt
ioncube_loader_lin_5.4_ts.so USER-GUIDE.pdf
ioncube_loader_lin_5.5.so USER-GUIDE.txt
ioncube_loader_lin_5.5_ts.so


I try custom build 2.0 update, and then:
[root@live7263 custombuild]# ./build ioncube
Downloading ioncube_loaders_lin_x86-64.tar.gz...
######################################################################### 100.0%
ionCube loader 11.0.1 is now installed for PHP 7.4.
There is no ionCube loader available for PHP 8.0.
ionCube loader 11.0.1 is now installed for PHP 8.1.


But still I not see ioncube_loader_lin_8.1.so
 
So looks like this is not available in custom build? also can you help me how to correct enable / install this manually?
 
Yes, as I said before, I update custom build then I run build ioncube and I get this output:

[root@live7263 custombuild]# ./build ioncube
Downloading ioncube_loaders_lin_x86-64.tar.gz...
######################################################################### 100.0%
ionCube loader 11.0.1 is now installed for PHP 7.4.
There is no ionCube loader available for PHP 8.0.
ionCube loader 11.0.1 is now installed for PHP 8.1.
 
Code:
/usr/local/directadmin/directadmin v
?

Code:
/usr/local/directadmin/directadmin c | grep update_channel
?

Code:
/usr/local/directadmin/custombuild/build version
?

Code:
grep -n ioncube /usr/local/directadmin/custombuild/*versions.txt
?
 
Ok, I found strange issue.

U upload php info to server, then when I open php info in browser, then I see: PHP logo PHP Version 8.1.10

But when I cd in ssh to this domain and run then I get output:

$ php -v
PHP 7.4.32 (cli) (built: Sep 29 2022 15:16:47) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v12.0.2, Copyright (c) 2002-2022, by ionCube Ltd.

It's not strange, because when running php alone, it's calling PHP which is complied with CustomBuild. And CustomBuild is not installing ionCube for Alt-PHP which is a CloudLinux component. What you need to do is going to DA - CloudLinux Manager - Selector, choose PHP 8.1 there and enable ioncube extension.
 
I renew license for CloudLinux, then I switch in selector php to 8.1, and I see IonCube extension also enabled by default. Now I check from user level:
php -v
PHP 8.1.11 (cli) (built: Sep 29 2022 15:01:21) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.11, Copyright (c) Zend Technologies
with the ionCube PHP Loader v12.0.2, Copyright (c) 2002-2022, by ionCube Ltd.


Looks like is correct, now I try install WHMCS and still I get:
Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistanc

Also I restart litespeed, this should also reload php but still not work.


* Before when I build php in custom build there is no available ioncube. Maybe now I should rebuild php ?
 
Last edited:
Looks like is correct, now I try install WHMCS and still I get:
Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistanc
You will need to make sure that the account installing WHMCS is using PHP 8.1 from Cloud Linux, not default PHP 7.4 from CustomBuild.
 
I think in this case this account use custom build php instand of cloudlinux php:

Loaded Configuration File/usr/local/php81/lib/php.ini

I think should be loaded configuration some like opt/alt
 
Back
Top