How to Install PHP / PHP 7.3 on Debian 10 Buster

How can I install PHP / PHP 7.3 on Debian 10 Buster?. This guide will walk you through the steps to install PHP 7.3 on Debian 10 Buster. For Apache web server users, you’ll need to install libapache2-mod-php which allows you to host and serve PHP applications with Apache web server.

Debian 10 Buster has PHP 7.3 as the default version installable. The only pre-requisite for this setup is pre-installed Debian 10 and user account with sudo access.

Step 1: Update system

As always, we recommend updating software repositories and installe packages to sync with latest releases.

sudo apt update && sudo apt -y upgrade

Step 2: Install PHP / PHP 7.3 on Debian 10 Buster

The next step is installation of PHP 7.3 on Debian 10. Run the following commands on your Debian 10 terminal to install PHP 7.3.