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..

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories