title: custom apache 500 error PHP page
body: <p>Alright, think I am about to loose my mind here... </p>
  
  <p>Been trying and testing, but cannot seem to get a custom HTTP 500 error page to load. Chrome keeps serving me the default "This page isn't working, HTTP error 500" error page.</p>
  
  <p>The steps I have taken:</p>
  
  <ul>
  <li>Created 500.php file, which would show the custom page I need</li>
  <li>Altered the .htaccess file with the lines below</li>
  <li>Created a file on the server that would load a non-existent class, thus causing a 500 error. </li>
  <li>Access_log is showing the request and the 500 status</li>
  </ul>
  
  <p>Accesslog</p>
  
  <blockquote>
    <p>:1 - - [10/Aug/2018:20:51:39 +0200] "GET / HTTP/1.1" 500 -</p>
  </blockquote>
  
  <p>Errorlog</p>
  
  <blockquote>
    <p>[Fri Aug 10 20:51:39.156104 2018] [php7:error] [pid 11608] [client ::1:65263] PHP Fatal error:  Uncaught Error: Class 'tests' not found in /private/var/www/development/public_html/index.php:7\nStack trace:\n#0 {main}\n  thrown in /private/var/www/development/public_html/index.php on line 7</p>
  </blockquote>
  
  <p>.htaccess lines</p>
  
  <pre><code>ErrorDocument 400 /404.php
  ErrorDocument 403 /403.php
  ErrorDocument 404 /404.php
  ErrorDocument 405 /405.php
  ErrorDocument 408 /408.php
  ErrorDocument 500 /500.php
  ErrorDocument 502 /502.php
  ErrorDocument 504 /504.php
  </code></pre>
  
  <p>Apache 2.4+
  PHP 7+</p>
  
  <p>I am not seeing the issue here, especially since the 404 version above is working flawlessly. 500.php contains just echo '500';</p>
  
  <p>Am I missing some Apache settings here? is it because it is local... </p>