I want to install PHP 5.2 in Ubuntu 11.04 , I had some script that did that thing good but only on Ubuntu 9, anyone has a script / instructions how to do it?
The first way is using Andphe's PPA. This method is described here.
N.B. start with "libapache2-mod-php5", "php5-common", "php5-cli" and then the rest
The second way is attempting to install packages built for Lucid. They can be found here. Just download the packages, dpkg -i them all, and then pin all of them. I will not go into detail because I think that the first way is better.
The third way is installing from source. This guide seems quite good. This is your fallback route.
|show 1 more comment|
It might be better to try and work out why the PHP script doesn't work with PHP 5.3. It could just be down to some deprecated code that can easily be replaced
The PHP manual has a section on migrating from 5.2 to 5.3: http://php.net/manual/en/migration53.php
If you are using the server edition:
In general using = lets you install the version you prefer; check the available versions using apt-cache policy .
Do not forget to create /etc/apt/preferences.d/php5-5-2-14