I had this problem when I originally set the server up and everything was fine until recently. It’s a little different now in that ioncube was only failing on one site and this time it’s multiple.
[root@starfish html]# php -v
PHP 8.1.31 (cli) (built: Dec 1 2024 00:59:39) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.31, Copyright (c) Zend Technologies
with the ionCube PHP Loader v14.0.0, Copyright (c) 2002-2024, by ionCube Ltd.
with Zend OPcache v8.1.31, Copyright (c), by Zend Technologies
User Account:
[chzeman@starfish /]$ php -v
Failed loading /usr/lib64/20210902/ioncube_loader_lin_8.1.so: /usr/lib64/20210902/ioncube_loader_lin_8.1.so: cannot open shared object file: Too many levels of symbolic links
Failed loading /usr/lib64/20210902/opcache.so: /usr/lib64/20210902/opcache.so: cannot open shared object file: Too many levels of symbolic links
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/lib64/20210902/imagick.so (/usr/lib64/20210902/imagick.so: cannot open shared object file: Too many levels of symbolic links), /usr/lib64/20210902/imagick.so.so (/usr/lib64/20210902/imagick.so.so: cannot open shared object file: Too many levels of symbolic links)) in Unknown on line 0
PHP 8.1.31 (cli) (built: Dec 1 2024 00:59:39) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.31, Copyright (c) Zend Technologies
I’ve been through the solution that fixed it before and all of the suggested solutions but I’m not having any luck fixing this.
Then I did the following with the shown result…
[root@starfish ~]# upcp -sbfvvv apnscp/php-filesystem-template
...
TASK [apnscp/php-filesystem-template : Link system extension directory to socket] *********************************************************
task path: /usr/local/apnscp/resources/playbooks/roles/apnscp/php-filesystem-template/tasks/populate-php-fst.yml:115
Using module file /usr/lib/python3.6/site-packages/ansible/modules/files/file.py
Pipelining is enabled.
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c '/usr/libexec/platform-python && sleep 0'
fatal: [localhost]: FAILED! => {
"changed": false,
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": null,
"mode": null,
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": null,
"path": "/home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib64/20210902",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": "/.socket/php/usr/lib64/20210902",
"state": "link",
"unsafe_writes": false
}
},
"mode": "0777",
"msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /.socket/php/usr/lib64/20210902",
"owner": "root",
"path": "/home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib64/20210902",
"size": 19,
"src": "/.socket/php/usr/lib64/20210902",
"state": "link",
"uid": 0
}
PLAY RECAP ********************************************************************************************************************************
localhost : ok=25 changed=0 unreachable=0 failed=1 skipped=10 rescued=0 ignored=0
Environment
ApisCP version: cpcmd misc:cp-version
revision: 3ec2e7884c258580fa707cfe827a4269861007c6
timestamp: 1730519492
ver_maj: 3
ver_min: 2
ver_patch: 45
ver_pre: ''
dirty: false
debug: false
Operating System: uname -r
4.18.0-513.9.1.el8_9.x86_64
AlmaLinux release 8.9 (Midnight Oncilla)
Thank you,
Chris