How to Install PHP 5.3.1 on Ubuntu 64 bit and 32 bit Posted on 17 March 20109 July 2018 By Shafiq Alibhai …yes just 2 lines … For Ubuntu x64 1) sudo su 2) cd /tmp && mkdir php53 && cd php53 && wget && wget && dpkg -i *.deb && echo “deb http://php53.dotdeb.org stable all” >> /etc/apt/sources.list && aptitude update && aptitude install libapache2-mod-php5=5.3.1 apache2 For Ubuntu 32 bit i386 1) sudo su 2) cd /tmp && mkdir php53 && cd php53 && wget && wget && dpkg -i *.deb && echo “deb http://php53.dotdeb.org stable all” >> /etc/apt/sources.list && aptitude update && aptitude install libapache2-mod-php5=5.3.1 apache2