does symfony redirect to custom error page if Fatal PHP error occurs?
Asked
Active
Viewed 4,410 times
2 Answers
6
Yes, you can put the files to here
/www/site/web/errors/error500.php
/www/site/web/errors/unavailable.php
3
No, you need to set that at the Apache level.
And make sure it's a flat HTML page - if PHP is causing the error and you try to deliver a PHP-driven 500 page, you might get the error again and Apache will figure out that your error page is recurring and display its own anyway.
Example from an .htaccess file
ErrorDocument 500 /errors/500.htm

Peter Bailey
- 105,256
- 31
- 182
- 206