[Ubuntu] How to demote PHP5.3 to PHP5.2 in Ubuntu11.04
Due to the Ubuntu 11.0.4 default installed PHP version > 5.3, so reluctantly to their own PHP demoted back to the ancient PHP 5.2.6 with Zendoptiom needs
The upgrade is very simple, gutsy in/etc/apt/source.list is replaced by Hardy, then aptitude update, Aptitude Safe-upgrade, Aptitude Dist-upgrade, Download a lot of packages to install a half-day will be done, but as before several upgrades, hardy Php5-sybase 5.2.4-2ubuntu5.1 or not support Sybase:
[12-jun-2008 09:13:13] PHP warning:php startup:unable to load Dynamic Library '/usr/lib/php5/20060613+lfs/sybase_ct.so '-/usr/lib/php5/200606 13+lfs/sybase_ct.so:cannot open Shared object file:no such file or directory in Unknown on line 0
The following packages have unsatisfied dependencies:
Php5-sybase: Reliance: Phpapi-20090626+lfs
Dependencies: Php5-common (= 5.3.6-13ubuntu3.1) But 5.2.10.dfsg.1-2ubuntu6 is about to be installed
There is no way to modify the source and demote back to 5.2.3 in gutsy:
$ sudo aptitude install php5-sybase=5.2.3-1ubuntu6.2 php5-gd= 5.2.3-1ubuntu6.2 php5-mysql=5.2.3-1ubuntu6.2 php5-tidy=5.2.3-1ubuntu6.2 php5-sqlite=5.2.3-1ubuntu6.2
I tried, Installed on this 5.2.3 Sybase, that is, sybase_ct.so, is not compatible with PHP 5.2.4 use, can only keep PHP temporarily do not upgrade.
In addition, the tidy extension of PHP is not available after this has been done, but fortunately tidy is not required.
annoying Sybase.