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

Last updated: May 18,2024

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

In this section, we are going to explain the necessary steps to install libapache2-mod-php5.6 on Ubuntu 18.04 LTS (Bionic Beaver)

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

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

Please follow the step by step instructions below to uninstall libapache2-mod-php5.6 on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: libapache2-mod-php5.6
Source: php5.6
Priority: optional
Section: httpd
Installed-Size: 4373
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 5.6.40-61+ubuntu18.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-61+ubuntu18.04.1+deb.sury.org+1), php5.6-json, php5.6-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin, libc6 (>= 2.27), 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-61+ubuntu18.04.1+deb.sury.org+1_amd64.deb
Size: 1255848
MD5sum: adad656e9d1a6034deff1789de38c578
SHA1: 5a90ea16754fe6000abb7a00228da685a328211b
SHA256: f1706812a34959925b4b52add601a851a5ec1295929c4923ef5169de3b66235d
Description: server-side, HTML-embedded scripting language (Apache 2 module)
Description-md5: 98f0ba0078ba49c540575971f6fbdbc6