Put a Tail on That Error Log

Place the following in a file called /usr/local/bin/tail_log:

tail -f /var/log/lighttpd/php_error_log|egrep -i "fatal|stack|#|thrown"

That enables a user to issue tail_log to listen for fatals in the php error log, usable for dev enviroments when developing in new realms.

Note that the location of php_error_log might differ, especially if the server isn’t lighttpd…