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

Last updated: December 23,2024

1. Install "libapache2-mod-php7.0" package

This guide let you learn how to install libapache2-mod-php7.0 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install libapache2-mod-php7.0

2. Uninstall "libapache2-mod-php7.0" package

Learn how to uninstall libapache2-mod-php7.0 on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove libapache2-mod-php7.0 $ sudo apt autoclean && sudo apt autoremove

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

Package: libapache2-mod-php7.0
Architecture: amd64
Version: 7.0.33-0ubuntu0.16.04.16
Priority: optional
Section: httpd
Source: php7.0
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4179
Provides: libapache2-mod-php, phpapi-20151012
Depends: libmagic1, mime-support, php7.0-cli, php7.0-common (= 7.0.33-0ubuntu0.16.04.16), php7.0-json, php7.0-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libc6 (>= 2.15), libpcre3, libssl1.0.0 (>= 1.0.2~beta3), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Conflicts: libapache2-mod-php5 (<< 5.6.16+dfsg-4~), libapache2-mod-php5filter (<< 5.6.16+dfsg-4~)
Filename: pool/main/p/php7.0/libapache2-mod-php7.0_7.0.33-0ubuntu0.16.04.16_amd64.deb
Size: 1225218
MD5sum: 1d27523cc227221523da26340fc79131
SHA1: a49d771db00c2d851a8738eaba0e365f732c2383
SHA256: fa5fd6992ede9195f00ba5ec270da7c4d706dafbea3dccb2773ad2781bec9182
SHA512: e81c46487ad97f0541b942b89130a0be186151c0a7693ba6ac3df9bcb61b1720fbe56890ca7b27b4c1e339be4a9001ce079789855184f8d5adedea56fc5cf56f
Homepage: http://www.php.net/
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 filter hash libxml 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: a9943210c12c437b40ede9d429f3fb29
Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
Supported: 5y

Package: libapache2-mod-php7.0
Priority: optional
Section: httpd
Installed-Size: 4195
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Architecture: amd64
Source: php7.0
Version: 7.0.4-7ubuntu2
Provides: libapache2-mod-php, phpapi-20151012
Depends: libmagic1, mime-support, php7.0-cli, php7.0-common (= 7.0.4-7ubuntu2), php7.0-json, php7.0-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin (>= 2.4.16), libc6 (>= 2.15), libpcre3, libssl1.0.0 (>= 1.0.2~beta3), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Suggests: php-pear
Conflicts: libapache2-mod-php5 (<< 5.6.16+dfsg-4~), libapache2-mod-php5filter (<< 5.6.16+dfsg-4~)
Filename: pool/main/p/php7.0/libapache2-mod-php7.0_7.0.4-7ubuntu2_amd64.deb
Size: 1218934
MD5sum: 78fcc25f9f054124cf811b523cfca4ea
SHA1: 9cf76d0957942122453710e015db3f4273cec0bf
SHA256: 2a7abb5a1a7e0825c56d89ff36bb6e9d73f0d9c1db902e4a6a30d344c6ce3414
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 filter hash libxml 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: a9943210c12c437b40ede9d429f3fb29
Homepage: http://www.php.net/
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