Patric Nøis
Patric Nøis

Reputation: 208

Installing php 5.2 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.

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

Upvotes: 0

Views: 15015

Answers (1)

Gerard Rozsavolgyi
Gerard Rozsavolgyi

Reputation: 5064

Try this:

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

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 !

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

Upvotes: 3

Related Questions