Monday, May 16, 2011

OS X upgrade recovery

Once OS X server is upgraded, TreeTapper no longer connects to a database because php it is using no longer has postgres support. The solution:

  • Install macports (probably already done)
  • sudo port install php5-postgresql
  • cd /usr/libexec/apache2/
  • sudo cp libphp5.so libphp5.so_ORIGINAL
  • sudo cp /opt/local/apache2/modules/libphp5.so . [note the period]
  •  Restart apache (aka turn off and turn on the web in Server Admin)
An OS X upgrade moves apache back to its base settings, apparently.