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

Last updated: May 18,2024

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

In this section, we are going to explain the necessary steps to install libapache2-mod-php7.1 on Debian 12 (Bookworm)

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

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

This tutorial shows how to uninstall libapache2-mod-php7.1 on Debian 12 (Bookworm):

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

3. Information about the libapache2-mod-php7.1 package on Debian 12 (Bookworm)

Package: libapache2-mod-php7.1
Source: php7.1
Version: 7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 4455
Depends: libmagic1, libpcre3 (>= 2:8.41), media-types | mime-support, php7.1-cli, php7.1-common (= 7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3), php7.1-json, php7.1-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libc6 (>= 2.35), libssl3 (>= 3.0.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, phpapi-20160303
Homepage: http://www.php.net/
Priority: optional
Section: httpd
Filename: pool/main/p/php7.1/libapache2-mod-php7.1_7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3_amd64.deb
Size: 1309820
SHA256: bf3dd9289314ed17a2641e90469cc6026401c63f59596f3b92f7341e0446ac10
SHA1: e3b7256031ebf7d927471f41772ad9da1a9a333d
MD5sum: 662d406984caa88c3c4539be7e40ab9f
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 libxml openssl
pcre Reflection session 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: a9943210c12c437b40ede9d429f3fb29