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

Last updated: December 23,2024

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

This tutorial shows how to install libapache2-mod-php8.1 on Ubuntu 22.04 LTS (Jammy Jellyfish)

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

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

In this section, we are going to explain the necessary steps to uninstall libapache2-mod-php8.1 on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

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

Package: libapache2-mod-php8.1
Source: php8.1
Priority: optional
Section: httpd
Installed-Size: 5317
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 8.1.27-1+ubuntu22.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+ubuntu22.04.1+deb.sury.org+1), php8.1-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin, libargon2-1 (>= 0~20171227), libc6 (>= 2.35), libpcre2-8-0 (>= 10.38), libsodium23 (>= 1.0.18), libssl3 (>= 3.0.0~~alpha1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php8.1/libapache2-mod-php8.1_8.1.27-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb
Size: 1776638
MD5sum: 8cb6dec6434fc4a6a4da614bdedefec5
SHA1: aab18877377c251821e50d719a0235999a1d8312
SHA256: 367d16a4dc884a70935c8a54735c3e46120dab6362c40478140a73cbf1553a78
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 57ae373b2a8e4719810a4c745ba4a8df

Package: libapache2-mod-php8.1
Architecture: amd64
Version: 8.1.2-1ubuntu2.14
Priority: optional
Section: httpd
Source: php8.1
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 5277
Provides: libapache2-mod-php, php8.1-json, phpapi-20210902
Depends: libmagic1, mime-support, php8.1-cli, php8.1-common (= 8.1.2-1ubuntu2.14), php8.1-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libargon2-1 (>= 0~20171227), libc6 (>= 2.35), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.18), libssl3 (>= 3.0.0~~alpha1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Replaces: libapache2-mod-php7.4 (>> 8.1.2-1~), libapache2-mod-php8.0 (>> 8.1.2-1~)
Filename: pool/main/p/php8.1/libapache2-mod-php8.1_8.1.2-1ubuntu2.14_amd64.deb
Size: 1766192
MD5sum: 5451fb36a9f26dfb920ce76601a6b19f
SHA1: aea25b43229df882ba56da95a075acf8c61f182e
SHA256: 0cdc65ce94739fc8c5931a460c64f045138892b5b988ed911ecb5d59af5232a6
SHA512: 16f5461966bc978d4ea2966d54c2fac71f95e39d75d8683e5c383d1c38e64190553a511a699c20b2cdc0e903772a2697cb738d7a7cc54fef1950cbc07d318687
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 57ae373b2a8e4719810a4c745ba4a8df
Task: lamp-server

Package: libapache2-mod-php8.1
Architecture: amd64
Version: 8.1.2-1ubuntu2
Priority: optional
Section: httpd
Source: php8.1
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 5265
Provides: libapache2-mod-php, php8.1-json, phpapi-20210902
Depends: libmagic1, mime-support, php8.1-cli, php8.1-common (= 8.1.2-1ubuntu2), php8.1-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libargon2-1 (>= 0~20171227), libc6 (>= 2.35), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.18), libssl3 (>= 3.0.0~~alpha1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Replaces: libapache2-mod-php7.4 (>> 8.1.2-1~), libapache2-mod-php8.0 (>> 8.1.2-1~)
Filename: pool/main/p/php8.1/libapache2-mod-php8.1_8.1.2-1ubuntu2_amd64.deb
Size: 1756730
MD5sum: 7f2e8de318f33e052dacc8b0cb062e1a
SHA1: f1092cecc39306be3677fd5cb103b4b8e4bc9fa9
SHA256: 52ac37c7503942d404c9fd83a767421a7d9b56e1165e2e1a4f031be1bfbcca81
SHA512: 3a9636bed02550cfa727e411bac39a9291e5aab0ec669c6c0ab75d857bc513362e2191aca64de1305fe831c2629a29693bb4d01a1549ae84e1a4fd4e7b241021
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 57ae373b2a8e4719810a4c745ba4a8df
Task: lamp-server