How to Install and Uninstall libapache2-mod-php8.1 Package on Ubuntu 22.10 (Kinetic Kudu)

Last updated: July 08,2024

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

Please follow the guidance below to install libapache2-mod-php8.1 on Ubuntu 22.10 (Kinetic Kudu)

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

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

Learn how to uninstall libapache2-mod-php8.1 on Ubuntu 22.10 (Kinetic Kudu):

$ 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.10 (Kinetic Kudu)

Package: libapache2-mod-php8.1
Architecture: amd64
Version: 8.1.7-1ubuntu3
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: 5313
Provides: libapache2-mod-php, php-json, php8.1-json, phpapi-20210902
Depends: libmagic1, mime-support, php8.1-cli, php8.1-common (= 8.1.7-1ubuntu3), 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), 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.7-1ubuntu3_amd64.deb
Size: 1775416
MD5sum: 54b27e3b2e477a4a745ea03a4297ccb6
SHA1: 40dc3560fa1b472a2b6780e698d48c812f5e2d5c
SHA256: d930573e39e84f80862ece6d0ce3f25caf3155919c8ede6f09f32faa75e7c64f
SHA512: 14ff8ecd0e8e8cabe18cb1cdaccb50d459f26f00e904061b93c44800c49f2b18911dbaced4f7a61247d05d4e136f728195b395ec0904b18d4ec5926b501ef4b1
Homepage: http://www.php.net/
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 57ae373b2a8e4719810a4c745ba4a8df
Task: lamp-server