如何在 ubuntu 桌面 12.04 上安装 php 5.4 install? [英] how to install php 5.4 install on ubuntu desktop 12.04?

查看:38
本文介绍了如何在 ubuntu 桌面 12.04 上安装 php 5.4 install?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装特定版本 5.4 的 php5 包.

I try to install php5 package with a specific version 5.4.

但是我有问题,无法自己解决.当我尝试安装时:

But I have problem and can not solve it myself. When I try to install :

"apt-get install php5=5.4.9-4ubuntu2"

它返回一个错误:

E:未找到php5"的5.4.9-4ubuntu2"版本.

E: Version '5.4.9-4ubuntu2' for 'php5' was not found.

我该如何解决这个任务?

How can I solve this task?

推荐答案

添加这个 ppa

sudo add-apt-repository ppa:ondrej/php

然后更新升级,升级会自动安装最新的5.4.x版本的php

Then update and upgrade, upgrade will automatically install latest 5.4.x version of php

sudo apt-get update
sudo apt-get upgrade

紧随其后,

sudo apt-get install -y php5.6

sudo apt-get install -y php7.2

取决于您要安装的 PHP 版本.

depending on which version of PHP you want installed.

通过Ubuntu软件中心安装

To install through Ubuntu software centre

(来源:ubuntu.com)

参考:https://askubuntu.com/questions/109404/how-do-i-install-latest-php-in-supported-ubuntu-versions-like-5-4-x-in-ubuntu-1

这篇关于如何在 ubuntu 桌面 12.04 上安装 php 5.4 install?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆