Skip to content

Instantly share code, notes, and snippets.

@dakoctba
Created August 30, 2014 19:44
Show Gist options
  • Save dakoctba/e1fd1aa68915e27ab7a4 to your computer and use it in GitHub Desktop.
Save dakoctba/e1fd1aa68915e27ab7a4 to your computer and use it in GitHub Desktop.
How to install php 5.4 on ubuntu
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
@mwaeil
Copy link

mwaeil commented Jul 1, 2022

php5-oldstable is not found
image

@dakoctba
Copy link
Author

dakoctba commented Nov 4, 2022

This gist is too old, I don't use PHP anymore. I recommend you to use Docker or move to new versions of PHP.

@mwaeil
Copy link

mwaeil commented Nov 4, 2022

It's okay. I have moved to new versions but there's this old project i needed to run. Until now i haven't able to run it. Anyways thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment