How to Install and Uninstall libapache2-mod-php7.4 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 18,2024

1. Install "libapache2-mod-php7.4" package

Please follow the step by step instructions below to install libapache2-mod-php7.4 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install libapache2-mod-php7.4

2. Uninstall "libapache2-mod-php7.4" package

This tutorial shows how to uninstall libapache2-mod-php7.4 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove libapache2-mod-php7.4 $ sudo apt autoclean && sudo apt autoremove

3. Information about the libapache2-mod-php7.4 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: libapache2-mod-php7.4
Source: php7.4
Priority: optional
Section: httpd
Installed-Size: 4582
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 1:7.4.33-8+ubuntu20.04.1+deb.sury.org+1
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, phpapi-20190902
Depends: libmagic1, media-types | mime-support, php7.4-cli, php7.4-common (= 1:7.4.33-8+ubuntu20.04.1+deb.sury.org+1), php7.4-json, php7.4-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin, libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libpcre2-8-0 (>= 10.38), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php7.4/libapache2-mod-php7.4_7.4.33-8+ubuntu20.04.1+deb.sury.org+1_amd64.deb
Size: 1376400
MD5sum: 52b764b8e956dd23365e8fe6199b26c1
SHA1: 12de50f67aae01f6f284416ec22c28624d0fade6
SHA256: eee4679feb6f49088421a406ea015fe3a94190cd162e66131bad5922e03bf767
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 36d880d2701a181e89a6978caa489dfc

Package: libapache2-mod-php7.4
Architecture: amd64
Version: 7.4.3-4ubuntu2.19
Priority: optional
Section: httpd
Source: php7.4
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4562
Provides: libapache2-mod-php, phpapi-20190902
Depends: libmagic1, mime-support, php7.4-cli, php7.4-common (= 7.4.3-4ubuntu2.19), php7.4-json, php7.4-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Conflicts: libapache2-mod-php7.2, libapache2-mod-php7.3
Filename: pool/main/p/php7.4/libapache2-mod-php7.4_7.4.3-4ubuntu2.19_amd64.deb
Size: 1369152
MD5sum: 35737353926ec7c55f59f3e12c707691
SHA1: c06d810ed70b0b56a6690d1813b42d651ab4d630
SHA256: 0f8250046efc181d0d72c38aabf2001f4d3ed03d5881854b0c97f8ebde38e676
SHA512: e634a16fbd9d931b03152161af92f77a9b11ec165b23d1a3271aa1ccbdd9e697e03c5196967fe24c213a19e0ab737b20ecabdfc569c92da2ffe3bcdd682d0278
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 36d880d2701a181e89a6978caa489dfc
Task: lamp-server

Package: libapache2-mod-php7.4
Architecture: amd64
Version: 7.4.3-4ubuntu1
Priority: optional
Section: httpd
Source: php7.4
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4554
Provides: libapache2-mod-php, phpapi-20190902
Depends: libmagic1, mime-support, php7.4-cli, php7.4-common (= 7.4.3-4ubuntu1), php7.4-json, php7.4-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Conflicts: libapache2-mod-php7.2, libapache2-mod-php7.3
Filename: pool/main/p/php7.4/libapache2-mod-php7.4_7.4.3-4ubuntu1_amd64.deb
Size: 1364196
MD5sum: 241709c6452cf21c63c9c24175d49063
SHA1: 2929d1c3ab5f45f17c8792d09769179641ace7bb
SHA256: 180668ebe380bce27f00b3595a0c85837ae872af8805554fb0b8fa136220dbec
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 36d880d2701a181e89a6978caa489dfc
Task: lamp-server