Inexplicably, it never occurred to me look into the error.log file of the lighttpd server. And when I finally did peek into it using the command below, I discovered a few bugs in my PHP code.
tail -n 15 /var/log/lighttpd/error.log
You live and learn.