获取Php内部服务器错误

获取Php内部服务器错误,php,.htaccess,Php,.htaccess,我尝试查找错误,但未找到错误原因。虽然在本地主机上运行正常,但在live server上无法运行 通常,生产服务器配置为隐藏所有错误信息 您可以在主php文件中添加这两行,以查看是否有方法获取错误信息(暂时,请确保在调试完成后删除它们): 您还可以检查PHP脚本所在的文件夹中是否有错误日志文件,许多服务器会将错误记录到一个文件中 如果前面的几行不成功,可能是语法错误,因此无法完成解析。加入错误日志,我们可能会帮助您。如何配置所有内容?我们不能用这个做任何事!!! Internal Server

我尝试查找错误,但未找到错误原因。虽然在本地主机上运行正常,但在live server上无法运行


通常,生产服务器配置为隐藏所有错误信息

您可以在主php文件中添加这两行,以查看是否有方法获取错误信息(暂时,请确保在调试完成后删除它们):

您还可以检查PHP脚本所在的文件夹中是否有错误日志文件,许多服务器会将错误记录到一个文件中


如果前面的几行不成功,可能是语法错误,因此无法完成解析。

加入错误日志,我们可能会帮助您。如何配置所有内容?我们不能用这个做任何事!!!
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@wellnessvisit.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
error_reporting(E_ALL);
ini_set('display_errors', 'On');