How to Install and Uninstall libapache2-mod-php8.0 Package on Debian 12 (Bookworm)

Last updated: May 17,2024

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

Please follow the step by step instructions below to install libapache2-mod-php8.0 on Debian 12 (Bookworm)

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

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

In this section, we are going to explain the necessary steps to uninstall libapache2-mod-php8.0 on Debian 12 (Bookworm):

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

3. Information about the libapache2-mod-php8.0 package on Debian 12 (Bookworm)

Package: libapache2-mod-php8.0
Source: php8.0
Version: 1:8.0.30-2+0~20230904.59+debian12~1.gbp806e95
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 4797
Depends: libmagic1, media-types | mime-support, php8.0-cli, php8.0-common (= 1:8.0.30-2+0~20230904.59+debian12~1.gbp806e95), php8.0-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.14), libssl3 (>= 3.0.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, php-json, php8.0-json, phpapi-20200930
Homepage: http://www.php.net/
Priority: optional
Section: httpd
Filename: pool/main/p/php8.0/libapache2-mod-php8.0_8.0.30-2+0~20230904.59+debian12~1.gbp806e95_amd64.deb
Size: 1439484
SHA256: 892d746a3cf537b68ded879c87a90dfd6430a6aa33eda37fbb7ced0ebf81d10a
SHA1: 563084811e05b884a49d84c0594df020913cee14
MD5sum: 942b099fd02caf198b6dc8d38929e120
Description: 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 json 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: 57ae373b2a8e4719810a4c745ba4a8df