问题:重新安装php7.4-fpm时报错
Not replacing deleted config file /etc/php/7.4/fpm/php.ini
Failed to start The PHP 7.4 FastCGI Process Manager.
ERROR: failed to open configuration file '/etc/php/7.4/fpm/php-fpm.conf': No such file or directory
解决:这是因为卸载的不干净,所以无法安装
方法:
重新卸载
sudo apt remove php7.4-fpm
sudo dpkg -P php7.4-fpm
再次安装
sudo apt install php7.4-fpm
参考:
https://www.silvatechsolutions.com/tech-tips/ubuntu-fixing-the-not-replacing-deleted-config-file/