Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install php 5.6 on Ubuntu 20.04 beta

Tags:

ubuntu

php-5.6

have recently installed 20.04 beta on my Laptop. I need to install php 5.6. I have googled a lot regarding it, but all are suggesting to install Via Ondrej Suri PPA. I have done that but it is giving error that 'unable to locate package php5.6'. I have checked their repository and found that they have support for 19.10 version but not for 20.04.

I have tried to find other methods but unable to find any. I am a noob on linux.

Please suggest an alternate way. I badly need this.

like image 826
Shantanu Sarkar Avatar asked Oct 25 '25 10:10

Shantanu Sarkar


1 Answers

You need to configure repository on your system.

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php

Then update repo

sudo apt update

Once the update complete, you can install any version from 5.6 to 7.4

sudo apt install -y php5.6

Or

sudo apt install -y php7.4
like image 70
César Augusto Camelo Vivas Avatar answered Oct 27 '25 01:10

César Augusto Camelo Vivas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!