I just ran apt-get update and upgrade to get the latest updates for my Debian stable server. It included a bunch of PHP5 updates. One (libapache2-mod-php5) threw an error: ERROR: php5 module already enabled, not enabling php5
.
Also, Apache was not restarted so the PHP5 updates had no effect. I restarted Apache manually and all was well.
Is this a bug in the update script or is my server messed up?
Here are the last lines of the apt-get upgrade output:
Setting up mysql-client (5.5.49-0+deb8u1) ...
Setting up openssh-client (1:6.7p1-5+deb8u2) ...
Setting up openssh-sftp-server (1:6.7p1-5+deb8u2) ...
Setting up openssh-server (1:6.7p1-5+deb8u2) ...
Setting up php5-common (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-xmlrpc (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-tidy (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-cli (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-readline (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-mysql (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-gmp (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-gd (5.6.20+dfsg-0+deb8u1) ...
Setting up php5-curl (5.6.20+dfsg-0+deb8u1) ...
Setting up libapache2-mod-php5 (5.6.20+dfsg-0+deb8u1) ...
ERROR: php5 module already enabled, not enabling php5
Setting up linux-libc-dev:amd64 (3.16.7-ckt25-2) ...
Setting up php-pear (5.6.20+dfsg-0+deb8u1) ...
Installing new version of config file /etc/pear/pear.conf ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...