Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install php 5.3 or 5.4 on Ubuntu 16.04 Xenial and apache

Tags:

linux

php

ubuntu

I want to Install php 5.3 or 5.4 on Ubuntu 16.04 Xenial and Apache.
A tutorial points me to use PPA but they are not helping me in what I need.

I know that PHP 5.3 and 4 are obsolete but I need this for a project and is this possible? If yes then please teach me how in a step by step procedure with Apache2.

like image 403
MiksMeister Avatar asked Oct 03 '16 03:10

MiksMeister


People also ask

What version of PHP does Ubuntu 20.04 use?

Once it is installed successfully, you can verify and check the version of PHP by typing the “php -v” command. Alright! You can now see that version 7.4. 3 of PHP is installed on Ubuntu 20.04 LTS.


1 Answers

you can use this package ppa:sergey-dryabzhinsky/php53 to install php 5.3, i managed with this package on ubuntu 16.

sudo add-apt-repository ppa:sergey-dryabzhinsky/php53
sudo apt-get update
sudo apt-get install php5
like image 197
Nerius Jok Avatar answered Sep 22 '22 20:09

Nerius Jok