Customise the 500 Error page in php

后端 未结 2 1416
小鲜肉
小鲜肉 2021-01-25 09:42

I have my website code in codeigniter wherein I am fusing images using Imagick in php.There are a lot of functions which can generate the 500 HTTP error.I require a

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-25 10:16

    Codeigniter actually has a custom 500 error page. If you find your getting a generic 500 error page, it could be Apache overriding the codeiginter 500 error page.

    You could override it in the .htaccess to direct it to your own custom 500.html, but then you will miss out on any of the error information provided by codeiginter:

    ErrorDocument 500 /errors/500.html
    


    You could also edit the codeiginter 500 error page found in /application/errors/. I think it is the error_php.php file.

提交回复
热议问题