I'm following this guide: http://atik97.wordpress.com/2010/06/12/how-to-upgrade-to-php-5-3-in-ubuntu-9-10/
I've done all the steps, but it's still showing php 5.2.6 - any ideas?
I have also tried -cgi instead of -cli, neither have any effect.
update
I've tried rebooting the server to see if that would have any effect and unfortunately it didn't
update
Output of dpkg -l *php*:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=============================================-=============================================-==========================================================================================================
un libapache2-mod-php4 <none> (no description available)
ii libapache2-mod-php5 5.2.6.dfsg.1-3ubuntu4.6 server-side, HTML-embedded scripting language (Apache 2 module)
un libapache2-mod-php5filter <none> (no description available)
ii php-pear 5.2.6.dfsg.1-3ubuntu4.6 PEAR - PHP Extension and Application Repository
un php4-cli <none> (no description available)
un php4-dev <none> (no description available)
un php4-mysql <none> (no description available)
un php4-pear <none> (no description available)
ii php5 5.2.6.dfsg.1-3ubuntu4.6 server-side, HTML-embedded scripting language (metapackage)
ii php5-cgi 5.2.6.dfsg.1-3ubuntu4.6 server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.2.6.dfsg.1-3ubuntu4.6 command-line interpreter for the php5 scripting language
ii php5-common 5.2.6.dfsg.1-3ubuntu4.6 Common files for packages built from the php5 source
ii php5-curl 5.2.6.dfsg.1-3ubuntu4.6 CURL module for php5
un php5-dev <none> (no description available)
ii php5-gd 5.2.6.dfsg.1-3ubuntu4.6 GD module for php5
ii php5-imap 5.2.6-0ubuntu5.1 IMAP module for php5
un php5-json <none> (no description available)
ii php5-mcrypt 5.2.6-0ubuntu2 MCrypt module for php5
ii php5-mysql 5.2.6.dfsg.1-3ubuntu4.6 MySQL module for php5
un php5-mysqli <none> (no description available)
ii php5-xsl 5.2.6.dfsg.1-3ubuntu4.6 XSL module for php5
un phpapi-20060613+lfs <none> (no description available)
ii phpmyadmin 4:3.1.2-1ubuntu0.2 MySQL web administration tool
update
The following commands and their outputs:
grep php53 /etc/apt/sources.list
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all
apt-cache search -f "libapache2-mod-php5"
http://pastebin.com/XNXdsXYC
update
I've updated the question with more details on installed packages.