【问题标题】:Can't install php 5.6无法安装 php 5.6
【发布时间】:2016-08-07 22:22:24
【问题描述】:
root@host [~]# yum install php56w php56w-opcache
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: denver.gaminghost.co
 * epel: fedora-epel.mirror.lstn.net
 * extras: chicago.gaminghost.co
 * updates: centos.vwtonline.net
 * webtatic: us-east.repo.webtatic.com
No package php56w available.
No package php56w-opcache available.
Error: Nothing to do

这也是我尝试安装 php 5.6 时得到的结果 - 我无法安装 PHP mbstring 扩展。

我能做什么?

顺便说一句,这是 debian 8

【问题讨论】:

  • 在 Debian 中你应该使用aptitude 来安装软件包。
  • 如果你说它是 Debian 8,你为什么要标记这个 CentOS7?此外,yum 实际上是在 CentOS7 上使用的,这使得这更加令人困惑。请整理一下您的问题,目前还不清楚。

标签: php vps centos7


【解决方案1】:

现在我也在我的系统中安装PHP 5.6。安装成功完成。请按照以下步骤-

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5

【讨论】:

    【解决方案2】:

    您可以使用以下链接安装 php mysql 和 phpmyadmin。 Click Here to get file

    安装php、mysql和phpmyadmin的步骤

    1. 转到您下载文件的文件夹。
    2. 使用如下命令

      sudo ./phpserverInstallation.sh

    它会自动安装 php mysql 和 phpmyadmin。

    【讨论】:

      猜你喜欢
      • 2015-12-31
      • 1970-01-01
      • 1970-01-01
      • 2018-05-03
      • 1970-01-01
      • 2015-09-23
      • 2017-12-01
      • 1970-01-01
      • 2015-11-20
      相关资源
      最近更新 更多