Docker下CentOS8 php-fpm启动报错

Docker下的CentOS8安装php7和php8版本,php-fpm都启动不起来,报错

php-fpm: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory  failed

看来缺少一个共享库libonig.so.5

解决方法

yum install -y oniguruma libsodium

再重新启动php-fpm服务即可。

Leave a Comment

豫ICP备19001387号-1