Select Page

How to install the latest PHP version for Ubuntu

How to install the latest PHP version for Ubuntu

Ubuntu 10.10 (Maverick) is offering as for today a relative old version PHP 5.3.3, if you want to have a better version, you’ll have to trust an unofficial APT repository. Here is How

Thanks to the NGINX team, you can find nearly the latest version of PHP online at https://launchpad.net/~nginx/+archive/php5

Create a new file php5-ppa.list

vi /etc/apt/sources.list.d/php5-ppa.list

and depending on the version of your ubuntu, you can replace the word maverick with the oldest oneiric, natty, or the latest lucid

deb http://ppa.launchpad.net/nginx/php5/ubuntu maverick main deb-src http://ppa.launchpad.net/nginx/php5/ubuntu maverick main

run an update, to get the latest PHP version

apt-get update 
apt-get dist-upgrade

Alternatively you can still compile PHP on your own..

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

Categories

0
Would love your thoughts, please comment.x
()
x