0% found this document useful (0 votes)
200 views1 page

Reverting or Downgrade PHP

This document provides instructions for downgrading PHP from version 5.3 to 5.2 on an Ubuntu 10.04 system. It describes listing the currently installed PHP packages, editing the software sources to pull packages from the Ubuntu 9.10 "Karmic" repository instead of 10.04 "Lucid", and running commands to install PHP 5.2.10 packages and dependencies. The instructions are intended for situations where old applications stopped working after an PHP upgrade.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
200 views1 page

Reverting or Downgrade PHP

This document provides instructions for downgrading PHP from version 5.3 to 5.2 on an Ubuntu 10.04 system. It describes listing the currently installed PHP packages, editing the software sources to pull packages from the Ubuntu 9.10 "Karmic" repository instead of 10.04 "Lucid", and running commands to install PHP 5.2.10 packages and dependencies. The instructions are intended for situations where old applications stopped working after an PHP upgrade.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Blog Albums About me Contact

15 Reverting or downgrade PHP


5.3 to 5.2 in Ubuntu Lucid
Lynx 10.04
05 May 2010 By Nick

So, you upgraded to Ubuntu 10.04 but suddenly your old applications like Drupal do
not work on PHP 5.3 anymore? What the hell?

Without asking why it doesn't work because we would only loose time we want to go
back to the version of PHP 5.2 where it does work!

Let us list all existing PHP packages to know what version we are running:
dpkg -l | grep php

So, now we are going to duplicate the existing sources.list and replace the lucid with
karmic repos and saving it in sources.list.d
Activity Stream
sed s/lucid/karmic/g /etc/apt/sources.list | sudo tee /etc/apt
July 23, 2010
/sources.list.d/karmic.list
Nick tweeted "Nick_vh: RT
@VincentVQ: Christ'lJoris,
Create a file to be a little bit ahead of our apt-get system. onderneemster in DeTijd: 'De
sudo nano /etc/apt/preferences.d/php Belgen maken missch het beste
bier. Maar het Hollandse is overal
And insert the following text
ter wereld t ..." 11:34am #
Package: php5

Pin: release a=karmic July 22, 2010


Pin-Priority: 991
Nick tweeted "Nick_vh:
Searching a couch for 2 persons in
#Amsterdam #couchsurfing for
Let's update the system. (You might want to do it twice to be sure)
27-29th of July. Somebody that
sudo apt-get update could provide us? Thanks!" 5:58pm
#

Installing php5 Karmic Packages. Attention! Only replace packages that were
installed when doing the first command (remember the grep we did in the first step?)
July 21, 2010
sudo apt-get install php5=5.2.10.dfsg.1-2ubuntu6 Nick tweeted "Nick_vh: Last
day #barcelona for this summer..
php5-dev=5.2.10.dfsg.1-2ubuntu6 php-pear=5.2.10.dfsg.1-2ubuntu6
See you all in September people
php5-cgi=5.2.10.dfsg.1-2ubuntu6 php5-cli=5.2.10.dfsg.1-2ubuntu6 from BCN!" 8:07pm #
php5-common=5.2.10.dfsg.1-2ubuntu6 php5-curl=5.2.10.dfsg.1-2ubuntu6

php5-gd=5.2.10.dfsg.1-2ubuntu6 php5-mcrypt=5.2.10.dfsg.1-2ubuntu6
July 12, 2010
php5-mysql=5.2.10.dfsg.1-2ubuntu6 php5-pgsql=5.2.10.dfsg.1-2ubuntu6 Nick tweeted "Nick_vh:
@TUc_ Over cruyff, zijn nieuwe
website wordt door spanjaarden
There you go! A fully function 5.2.10 PHP installation without troubles. If somebody gemaakt in drupal. Verder voel ik
knows how to make persistent so an upgrade does not replace them anymore feel me opperbest dat Spanje heeft
gewonnen ;-)" 4:54pm #
free to add a comment to this post.
Nick tweeted "Nick_vh:
Woohoo Espanya! Espanya! Nice

You might also like