宝塔注释掉“extension= curl"之后无法重启,错误代码如下:
警告消息: [06-Dec-2021 12:50:55] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /www/server/php/80/lib/php/extensions/no-debug-non-zts-20200930/curl (/www/server/php/80/lib/php/extensions/no-debug-non-zts-20200930/curl: cannot open shared object file: No such file or directory), /www/server/php/80/lib/php/extensions/no-debug-non-zts-20200930/curl.so (/www/server/php/80/lib/php/extensions/no-debug-non-zts-20200930/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 [06-Dec-2021 12:50:55] ERROR: Another FPM instance seems to already listen on /tmp/php-cgi-80.sock [06-Dec-2021 12:50:55] ERROR: FPM initialization failed
查了一下,宝塔默认开启了curl,所以无需在php.ini里再注释掉重新启动。