How to Install libapache2-mod-php in Ubuntu 18.04



Install libapache2-mod-php by entering the following commands in the terminal:

sudo apt update
sudo apt install libapache2-mod-php

Description:

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 Ubuntu's default PHP version (currently 7.2).

Version: 1:7.2+60ubuntu1

Section: php