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

Last updated: May 18,2024

1. Install "libapache2-mod-php5.6" package

Please follow the steps below to install libapache2-mod-php5.6 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install libapache2-mod-php5.6

2. Uninstall "libapache2-mod-php5.6" package

Please follow the instructions below to uninstall libapache2-mod-php5.6 on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove libapache2-mod-php5.6 $ sudo apt autoclean && sudo apt autoremove

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

Package: libapache2-mod-php5.6
Source: php5.6
Priority: optional
Section: httpd
Installed-Size: 4361
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 5.6.40-50+ubuntu16.04.1+deb.sury.org+1
Recommends: apache2
Suggests: php-pear
Provides: libapache2-mod-php, phpapi-20131226
Depends: libmagic1, libpcre3 (>= 2:8.41), mime-support, php5.6-cli, php5.6-common (= 5.6.40-50+ubuntu16.04.1+deb.sury.org+1), php5.6-json, php5.6-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin, libc6 (>= 2.15), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php5.6/libapache2-mod-php5.6_5.6.40-50+ubuntu16.04.1+deb.sury.org+1_amd64.deb
Size: 1242412
MD5sum: 3d5ee0762eafb563b57e9c578a544b48
SHA1: b0a0c1ed6b9d7ed1b9eea214146ccf864f4d87e4
SHA256: a8e3474c94f997623f46f37e875c5ece88ac9ab47b6bdcb5e9ee4bb03c1dc814
Description-en: 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 ereg filter hash libxml
mhash 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: 98f0ba0078ba49c540575971f6fbdbc6