Showing posts with label debugging. Show all posts
Showing posts with label debugging. Show all posts

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.

Thursday, January 31, 2008

Firebug debugger

Treetapper will be fairly Ajax-rich (though with more RESTful interfaces, too, and with concern for accessibility). I didn't know any Javascript (or PHP) when starting, so having a good debugger is handy. I first tried a "Javascript Debugger" plugin for Firefox, but it seemed a bit clunky. I've now installed Firebug, and I am so far quite happy with it. It allows debugging/inspection of the Javascript, CSS, and HTML of the page.