I am running a fresh install of Linux Mint 17.3 and followed this guide to setup Apache, PHP (5.5.9), MySQL and PHPMyAdmin. The only other thing I did was enable mod_rewrite.
The problem I'm having is when executing PHP code that should return a warning or fatal error, it instead returns an HTTP error 500. For example, the following code works fine (as expected):
<?php
// convert fahrenheit to celsius
$temp = 80;
$temp -= 32;
$temp *= 5/9;
echo $temp;
Whereas I would expect the following code to return a PHP warning/error, but it instead returns a completely unhelpful HTTP error 500:
<?php
// convert fahrenheit to celsius
$temp = 80;
echo ($temp -= 32) *= 5/9;
What is going on and how do I fix this issue?