Installing PHP

Learn how to install PHP on a Linux Ubuntu operating system.

Run the following commands in the terminal below to install PHP and the required PHP packages.

Update Linux packages

First, we must update our Linux packages and upgrade the current packages. We can do so by running the following command:

 ...