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

Last updated: September 20,2024

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

In this section, we are going to explain the necessary steps to install libapache2-mod-php7.2 on Ubuntu 21.04 (Hirsute Hippo)

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

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

This is a short guide on how to uninstall libapache2-mod-php7.2 on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: libapache2-mod-php7.2
Source: php7.2
Priority: optional
Section: httpd
Installed-Size: 4840
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 7.2.34-22+ubuntu21.04.1+deb.sury.org+1
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, phpapi-20170718
Depends: libmagic1, libpcre3 (>= 2:8.35), mime-support, php7.2-cli, php7.2-common (= 7.2.34-22+ubuntu21.04.1+deb.sury.org+1), php7.2-json, php7.2-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libargon2-1 (>= 0~20171227), libc6 (>= 2.33), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php7.2/libapache2-mod-php7.2_7.2.34-22+ubuntu21.04.1+deb.sury.org+1_amd64.deb
Size: 1384988
MD5sum: 9de46c857dee64ad557f88c51d20f913
SHA1: 04b5650819113171db1d7f664a9d7093e6188f0c
SHA256: d114aa12c04d13b01908d3d9aab3e60630fba4290f819292503ee89f1bee66d2
Description-en: server-side, HTML-embedded scripting language (Apache 2 module)
This package provides the PHP module for the Apache 2 webserver (as
found in the apache2-mpm-prefork package). Please note that this package
ONLY works with Apache's prefork MPM, as it is not compiled thread-safe.
.
The following extensions are built in: Core date filter hash libxml openssl
pcre Reflection session sodium SPL standard zlib.
.
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.
Description-md5: 36d880d2701a181e89a6978caa489dfc