dongqiao8421
2013-09-03 12:38
浏览 73
已采纳

如何在Debian Wheezy上安装PHP5.4.16?

I originally asked this question on https://unix.stackexchange.com/, but I got no answers after 1 month, so please allow me to post it here on stakoverflow.

I used to be able to install php-5fpm=5.4.16-1~dotdeb.1, but it seems that this package is no longer available from the latest dotdeb packages.

Here are the steps I tried.

  1. Append the following two lines in /etc/apt/sources.list.

    deb http://packages.dotdeb.org wheezy all

    deb-src http://packages.dotdeb.org wheezy all

  2. Run apt-get update.

  3. Run apt-get install php5-fpm=5.4.16-1~dotdeb.1.

However, this returns E: Version '5.4.16-1~dotdeb.1' for 'php5-fpm' was not found. I tried to avoid it by using a different respository, namely, deb http://packages.dotdeb.org wheezy-php54 all, but this returned the same message. How can I install that specific version of PHP?

图片转代码服务由CSDN问答提供 功能建议

我最初在 https上提出这个问题 ://unix.stackexchange.com/ ,但我在1个月后没有得到答案,所以请允许我在stakoverflow上发布。</ p>

我曾经能够 安装php-5fpm = 5.4.16-1~dotdeb.1,但似乎最新的dotdeb软件包不再提供此软件包。</ p>

以下是我尝试的步骤。 </ p>

  1. 在/etc/apt/sources.list中添加以下两行。</ p> n> n

    deb http ://packages.dotdeb.org wheezy all </ code> </ p>

    deb-src http://packages.dotdeb.org wheezy all </ code> </ p> </ li>

  2. 运行 apt-get update </ code>。</ p> </ li>

  3. 运行 apt-get install php5 -fpm = 5.4.16-1~dotdeb.1 </ code>。</ p> </ li> </ ol>

    但是,这将返回 E:Version'5.4 .16-1~dotdeb.1'为'php5-fpm'找不到</ code>。 我试图通过使用不同的存储库来避免它,即 deb http://packages.dotdeb.org wheezy-php54 all </ code>,但这返回了相同的消息。 如何安装特定版本的PHP?</ p> </ div>

1条回答 默认 最新

相关推荐 更多相似问题