Home >Backend Development >PHP Problem >How to install php using linux apt-get

How to install php using linux apt-get

藏色散人
藏色散人Original
2020-10-06 14:23:003888browse

How to install php with linux apt-get: first open the command window; then install php through the command "sudo apt-get install php7.2-fpm".

How to install php using linux apt-get

Recommended: "PHP Video Tutorial"

Ubuntu apt-get installs the latest version of PHP

Directly use the official PPA source

sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update

to display the list of software installation packages. Whether you already have PHP 7.1, optional

apt-cache pkgnames | grep php7.1

installation, Tuesday, May 08, 2018 , the latest version now is 7.2

sudo apt-get install php7.2-fpm

The above is the detailed content of How to install php using linux apt-get. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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