Home > Article > Backend Development > How to install PHP7.3 on Debian 10?
PHP 7.3 is the latest stable version available for installation. This article will introduce you to how to install the latest version of PHP on Debian systems. Now follow this tutorial to install PHP7.3 on Debian 10, (Buster).
Debian 10 is still in development. Therefore, this tutorial is tested using Debian 10 daily builds.
Prerequisites
Log in to your Debian 10 system using shell access. Run the following command to upgrade the current package to the latest version. For remote systems, use SSH to connect. Windows users can use Putty or other alternative applications for SSH connections.
Run the following command to upgrade the current package to the latest version.
$ sudo apt update $ sudo apt upgrade
Installing PPA on Debian 10
Let us execute the following command to first install the required packages on the system. Then import the package signing key. Then configure the PPA for the PHP package on your system.
$ sudo apt install ca-certificates apt-transport-https $ wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - $ sudo echo "deb https://packages.sury.org/php/ buster main" | tee /etc/apt/sources.list.d/php.list
Your Debian 10 system is ready for PHP installation.
Installing PHP on Debian 10
You can install the latest PHP version on your system. Run the following command to install PHP 7.3 on Debian 10.
$ sudo apt update $ sudo apt install php7.3
Also install the required php modules.
$ sudo apt install php7.3-cli php7.3-common php7.3-curl php7.3-gd php7.3-json php7.3-mbstring php7.3-mysql php7.3-xml
After installation, use the following command to verify the installed PHP version
$ php -v PHP 7.3.1-1 (cli) (built: Jan 13 2019 10:13:20) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.1, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.1-1, Copyright (c) 1999-2018, by Zend Technologies
Related recommendations: "PHP Tutorial"
This article is about The method of installing PHP7.3 on Debian 10 (Buster) is introduced. I hope it will be helpful to friends in need!
The above is the detailed content of How to install PHP7.3 on Debian 10?. For more information, please follow other related articles on the PHP Chinese website!