Apache Fall Back When PHP Fails -
i wondering if knew of method configure apache fall returning static html page, should (apache) able determine php has died? provide developer elegant solution displaying error page , not (worst case scenario) source code of php page should have been executed.
thanks.
the php source code displayed when apache not configured correctly handle php files. is, when proper handler has not been defined.
on errors, shown can configured on php.ini, display_errors variable. should set off , log_errors on on production environment.
if php dies, apache return appropriate http status code (usually 500) page defined errordocument directive. if didn't die, got stuck in loop, there not can far know.
you can specify different page different error codes.
Comments
Post a Comment