Je passe d'Apache2 à nginx. J'ai donc émis cette command:
sudo apt-get purge apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: 389-ds-base 389-ds-base-libs ldap-utils libadminutil-data libadminutil0 libapache2-mod-nss libds-admin-serv0 libmozilla-ldap-perl libnetaddr-ip-perl libnss3-tools libsocket-getaddrinfo-perl libsvrcore0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: php5-cgi Suggested packages: php-pear The following packages will be REMOVED: 389-admin* apache2* libapache2-mod-php5* The following NEW packages will be installed: php5-cgi 0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded. Need to get 4277 kB of archives. After this operation, 6360 kB of additional disk space will be used. Do you want to continue? [Y/n]
Pourquoi essayer d'essayer d'installer php-cgi
? apache2
purger apache2
, et purgerai bientôt php
, pour installer pph-fpm
avec nginx
. Je suis confus pourquoi une opération de purge apt
essaye d'installer un package du tout.
Debian 8, kernel 3.16.
Notez que libapache2-mod-php5
est supprimé par votre purge. C'est parce que c'est un module / plugin Apache et ne peut pas être installé sans Apache lui-même.
Mais vous avez probablement un autre package installé sur votre système qui dépend de PHP. Ceci n'est pas indiqué à partir des informations que vous avez fournies. Ce package (ou ces packages) serait laissé dans l' libapache2-mod-php5
si libapache2-mod-php5
étaient simplement enlevés. Apt résout le problème en installant pgp5-cgi
place. Le packageage qui dépend de PHP est tout aussi heureux avec php5-cgi
qu'avec libapache2-mod-php5
et votre request pour supprimer Apache devient maintenant possible de l'honorer.