Alright, think I am about to loose my mind here...
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.
The steps I have taken:
- Created 500.php file, which would show the custom page I need
- Altered the .htaccess file with the lines below
- Created a file on the server that would load a non-existent class, thus causing a 500 error.
- Access_log is showing the request and the 500 status
Accesslog
:1 - - [10/Aug/2018:20:51:39 +0200] "GET / HTTP/1.1" 500 -
Errorlog
[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
.htaccess lines
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
Apache 2.4+ PHP 7+
I am not seeing the issue here, especially since the 404 version above is working flawlessly. 500.php contains just echo '500';
Am I missing some Apache settings here? is it because it is local...