How to Install and Uninstall libapache2-mod-php7.4 Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: May 12,2024

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

Please follow the instructions below to install libapache2-mod-php7.4 on Ubuntu 22.04 LTS (Jammy Jellyfish)

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

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

Here is a brief guide to show you how to uninstall libapache2-mod-php7.4 on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the libapache2-mod-php7.4 package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: libapache2-mod-php7.4
Source: php7.4
Priority: optional
Section: httpd
Installed-Size: 4597
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 1:7.4.33-8+ubuntu22.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+ubuntu22.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.35), libpcre2-8-0 (>= 10.38), libsodium23 (>= 1.0.14), libssl3 (>= 3.0.0~~alpha1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php7.4/libapache2-mod-php7.4_7.4.33-8+ubuntu22.04.1+deb.sury.org+1_amd64.deb
Size: 1518020
MD5sum: e148675c43deac0164597a9b3210033a
SHA1: 0097e65641d57ebef8da5b4450643e5d304d294d
SHA256: 468ec792cea4976182fa6208e2feb3bdd81e334c8989628aa53f6e361f6a9506
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 36d880d2701a181e89a6978caa489dfc

Package: libapache2-mod-php7.4
Architecture: amd64
Version: 8.1.2-1ubuntu2.14
Priority: optional
Section: universe/httpd
Source: php8.1
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6
Depends: libapache2-mod-php, php8.1-common (= 8.1.2-1ubuntu2.14)
Breaks: libapache2-mod-php7.4 (<< 7.4.3-5~)
Replaces: libapache2-mod-php7.4 (<< 7.4.3-5~)
Filename: pool/universe/p/php8.1/libapache2-mod-php7.4_8.1.2-1ubuntu2.14_amd64.deb
Size: 842
MD5sum: 12df027eeae0c73f666a27143290935b
SHA1: 2579c10ba357feeae592850aac79327e574c9b18
SHA256: f549eafb8e9f1e98c28a33e6944b06d9fb4f855100032382d35034e1387a675a
SHA512: c7dfb06e9bff23c8a1095b072342ce708596d21929a35f2c6d3e86669aa7664273e2d384f3a777b946ab74c5be537254a42cda042b1404646f5dda1330d1b370
Homepage: http://www.php.net/
Description: Transitional package
Description-md5: 61dfc4e6fd6564f4cfa555801512732a

Package: libapache2-mod-php7.4
Architecture: amd64
Version: 8.1.2-1ubuntu2
Priority: optional
Section: universe/httpd
Source: php8.1
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6
Depends: libapache2-mod-php, php8.1-common (= 8.1.2-1ubuntu2)
Breaks: libapache2-mod-php7.4 (<< 7.4.3-5~)
Replaces: libapache2-mod-php7.4 (<< 7.4.3-5~)
Filename: pool/universe/p/php8.1/libapache2-mod-php7.4_8.1.2-1ubuntu2_amd64.deb
Size: 838
MD5sum: ea8511064cf5fd27b6ee9dd8baaec97e
SHA1: 5606e42d91bff6461416d5f4f6309ca0e864eb42
SHA256: 7136106e4fb16b28147097044fe00d376a41327de9d466c3a705752de23bd0da
SHA512: 7f928ded365b4aa6d704d47a68d14f821187dca7a548af8d7c365626d18ca0f16b6e83b4e9ca674a10192dc066476d192ce827b7a3e71f9dcd91d4b4851069e5
Homepage: http://www.php.net/
Description: Transitional package
Description-md5: 61dfc4e6fd6564f4cfa555801512732a