Home >Backend Development >PHP Problem >What to do if ubuntu 16.04 cannot find php
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.
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!