安装php 5.2 ubuntu [英] Installing php 5.2 ubuntu

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

问题描述

我想在服务器上安装php5.2.x.我找不到任何方法可以做到这一点.我从服务器上删除了php.我的服务器正在运行ubuntu.

I want to install php 5.2.x on my server. I can't find any way to do this. I removed php from the server. My server is running ubuntu.

我试图遵循这一方法而没有成功. https://askubuntu.com/questions/262368/is-there-any-repository-for-installing-php-5-2-x-on-ubuntu-12-04

I tried to follow this one without success. https://askubuntu.com/questions/262368/is-there-any-repository-for-installing-php-5-2-x-on-ubuntu-12-04

推荐答案

尝试一下:

sudo add-apt-repository ppa:txwikinger/php5.2
sudo apt-get update

那么您应该能够使用apt-get install安装php5.2,但是既然PHP 7已经发布,那真的是很老的东西了!

then you should be able to install php5.2 with apt-get install but that's really old stuff now that PHP 7 has been released !

如果不可能的话,请将这两行添加到/etc/apt/sources.list add执行sudo apt-get update

if that's not possible add these two lines to /etc/apt/sources.list add do a sudo apt-get update

这篇关于安装php 5.2 ubuntu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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