- What version of apnscp are you running?
cpcmd misc_cp_version
revision: 9af8ce4a35134e10e26e964b3002e73515848c08
timestamp: 1692984726
ver_maj: 3
ver_min: 2
ver_patch: 38
ver_pre: ''
dirty: false
debug: false
- Which version of RHEL or CentOS are you using?
cat /etc/redhat-release
Rocky Linux release 8.8 (Green Obsidian)
- Can you reproduce this bug reliably? Provide steps. If not, provide steps to the best of your recollection.
First, after install. I added a new domain using the AddDomain helper with the default plan. After some testing with wordpress, I decided to enable multiphp.
cpcmd scope:set cp.bootstrapper php_build_flags "--disable-sysvsem --enable-pcntl"
cpcmd scope:set cp.bootstrapper pecl_extensions '[imagick,igbinary,redis]'
cpcmd scope:set cp.bootstrapper php_multiphp '[7.4,8.1,8.2]'
upcp -sb php/multiphp
- from my default php 8.2, I switch version to 8.1
cpcmd -d wp.example.test php:pool-set-version 8.1
- restart pool
cpcmd -d wp.example.test php:pool-restart
I logged in as admin for the domain with su -l wp.example.com
wordpress site seems ok, no errors.
tried checking php version via cli but it returns php 8.2
so I tried the /.socket/php/multiphp/native/8.1/bin/php --version
and encountered this warning
Failed loading /usr/lib64/20220829/ioncube_loader_lin_8.1.so: /usr/lib64/20220829/ioncube_loader_lin_8.1.so
searching discord, I found the same problem with this solution
upcp -sb --var=multiphp_build=true --var=php_version=8.1 apnscp/php-filesystem-template
tried checking the php versions again via cli.
Failed loading /usr/lib64/20220829/ioncube_loader_lin_8.1.so: /usr/lib64/20220829/ioncube_loader_lin_8.1.so: cannot open shared object file: Too many levels of symbolic links
Failed loading /usr/lib64/20220829/opcache.so: /usr/lib64/20220829/opcache.so: cannot open shared object file: Too many levels of symbolic links
it didn’t fix the warning so I started to investigate.
/usr/lib64/20220829 seems to symlink to the same /usr/lib64/20220829 instead of /.socket/php/multiphp/native/8.1/usr/lib64/20210902 thats why the modules fails to load.
running the same php as root shows a different warning
/home/virtual/site2/fst/.socket/php/multiphp/native/8.1/bin/php --version
Failed loading /usr/lib64/20220829/opcache.so: /usr/lib64/20220829/opcache.so: undefined symbol: zend_observer_class_linked_observed
Already tried reloading fsmount and droping caches.
systemctl reload fsmount
echo 2 > /proc/sys/vm/drop_caches
PS: not just php 8.1, tried switching to php 7.4 with the same warnings.