![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Lucid Lynx Testing and Discussion (CLOSED) Ubuntu Lucid Lynx is in development, use only for testing purposes!!! This forum is for the discussion of Ubuntu Lucid Lynx. Lucid is in development and will be out in April 2010 and will be a long term support release. Please note: Ubuntu Developers do not usually read the forums, to report a problem found in Lucid please report the bug in Launchpad. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: May 2006
Beans: 4
|
Reverting PHP to 5.2 in Lucid 10.04
I recently upgraded my main development laptop to Lucid. Lucid upgraded PHP to 5.3 and as I'm mainly a PHP developer, this has caused quite a few problems. What's the easiest way to revert back to the the 5.2 series? Googling hasn't found any good solutions.
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Jul 2009
Beans: 2
|
Re: Reverting PHP to 5.2 in Lucid 10.04
I don't have the answer to your question, but I'm curious what problems you ran into.
|
|
|
|
|
#3 |
|
5 Cups of Ubuntu
![]() Join Date: Mar 2010
Location: Ukraine
Beans: 23
Xubuntu Development Release
|
Re: Reverting PHP to 5.2 in Lucid 10.04
I'm curious too. I have upgraded php 5.3 on lucid. It works ok.
|
|
|
|
|
#4 |
|
Over 9000 Cups of Ubuntu
![]() |
Re: Reverting PHP to 5.2 in Lucid 10.04
You could add the Karmic repositories to your sources.list and do some apt-policy magic to lock PHP to Karmic, or compile PHP 5.2 from source.
|
|
|
|
|
#5 |
|
Spilled the Beans
![]() Join Date: Dec 2007
Beans: 16
|
Re: Reverting PHP to 5.2 in Lucid 10.04
Would be _very_ intersted in this, especially if there was a PPA / named package to do this... Drupal / Open Atrium don't play nice with PHP 5.3 yet, and many of our Drupal webapps would need non-trivial updates to do so. The latest Drupal core is rumored to work well, but none of the sites we have deployed are working well on 5.3, for whatever reason (contrib modules, etc).
Cheers! |
|
|
|
|
#6 |
|
5 Cups of Ubuntu
![]() Join Date: Mar 2010
Location: Ukraine
Beans: 23
Xubuntu Development Release
|
Re: Reverting PHP to 5.2 in Lucid 10.04
if you need just downgrade version, try to remove current version and you can use synaptic to install older one, use force version under the package menu.
i do not touch Drupal, but wordpress works ok with php 5.3 another way is to download sources of 5.2 and compile it (if there's no version in reps). Last edited by djoxyk; April 5th, 2010 at 03:41 PM.. Reason: addition |
|
|
|
|
#7 |
|
Over 9000 Cups of Ubuntu
![]() |
Re: Reverting PHP to 5.2 in Lucid 10.04
OK, here's how to do the Apt magic to get PHP packages from the karmic repositories:
* First remove all your existing PHP packages. You can list them with e.g.: Code:
dpkg -l | grep php Code:
sed s/lucid/karmic/g /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/karmic.list Code:
Package: php5 Pin: release a=karmic Pin-Priority: 991 |
|
|
|
|
#8 | |
|
Spilled the Beans
![]() Join Date: Dec 2007
Beans: 16
|
Re: Reverting PHP to 5.2 in Lucid 10.04
Quote:
|
|
|
|
|
|
#9 | |
|
Spilled the Beans
![]() Join Date: Dec 2007
Beans: 16
|
Re: Reverting PHP to 5.2 in Lucid 10.04
Quote:
|
|
|
|
|
|
#10 |
|
Fresh Brewed Ubuntu
![]() Join Date: Jul 2008
Beans: 1,491
|
Re: Reverting PHP to 5.2 in Lucid 10.04
No it won't. It will now have *both* the Lucid and the Karmic repositories enabled side by side; and because the Lucid versions of all software is from a repository with a higher major version number than their Karmic counterparts this will make APT use Lucid repositories (it prefers latest software by default), unless specified otherwise.
That is where the preferences file comes in; it basically tells APT to prefer the karmic PHP packages to the Lucid ones. Where this gets problematic is if PHP or associated packages depend on things like binutils that have broken their ABI or API over an upgrade. If that happens you will have Karmic PHP & related packages built for the old calling conventions confronted with the new ones and failing in interesting ways... Similarly if packages have been dropped or renamed or something like that you will have trouble to get APT to do conflict resolution and installation properly. |
|
|
| Bookmarks |
| Tags |
| 10.04, lucid, php 5.2, php 5.3 |
| Thread Tools | |
| Display Modes | |
|
|