How to Install and Uninstall libapache2-mod-php7.4 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 07,2024

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

This is a short guide on how to install libapache2-mod-php7.4 on Ubuntu 18.04 LTS (Bionic Beaver)

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

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

Please follow the steps below to uninstall libapache2-mod-php7.4 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the libapache2-mod-php7.4 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: libapache2-mod-php7.4
Source: php7.4
Priority: optional
Section: httpd
Installed-Size: 4450
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 1:7.4.30-5+ubuntu18.04.1+deb.sury.org+1
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, phpapi-20190902
Depends: libmagic1, mime-support, php7.4-cli, php7.4-common (= 1:7.4.30-5+ubuntu18.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.27), 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.30-5+ubuntu18.04.1+deb.sury.org+1_amd64.deb
Size: 1345336
MD5sum: 537e0e14c9e99cb13491d69400d45bf1
SHA1: 6e9c33d1b3c39a9667d16bd07573d97be202ef75
SHA256: 2a173e403c3b2db303ad74dadb1e4a1dad6758f5abd67a0c4af6d4a88900e5f6
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 36d880d2701a181e89a6978caa489dfc