title: Display 500 error on any error in apache
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3075174/how-to-make-php-set-http-status-code-to-500-automatically-in-case-of-any-error-c">How to make PHP set HTTP status code to 500 automatically in case of any error condition? (including those that cannot be handled by user)</a>  </p>
  </blockquote>
  
  
  
  <p>I want to configure Apache to send to the user a 500 response with a custom 500 page when a PHP script raises a fatal error.
  What I have now is that it will print the error inline with the page content which is good for development but not for production.</p>
  
  <p>How do I configure Apache to send the user a 500 response with a custom page?</p>