How to Install and Uninstall libapache2-mod-php Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 17,2024

1. Install "libapache2-mod-php" package

Learn how to install libapache2-mod-php on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "libapache2-mod-php" package

Here is a brief guide to show you how to uninstall libapache2-mod-php on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the libapache2-mod-php package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: libapache2-mod-php
Architecture: all
Version: 1:7.0+35ubuntu6.1
Priority: optional
Section: php
Source: php-defaults (35ubuntu6.1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 15
Depends: libapache2-mod-php7.0
Filename: pool/main/p/php-defaults/libapache2-mod-php_7.0+35ubuntu6.1_all.deb
Size: 2990
MD5sum: a7c54c492ea3a7781fdc0f474fa64c9e
SHA1: 7f0517ec6cfbccebbc8a3e983a55562ea0a15763
SHA256: 92b36dd6734b96ad14fa886cef04d36cfe699363cb7fecd1d487bd3d5e82801c
SHA512: f1b7005a05e81d25a6f8dca371e6d061b576b376bd5954800a0d62cb323c792fabdb62126e6e52075d6a2f3c0cbe4b2a0c50ddf3ea51c1007fff74400f603361
Description-en: 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 Debian's default
PHP version (currently 7.0).
Description-md5: d44acceb4cb67033fe4bca034bef755b
Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
Supported: 5y

Package: libapache2-mod-php
Priority: optional
Section: php
Installed-Size: 15
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Architecture: all
Source: php-defaults (35ubuntu6)
Version: 1:7.0+35ubuntu6
Depends: libapache2-mod-php7.0
Filename: pool/main/p/php-defaults/libapache2-mod-php_7.0+35ubuntu6_all.deb
Size: 2960
MD5sum: 53d528b317ed1227a064162dc0bb097d
SHA1: 68739c15d8f6c3d259e1644d65fe3f0aa9df6c5c
SHA256: 618c9beee528f5c11dc00ae6028c24f64a53238f190ab04f4c8a47a744f5c7e7
Description-en: 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 Debian's default
PHP version (currently 7.0).
Description-md5: d44acceb4cb67033fe4bca034bef755b
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master