Added apache error logging messages to aid in debugging
Added commented-out code which drops to debugger if there's a problem
Added error_log() calls to aid debugging