Contact Me

voice: 970.673.7673
email: dave@lofdev.com

Social Media

Downgrading PHP to 5.2.10 with MacPorts

Alright.  So I discovered that it’s really a pain in the butt when you discover that you’re trying to use Drupal 6 with CiviCRM, and discover that PHP 5.3 has deprecated some features, breaking the software.  Obnoxious, but really, that’s kinda the whole game when you use open-source software.  Goes with the territory, so I had to fix my environment, downgrading PHP from 5.3.0 to 5.2.10.  This is what I did:

sudo port deactivate php5
sudo port install php52 +mysql5 +gd
apachectl restart

Totally simple and easy. No messing with MacPorts sources or anything.  Thanks to the MacPorts team for taking care of this one!