今天调试服务器php,无法重启报错如下:
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/openssl (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/openssl: cannot open shared object file: No such file or directory), /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/openssl.so (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/openssl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
分析主要是因为无法加载openssl.so这个文件或者找不到
解决办法
找到对应php版本,修改配置文件,把报错的禁用即可。我的是openssl
来源地址:https://blog.csdn.net/tsxiaochen/article/details/125907809