我的 Debian Buster 服务器在每次升级时都会出现以下通知来烦我:
$ sudo apt upgrade
...
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
但它已启用并运行完美:
$ sudo a2enmod proxy_fcgi setenvif
Considering dependency proxy for proxy_fcgi:
Module proxy already enabled
Module proxy_fcgi already enabled
Module setenvif already enabled
$ sudo a2enconf php7.3-fpm
Conf php7.3-fpm already enabled
我已经检查过libapache2-mod-php7.3
但它没有安装。
答案1
似乎仍存在已安装的残留libapache2-mod-php7.3
。我注意到了这一点dpkg -l | grep libapache2-mod-php
。
无法去除这些残留物,sudo apt remove libapache2-mod-php7.3
但是
sudo apt remove --purge libapache2-mod-php7.3
成功了!