Getting a 500 error, probably caused by an error in my PHP script. For some reason when I have an error it doesn't output it, it just sends me a 500 error. How can I change that?
The error is going into your log file, but not printed to the server error displayed. This is intentional, because it prevents possibly-sensitive information from being exposed to attackers. (Pathname information, database schemas, possibly something exploitable about the bug that caused the error itself....)
You can either just look at the php error log (probably near wherever your system puts its web server logs), or else you can edit
/etc/php.ini to read
display_errors = On instead of Off. Unless this is a protected development system, I suggest the former.