CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • [SOLVED] downgrading PHP from 5.3 to 5.2 on Ubuntu 10.04 Lucid Lynx
Pages: [1]

Author Topic: [SOLVED] downgrading PHP from 5.3 to 5.2 on Ubuntu 10.04 Lucid Lynx  (Read 4888 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
[SOLVED] downgrading PHP from 5.3 to 5.2 on Ubuntu 10.04 Lucid Lynx
May 03, 2010, 01:50:31 pm
After just upgrading my Ubuntu development workstation from Ubuntu Karmic to Lucid, I found that Civi was giving some errors and I realized that the culprit was the fact that the 9.10 -> 10.04 upgrade process upgraded my php packages from 5.2 to 5.3, rendering my server incompatible with CiviCRM.

Here are the steps I took to fix it (from the bash command line):

Code: [Select]
php_packages=`dpkg -l | grep php | awk '{print $2}'`

sudo apt-get remove $php_packages

sed s/lucid/karmic/g /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/karmic.list

sudo mkdir -p /etc/apt/preferences.d/

for package in $php_packages;
do echo "Package: $package
Pin: release a=karmic
Pin-Priority: 991
" | sudo tee -a /etc/apt/preferences.d/php
done

sudo apt-get update

sudo apt-get install $php_packages

sudo /etc/init.d/apache2 restart

I'm not guaranteeing these steps will work for you (be careful here!), but they did it for me!

vshura

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 1
  • CiviCRM version: 4.6.0
  • CMS version: Wordpress 4.1.1
Re: [SOLVED] downgrading PHP from 5.3 to 5.2 on Ubuntu 10.04 Lucid Lynx
May 07, 2010, 02:51:30 am
Great, thanks Sean.

I just updated my netbook to Ubuntu 10.04 and have been coming against something similar, though with me it's installing a fresh version of CiviCRM on a localhost.  I was getting an error on the pre-installation screen saying php 5.3.2 isn't supported yet.  Your solutions worked ok for me too.

VS.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: [SOLVED] downgrading PHP from 5.3 to 5.2 on Ubuntu 10.04 Lucid Lynx
May 21, 2010, 04:51:45 pm
Nice one, Sean.

Can you explain how one undoes this once CiviCRM becomes 5.3 compliant?

Is it as simple as ...
Code: [Select]
rm /etc/apt/sources.list.d/karmic.list
rm /etc/apt/preferences.d/php
sudo apt-get update
sudo apt-get upgrade

???

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • [SOLVED] downgrading PHP from 5.3 to 5.2 on Ubuntu 10.04 Lucid Lynx

This forum was archived on 2017-11-26.