apt-get how to install php

藏色散人
Release: 2023-03-04 08:14:01
Original
9583 people have browsed it

How to install php with apt-get: first use the official PPA source directly; then execute the command "apt-cache pkgnames | grep php7.1"; finally pass the command "sudo apt-get install php7.2-fpm "Just install php.

apt-get how to install php

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

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

apt-cache pkgnames | grep php7.1
Copy after login

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

sudo apt-get install php7.2-fpm
Copy after login

The above is the detailed content of apt-get how to install php. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!