How to Install and Uninstall libapache2-mod-php Package on Debian 10 (Buster)

Last updated: December 23,2024

1. Install "libapache2-mod-php" package

This is a short guide on how to install libapache2-mod-php on Debian 10 (Buster)

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

2. Uninstall "libapache2-mod-php" package

Please follow the step by step instructions below to uninstall libapache2-mod-php on Debian 10 (Buster):

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

3. Information about the libapache2-mod-php package on Debian 10 (Buster)

Package: libapache2-mod-php
Source: php-defaults (92+0~20220117.43+debian10~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian10~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 32
Depends: libapache2-mod-php8.1
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/libapache2-mod-php_8.1+92+0~20220117.43+debian10~1.gbpe0d14e_all.deb
Size: 7592
SHA256: dd3deabbe4bbea84cd586992ea84512c915bd10e97f520250df645eba68f2e53
SHA1: fc349767cfcf6205b65a2b34f20d1959c3cf2928
MD5sum: c4dac06e35660f40a29e3c000cb14083
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.1).
Description-md5: 640f616b843abc4503f1e1c4680e90e7

Package: libapache2-mod-php
Source: php-defaults (69)
Version: 2:7.3+69
Installed-Size: 16
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: libapache2-mod-php7.3
Description: server-side, HTML-embedded scripting language (Apache 2 module) (default)
Description-md5: ec7fdf9e2bb0aee61bbd2f4865979545
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/libapache2-mod-php_7.3+69_all.deb
Size: 6120
MD5sum: d388e58e2a4c0306a6334339eea4ab4d
SHA256: 48fa7c3a721c46aa9b676fb27153cf112c14dac4c05dd180a77da3312354962d