title: PHP not displaying errors - Internal Server Error (500)
body: <p>I've set up a fresh install of Ubuntu Server 12.04 LTS on Amazon AWS with *Apache2/MySQL/PHP5. When I run a PHP script and it encounters an error I don't see any error reporting from PHP, all I see is</p>
  
  <pre><code>HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.
  </code></pre>
  
  <p>I have checked my <code>/etc/php5/apache2/php.ini</code> file and as far as I can tell error reporting should be set up. The contents of the file (regarding errors) are:</p>
  
  <pre><code>;    display_errors
  ;      Default Value: On
  ;      Development Value: On
  ;      Production Value: Off
  
  ;    display_startup_errors
  ;      Default Value: Off
  ;      Development Value: On
  ;      Production Value: Off
  
  ;    error_reporting
  ;      Default Value: E_ALL &amp; ~E_NOTICE
  ;      Development Value: E_ALL | E_STRICT
  ;      Production Value: E_ALL &amp; ~E_DEPRECATED
  </code></pre>
  
  <p>Can anyone advise? If I try something like <code>$obj = new ObjectDoesntExist;</code> it doesn't tell me <code>Fatal error: Class 'ObjectDoesntExist'</code> it gives me a server 500 error.</p>
  
  <p>Any advise?</p>
  
  <p>* The modules I have installed are: <code>mysql-server mysql-client apache2 php5 libapache2-mod-php5 phpmyadmin</code>. Other than that it is a completely base install of Ubuntu Server 12.04 LTS</p>
  
  <p>EDIT:
  If I use <code>ini_set('display_errors', '1');</code> at the start of my script it displays errors as normal, but how do I enable this site wide?</p>