Issue
Proactive Defense is enabled. The following error is displayed on a website or in the logs:
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library 'i360.so'
(tried: /opt/alt/php74/usr/lib64/php/modules/i360.so
(libhs_runtime.so.5: cannot open shared object file: No such file or directory),
/opt/alt/php74/usr/lib64/php/modules/i360.so.so (/opt/alt/php74/usr/lib64/php/modules/i360.so.so:
cannot open shared object file: No such file or directory))
Environment
- Imunify360
- Proactive Defense
- CageFS
- CloudLinux
Solution
Important notice for PHP 8.2: The fix will be available in Proactive Defense 7.5 which will be released on ~15 March.
The fix is already available in the Proactive Defense updates. It's enough to update the packages to the latest release:
yum update imunify360-php-i360 --enablerepo=imunify360-rollout*
--
An alternative solution (considered deprecated) for situations where it is not possible to install updates the temporary workaround is as follows:
1. Create file /etc/cagefs/conf.d/pd-i360.cfg with the following content:
# cat /etc/cagefs/conf.d/pd-i360.cfg
[pd-i360]
comment=PD files
paths=/etc/ld.so.conf.d/alt-hyperscan.conf
2. Execute cagefs update command:
# cagefsctl --update-etc
In some cases, it is necessary to execute:
cagefsctl --force-update-etc
3. Check if the file /etc/ld.so.conf.d/alt-hyperscan.conf is available to the user with UID>1000, its contents will be as below:
# id user
uid=1018(user) gid=1020(user) groups=1020(user)
# su -s /bin/bash -c 'cat /etc/ld.so.conf.d/alt-hyperscan.conf' user
/opt/alt/hyperscan54///lib64/
4. Make sure the PD is active for this user's version of PHP:
# su -s /bin/bash -c 'php -i | grep i360' user
i360
i360 param => Value
i360 state => activated
i360 mode => log
i360 blamer => true
i360 path to log data => sock:/opt/imunify360/lib/proactive.sock
i360 log type => 2
i360 send on shtdwn => 0
i360 report on kill => 0
i360 build for => 7.2.34
i360 signs => 220928
i360 signs path => /usr/share/i360-php-opts/sigs/7.0/.rules.v2
i360 pkg ver => 7.0.4
Comments
0 comments
Please sign in to leave a comment.