How to Install and Uninstall libapache2-mod-php Package on Debian 12 (Bookworm)

Last updated: May 13,2024

1. Install "libapache2-mod-php" package

This guide let you learn how to install libapache2-mod-php on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install libapache2-mod-php

2. Uninstall "libapache2-mod-php" package

Please follow the guidelines below to uninstall libapache2-mod-php on Debian 12 (Bookworm):

$ sudo apt remove libapache2-mod-php $ sudo apt autoclean && sudo apt autoremove

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

Package: libapache2-mod-php
Source: php-defaults (94+0~20240205.51+debian12~1.gbp6faa2e)
Version: 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 32
Depends: libapache2-mod-php8.3
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/libapache2-mod-php_8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb
Size: 4068
SHA256: 776f2204b8af60462861927403aa3d6d7f79b590603a18ffcfe9aec103b57df8
SHA1: 70f888ce24643045450f408eda2f146def02ce1c
MD5sum: 73bf4f68464486a5d00a85ad1f3bb233
Description: server-side, HTML-embedded scripting language (Apache 2 module) (default)
This package provides the PHP module for the Apache 2 webserver.
.
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.
.
This package is a dependency package, which depends on latest stable
PHP version (currently 8.3).
Description-md5: f48f9aa6dd7be6ce0654f87c67051efd

Package: libapache2-mod-php
Source: php-defaults (93)
Version: 2:8.2+93
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: libapache2-mod-php8.2
Description: server-side, HTML-embedded scripting language (Apache 2 module) (default)
Description-md5: 22722572356c447e3639434659cd1e83
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/libapache2-mod-php_8.2+93_all.deb
Size: 3764
MD5sum: 52802b42d119a88fc9b03f6882377f49
SHA256: 58ce3688ab8ab2ca9214b2fcbf96aff27fe7dc910e568409786305d0b84279f7