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

Last updated: May 23,2024

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

Please follow the instructions below to install libapache2-mod-php7.4 on Ubuntu 16.04 LTS (Xenial Xerus)

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

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

Please follow the guidance below to uninstall libapache2-mod-php7.4 on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: libapache2-mod-php7.4
Status: install ok installed
Priority: optional
Section: httpd
Installed-Size: 4458
Maintainer: Debian PHP Maintainers
Architecture: amd64
Source: php7.4
Version: 7.4.18-2+ubuntu16.04.1+deb.sury.org+1
Provides: libapache2-mod-php, phpapi-20190902
Depends: libmagic1, mime-support, php7.4-cli, php7.4-common (= 7.4.18-2+ubuntu16.04.1+deb.sury.org+1), php7.4-json, php7.4-opcache, tzdata, ucf, apache2-api-20120211, apache2-bin, libargon2-1 (>= 0~20171227), libc6 (>= 2.15), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Recommends: apache2
Suggests: php-pear
Conffiles:
/etc/apache2/mods-available/php7.4.conf ad48fb8185ef5a0054b3d42dd69ddd83
/etc/apache2/mods-available/php7.4.load b54868dc273edd0a0198190ad8bd4e7a
Description: 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 sodium 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: 36d880d2701a181e89a6978caa489dfc
Homepage: http://www.php.net/