Home > Backend Development > PHP Problem > What to do if ubuntu 16.04 cannot find php

What to do if ubuntu 16.04 cannot find php

藏色散人
Release: 2023-03-11 19:04:01
Original
1720 people have browsed it

The solution to the problem that ubuntu16.04 cannot find PHP: first execute the "sudo add-apt-repository..." command; then update the source "sudo apt-get update"; finally install PHP5.6.11 and execute Just install the command.

What to do if ubuntu 16.04 cannot find php

The operating environment of this article: ubuntu 16.04 system, PHP5.6.11 version, DELL G3 computer

ubuntu 16.04 cannot find php. manage?

Solution:

Ubuntu Server 16.04 How to install php5

  • Execute after installing Ubuntu Server 16.04 The following command:

sudo add-apt-repository 'deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse'

(Or directly add the NetEase source in vim /etc/apt/sources.list: deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse)

  • Update source sudo apt-get update

  • Install PHP5.6.11, execute the following command sudo apt-get install php5-fpm

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What to do if ubuntu 16.04 cannot find 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