访问php网站报500错误时显示错误显示 调试时可在访问的php文件开头输入 ini_set("display_errors", "On"); error_reporting(E_ALL | E_STRICT); 这样就会在页面上显示具体的php错误