« Logging php errors | Main | Code Snippet for pulling Node Reference and Multigroup information in Drupal 6 »

January 18, 2011

Downgrading from PHP 5.3 to 5.2 all for Drupal

Contributed modules in Drupal 6 don't like PHP 5.3. For example, I'm pretty sure CCK's export and multigroup views integration hate it.

Notes on backing down the step - or jumping off the cliff, we'll see how it turns out. This is on Ubuntu 10.04 btw.

Newbie friendly tutorial

Drupal friendly tutorial

Instructions for Ubuntu 10.10

Details I didn't quite understand


$ wget http://randyfay.com/sites/default/files/karmic_0.list
$ wget http://randyfay.com/sites/default/files/php_1.
$ sudo mv karmic_0.list /etc/apt/sources.list.d/karmic.list
$ sudo mv php_1. /etc/apt/preferences.d/php

$ dpkg --get-selections | grep php
$ sudo apt-get remove libapache2-mod-php5 php5 php5-cli php5-common php5-gd php5-mcrypt php5-mysql

$ sudo apt-get autoremove
$ sudo apt-get update
$ sudo apt-get install php5 libapache2-mod-php5 php-db php5-cli php5-common php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache

Add three lines to /etc/apt/preferences.d/php

Package: php5-mcrypt
Pin: release a=karmic
Pin-Priority: 991

$ sudo apt-get mcrypt


$ php -v

Modify /etc/php5/apache2/php.ini

max_execution_time = 200
memory_limit = 128M
log_errors = On
error_log = /var/log/apache2/php_errors.log


And...BINGO, WAMBO, KAPOW, I can now export content types in Drupal again.

Posted by kkwaiser at January 18, 2011 12:51 PM

Comments

Login to leave a comment. Create a new account.