Home > Backend Development > PHP7 > body text

How to install PHP7.3 on Debian 10?

藏色散人
Release: 2023-02-17 11:40:01
Original
6123 people have browsed it

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).

How to install PHP7.3 on Debian 10?

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template