Apache error logs on OSX Mavericks

So, if you are wondering why one of your php based application silently dies; its best to look at the apache error logs on OSX.

On Mavericks the last few lines of the error log can be viewed by using this command

tail -f /private/var/log/apache2/error_log

“tail” means that it will display the logs trailing at the end of the error log.

Press control + c to exit

Hope this helps someone.