How to Install and Uninstall libapache2-mod-php Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 17,2024

1. Install "libapache2-mod-php" package

This guide let you learn how to install libapache2-mod-php on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install libapache2-mod-php

2. Uninstall "libapache2-mod-php" package

Please follow the steps below to uninstall libapache2-mod-php on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove libapache2-mod-php $ sudo apt autoclean && sudo apt autoremove

3. Information about the libapache2-mod-php package on Ubuntu 21.04 (Hirsute Hippo)

Package: libapache2-mod-php
Source: php-defaults (82+ubuntu21.04.1+deb.sury.org+1)
Priority: optional
Section: php
Installed-Size: 29
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.0+82+ubuntu21.04.1+deb.sury.org+1
Depends: libapache2-mod-php8.0
Filename: pool/main/p/php-defaults/libapache2-mod-php_8.0+82+ubuntu21.04.1+deb.sury.org+1_all.deb
Size: 7132
MD5sum: baa1a42e3c062e645a011b814a89587b
SHA1: 0df3b6655b6f90f885a14ae528dea882d4b780d1
SHA256: 6f691b867ec05d5d00c60d6b540e3199ad15d51773f3dad150809acf8db09662
Description-en: server-side, HTML-embedded scripting language (Apache 2 module) (default)
This package provides the PHP module for the Apache 2 webserver.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on latest stable
PHP version (currently 8.0).
Description-md5: fb9b5abd0d9937b9347922e6cbe1283a

Package: libapache2-mod-php
Architecture: all
Version: 2:7.4+76ubuntu1
Priority: optional
Section: php
Source: php-defaults (76ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 17
Depends: libapache2-mod-php7.4
Filename: pool/main/p/php-defaults/libapache2-mod-php_7.4+76ubuntu1_all.deb
Size: 3096
MD5sum: 978c0b83130db0493909473fcbbf584b
SHA1: a5908da07b198326864f9c0a9d8c527b66ac7eb9
SHA256: 42f8ee0fcf1e77777cf9817d5b853dbcfe5d81c340a6d757c439cbe0a5a65f46
SHA512: 60c7f7fdd1b103e567f5e022c4a1336c04bccd813291971bc7ee04061550a207460be4b3297ada097777b91a21601d0bac7a7501682b92bc87634e83599e02d0
Description-en: server-side, HTML-embedded scripting language (Apache 2 module) (default)
This package provides the PHP module for the Apache 2 webserver.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on latest stable
PHP version (currently 7.4).
Description-md5: fc84ce5667c66c5a2beed25d4f63d4d5
Task: lamp-server