LINUX, FOSS AND LIBRARY TECHNOLOGY ENTHUSIAST

Friday, January 24, 2020

Install PHP 7.3 on Debian 10 Buster

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

Step 1: Update system

As always, updating software repositories and installed 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.

sudo apt -y install php php-common

Step 3: Installing PHP Extensions on Debian 10 Buster

PHP extensions can be installed on demand. Here I’ll show installation of most common PHP extensions required for basic usage.

sudo apt -y install php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd  php-mbstring php-curl php-xml php-pear php-bcmath

Step 4: Using PHP with Apache Web Server

You need to have installed Apache Web Server,

Then install libapache2-mod-php

sudo apt -y install libapache2-mod-php

Enable Apache module if not already enabled then restart the Web Server.

sudo a2enmod php7.3

sudo systemctl restart apache2


There you have it. PHP 7.3 has been installed on Debian 10 (Buster).

No comments:

Post a Comment