# apt-get install libapache2-mod-php7.4 libapache2-mod-php
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
php-pear
The following NEW packages will be installed:
libapache2-mod-php libapache2-mod-php7.4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1367 kB of archives.
After this operation, 4681 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libapache2-mod-php7.4 amd64 7.4.3-4ubuntu1 [1364 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libapache2-mod-php all 2:7.4+75 [2836 B]
Fetched 1367 kB in 1s (921 kB/s)
Selecting previously unselected package libapache2-mod-php7.4.
(Reading database ... 32021 files and directories currently installed.)
Preparing to unpack .../libapache2-mod-php7.4_7.4.3-4ubuntu1_amd64.deb ...
Unpacking libapache2-mod-php7.4 (7.4.3-4ubuntu1) ...
Selecting previously unselected package libapache2-mod-php.
Preparing to unpack .../libapache2-mod-php_2%3a7.4+75_all.deb ...
Unpacking libapache2-mod-php (2:7.4+75) ...
Setting up libapache2-mod-php7.4 (7.4.3-4ubuntu1) ...
libapache2-mod-php7.4: php7.3 module already enabled, not enabling PHP 7.4
Setting up libapache2-mod-php (2:7.4+75) ...
Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu1) ...
On the eoan->focal upgrade, removing and reinstalling mod-php reproduces the error:
# apt-get remove libapache2- mod-php7. 4 libapache2-mod-php
...
# apt-get install libapache2- mod-php7. 4 libapache2-mod-php mod-php libapache2- mod-php7. 4 archive. ubuntu. com/ubuntu focal/main amd64 libapache2- mod-php7. 4 amd64 7.4.3-4ubuntu1 [1364 kB] archive. ubuntu. com/ubuntu focal/main amd64 libapache2-mod-php all 2:7.4+75 [2836 B] mod-php7. 4. mod-php7. 4_7.4.3- 4ubuntu1_ amd64.deb ... mod-php7. 4 (7.4.3-4ubuntu1) ... mod-php_ 2%3a7.4+ 75_all. deb ... mod-php7. 4 (7.4.3-4ubuntu1) ... mod-php7. 4: php7.3 module already enabled, not enabling PHP 7.4 mod-php7. 4 (7.4.3-4ubuntu1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
php-pear
The following NEW packages will be installed:
libapache2-
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1367 kB of archives.
After this operation, 4681 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 1367 kB in 1s (921 kB/s)
Selecting previously unselected package libapache2-
(Reading database ... 32021 files and directories currently installed.)
Preparing to unpack .../libapache2-
Unpacking libapache2-
Selecting previously unselected package libapache2-mod-php.
Preparing to unpack .../libapache2-
Unpacking libapache2-mod-php (2:7.4+75) ...
Setting up libapache2-
libapache2-
Setting up libapache2-mod-php (2:7.4+75) ...
Processing triggers for libapache2-