Issue
-
All CageFS enabled users get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/cagefs-skeleton/opt/alt/php74/etc/mariadb104/mysqli.so' (tried: /usr/share/cagefs-skeleton/opt/alt/php74/etc/mariadb104/mysqli.so (/usr/share/cagefs-skeleton/opt/alt/php74/etc/mariadb104/mysqli.so: cannot open shared object file: No such file or directory)
-
However, the directory/files are available to the user:
chrootsh-4.2$ ls -lh /opt/alt/php74/etc/mariadb104/mysqli.so
-rwxr-xr-x 1 root root 146K Apr 13 14:04 /opt/alt/php74/etc/mariadb104/mysqli.so
chrootsh-4.2$ ls -lh /opt/alt/php74/etc/mariadb104/pdo_mysql.so
-rwxr-xr-x 1 root root 33K Apr 13 14:04 /opt/alt/php74/etc/mariadb104/pdo_mysql.so
Environment
- CloudLinux OS
- CageFS
Solution
Check all loaded configuration files used by the PHP for explicit loading those extensions with the full path, instead of providing the module name.
Cause
Manually modified php.ini.
Comments
0 comments
Please sign in to leave a comment.