Strange PHP Path Glitch After 10.8.5 Update

I had an odd problem after updating to OS X 10.8.5. Namely, the system seemed to have forgotten which PHP to use (in my case, I want the MacPorts version to be the default. I checked all the usual suspects like /etc/paths and ~/.bash_profile to see if the update had reset their contents. Nope.

Deleting Lines Containing Text in vi

One of the more tedious aspects of development is debugging. Apache logs often provide a lot of useful information about things that have gone wrong, some related to code, some not (honestly, script kiddies, quit trying to access phpmyadmin).