Install PHP 5.2 on Ubuntu Dapper

Posted by Christopher Rigor on November 11, 2009 
Filed Under Web Development

The repositories on Ubuntu Dapper don’t have php 5.2. To install php 5.2, I added the hardy repositories.

vi /etc/apt/sources.list

add the repositories
deb hardy main restricted
deb-src hardy main restricted

then run
sudo apt-get update
sudo apt-get install php5

This tried to install and upgrade a lot of packages including apache. I really needed php 5.2 and since the server is a development server, I accepted all the changes.


blog comments powered by Disqus