Ubuntu Server Install PHP 5.3

Posted on Friday, May 21, 2010 in Linux

This is example works on Ubuntu Server 9.04 and PHP 5.3.2
First remove all instances of PHP and related packages

1. add to /etc/apt/sources.list:
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all

2. update and upgrade:
#apt-get update && apt-get upgrade

3. install:
#apt-get install php5 libapache2-mod-php5 php5-cli php5-mysql

4. check PHP version:
#php -v

Restart Apache