mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Failed message when enabling ioncube for PHP 8.2 #311
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ricardo777 on 11/29/2023
CloudPanel version(s) affected
2.4.0
Description
When enabling Ioncube stated in the guide https://www.cloudpanel.io/docs/v2/php/guides/ioncube-loader/
The ioncube for php 8.2 is not working and I get the following error when i check php -v
root@:~# php -v PHP Warning: Failed loading Zend extension 'ioncube_loader.so' (tried: /usr/lib/php/20220829/ioncube_loader.so (/usr/lib/php/20220829/ioncube_loader.so: wrong ELF class: ELFCLASS32), /usr/lib/php/20220829/ioncube_loader.so.so (/usr/lib/php/20220829/ioncube_loader.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP 8.2.13 (cli) (built: Nov 22 2023 07:08:08) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.13, Copyright (c) Zend Technologies with Zend OPcache v8.2.13, Copyright (c), by Zend TechnologiesWhen I place the missing ioncube_loader.so in the folder 20220829 and restart php 8.2 the error is gone:
root@s0:~# php -v PHP 8.2.13 (cli) (built: Nov 22 2023 07:08:08) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.13, Copyright (c) Zend Technologies with the ionCube PHP Loader v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd. with Zend OPcache v8.2.13, Copyright (c), by Zend TechnologiesAlso when using php 7.4 with ioncube is says the versions is to old
How to reproduce
Install Cloudpanel on Debian 11 and enable ioncube, when using php version 8.2 is it not working, because the loader is missing.
Possible Solution
Put the newly downloaded loader in the folder /usr/lib/php/20220829/ found on https://www.ioncube.com/loaders.php
Additional Context
Ioncube loader for version php 7.4 is also old, and getting message: You are using an old version of the ionCube Loader