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

Last updated: May 16,2024

1. Install "libapache2-mod-php8.1" package

In this section, we are going to explain the necessary steps to install libapache2-mod-php8.1 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install libapache2-mod-php8.1

2. Uninstall "libapache2-mod-php8.1" package

Please follow the guidelines below to uninstall libapache2-mod-php8.1 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove libapache2-mod-php8.1 $ sudo apt autoclean && sudo apt autoremove

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

Package: libapache2-mod-php8.1
Source: php8.1
Priority: optional
Section: httpd
Installed-Size: 5318
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 8.1.27-1+ubuntu20.04.1+deb.sury.org+1
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, php-json, php8.1-json, phpapi-20210902
Depends: libmagic1, media-types | mime-support, php8.1-cli, php8.1-common (= 8.1.27-1+ubuntu20.04.1+deb.sury.org+1), php8.1-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin, libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libpcre2-8-0 (>= 10.38), libsodium23 (>= 1.0.18), libssl1.1 (>= 1.1.1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php8.1/libapache2-mod-php8.1_8.1.27-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb
Size: 1612912
MD5sum: 05e655751aeaa526f04ec417e9b8ee16
SHA1: 3155f2975fb128c9d1dcb73171897a1991926313
SHA256: 6aa5f8832b4da9f4e00a3223aec38f843d6c62b4e8e6a2448a9a5c93de437a10
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 57ae373b2a8e4719810a4c745ba4a8df