Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  34] [ 0]  / answers: 1 / hits: 91754  / 3 Years ago, mon, august 9, 2021, 7:22:25

Im setting up a vps for the first time from scratch, the host has a one click LAMP installer which took out allot of the leg work, but running phpinfo(); i found im running 5.3.10.



So id like to update it to 5.4.10 - Ive run sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt but it says php5 is the latest version, any ideas about how to update this ?



The server is running Ubuntu 12.04


More From » server

 Answers
0

PHP 5.4.10 is not available in the Ubuntu repositories for 12.04.



You have two options:



(1) try and find a PPA with a backported version of PHP 5.4.10 (such as ondrej's oldstable PPA)




a) Run this command: sudo apt-get install python-software-properties

b) Run this command: sudo add-apt-repository ppa:ondrej/php5-oldstable

c) Run sudo apt-get update; sudo apt-get install php5

d) This should allow you to use PHP 5.4.10 (or whatever the most recent "Old Stable PHP" is).




(2) download PHP from source, and compile it.



5.4.10 does not exist in the repositories for any version of Ubuntu, apparently, so you're stuck with these two options for all releases.



(I can try and backport 5.4.10 from Debian if you would like, but it would be in a PPA, so you'd have to trust that I'm not giving you malware, although I wouldn't do that ever.)


[#29520] Tuesday, August 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ouschee

Total Points: 485
Total Questions: 88
Total Answers: 106

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
;