php - 在 Ubuntu 16.04 Xenial 和 apache 上安装 php 5.3 或 5.4

标签 php linux ubuntu

我想在 Ubuntu 16.04 Xenial 和 Apache 上安装 php 5.3 或 5.4。
一个教程指出我使用 PPA,但它们没有帮助我满足我的需要。

我知道 PHP 5.3 和 4 已经过时,但我的项目需要它,这可能吗?如果是,请教我如何逐步使用 Apache2。

最佳答案

你可以使用这个包ppa:sergey-dryabzhinsky/php53为了安装 php 5.3,我在 ubuntu 16 上使用这个包进行了管理。

sudo add-apt-repository ppa:sergey-dryabzhinsky/php53
sudo apt-get update
sudo apt-get install php5

关于php - 在 Ubuntu 16.04 Xenial 和 apache 上安装 php 5.3 或 5.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39824219/

相关文章:

php - 扩展 Laravel 核心日志记录

javascript - 投票: AJAX update count

php - 对未登录用户禁用征税

c++ - 如何在 C++ 中终止进程,只知道其名称的一部分

mysql - 无法在 Ubuntu 16.04 上安装 MySQL

php - strftime() 返回不正确的首选时间格式

c++ - 面对 SIGTERM 的信号处理程序问题

linux - 如何在 sh 文件中并行运行 shell 脚本命令?

linux - 多行写入失败(权限被拒绝)

linux - 为 cygwin 安装选择的最小配置是什么?