• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Different php version with different ioncube version

Stergios G

Basic Pleskian
Server operating system version
AlmaLinux 8.5
Plesk version and microupdate number
Plesk Obsidian Version 18.0.41
Here is my problem,
when i run a command in Plesk console (almost any command) i get back the error:

Failed loading /usr/lib64/php/modules/ioncube_loader_lin_7.4.so: /usr/lib64/php/modules/ioncube_loader_lin_7.4.so: undefined symbol: zend_string_init_interned

I use php7.2 but Plesk try to load ioncube for php 7.4. Here an example:

[root@hs23 httpdocs]# php -v
Failed loading /usr/lib64/php/modules/ioncube_loader_lin_7.4.so: /usr/lib64/php/modules/ioncube_loader_lin_7.4.so: undefined symbol: zend_string_init_interned
PHP 7.2.34 (cli) (built: Oct 24 2022 08:12:34) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader + ionCube24 v12.0.2, Copyright (c) 2002-2022, by ionCube Ltd.
with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies
I tried to understand in which point Plesk select ioncube version.
I read a lot of similar post inside here (with orders php versions), but I could not to find a solution that works for me.
Any help will be nice.
 
I found the solution for my problem:
in etc/php.d/00-ioncube-loader.ini there was a line with this
; comment out next line to disable ionCube Zend extension in php
zend_extension=/usr/lib64/php/modules/ioncube_loader_lin_7.4.so
I change this: ioncube_loader_lin_7.4.so with this: ioncube_loader_lin_7.2.so
then i had the error:
Cannot load the ionCube PHP Loader - it was already loaded
so i comment line with zend_extension and problem solved
; comment out next line to disable ionCube Zend extension in php
; zend_extension=/usr/lib64/php/modules/ioncube_loader_lin_7.4.so
 
Back
Top