Each time I recieve a mistake in almost any of my PHP, my local Apache server provides me with a 500 Internal Server error. I never appear to experience any one of my CakePHP projects, but this really is plain vanilla PHP which is really slowing down lower progress needing to guess in the error.

Enable error confirming while using following PHP code:


PHP Docs

What @scompt authored + you could look into the Apache error logs to be aware what happened. (hell, should you develop on linux, host on Linux, you must know about the mistake logs).