Softaculous giving ioncube error after cpanel update to version 11.120.0.12

After recent cpanel update yesterday. Many of our clients started getting ioncube error in softaculous and other cpanel plugins using ioncube. I investigated and found that they upgraded the cpanel internal php to version 8.3. But the the ioncube loader for it was not installed.

Run the command /usr/local/cpanel/3rdparty/bin/php -v and you will get ioncube error.

# /usr/local/cpanel/3rdparty/bin/php -v
Failed loading /usr/local/cpanel/3rdparty/php/unversioned/ioncube/ioncube_loader_lin_8.3.so:  /usr/local/cpanel/3rdparty/php/unversioned/ioncube/ioncube_loader_lin_8.3.so: cannot open shared object file: No such file or directory

Solution

So to fix it I manually installed the ioncube loader.

wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar zxvf ioncube_loaders_lin_x86-64.tar.gz
chown -R root: ioncube/
mv ioncube/ioncube_loader_lin_8.3.so /usr/local/cpanel/3rdparty/php/unversioned/ioncube/ioncube_loader_lin_8.3.so

Now if you check the ioncube error is gone now. And it will show that “ionCube PHP Loader” is installed successfully.

/usr/local/cpanel/3rdparty/bin/php -v
PHP 8.3.8 (cli) (built: Jun 11 2024 12:00:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.8, Copyright (c) Zend Technologies
    with the ionCube PHP Loader v13.3.0, Copyright (c) 2002-2024, by ionCube Ltd.