如何在终端上安装php

时间:2016-04-27 16:39:02

标签: php ubuntu apache2

我在Ubuntu上安装PHP5时遇到问题。我已经安装了apache,但是当我尝试安装PHP5时出现错误:

E: package 'libapache2-mod-php5' has no installation candidate

1 个答案:

答案 0 :(得分:0)

您需要启用multiverse存储库...

sudo apt-add-repository multiverse

sudo apt-get update

sudo apt-get install libapache2-mod-php5