How to Install and Uninstall libapache2-mod-php Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 17,2024

1. Install "libapache2-mod-php" package

Please follow the instructions below to install libapache2-mod-php on Ubuntu 18.04 LTS (Bionic Beaver)

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

2. Uninstall "libapache2-mod-php" package

Learn how to uninstall libapache2-mod-php on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the libapache2-mod-php package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: libapache2-mod-php
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 32
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: libapache2-mod-php8.1
Filename: pool/main/p/php-defaults/libapache2-mod-php_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7464
MD5sum: ee5c9c6aca9333ab0a8c746b5c15f96a
SHA1: 56c2a635aa6d33af45d985df442eb73528ad9536
SHA256: b138d5dabe989ad30fa7964491736790e08a9b373ab21985c2178bf9b81d67a6
Description: server-side, HTML-embedded scripting language (Apache 2 module) (default)
Description-md5: 640f616b843abc4503f1e1c4680e90e7

Package: libapache2-mod-php
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 16
Depends: libapache2-mod-php7.2
Filename: pool/main/p/php-defaults/libapache2-mod-php_7.2+60ubuntu1_all.deb
Size: 3212
MD5sum: bf0a27f325e53fffb35b66b7fb5136bf
SHA1: 3ea49d2eefe0be419d9aec60b2462c479d8ebf69
SHA256: 7f329f2f89071429f49b378fd38914448cd4c9b7cc8d0ecb7bb3d9807f6ae2a3
Description: server-side, HTML-embedded scripting language (Apache 2 module) (default)
Description-md5: 7315791e24b139b94f90e76a40363620
Task: lamp-server
Supported: 5y