I know how to make custom error pages - that's not my question.
The problem is this... how do you specifically make a custom 500 Internal Server Error page, and get it to successfully display if the server has an error?
i.e. How can you display a nice error page from the system when the system isn't working?
I am using a PHP MVC framework, but obviously if there's a server error, the framework can't be started and the error page is inaccessible. So how do you then show that error page?
I assume it involves using a static HTML page for just that one error, that bypasses any of the PHP framework or something. However, that then means I am sacrificing the integrity of the framework itself by hard coding paths (e.g. to images), and duplicating code (e.g. Common CSS used to make my pages look uniform).
How is this usually done?