在Php内部服务器错误上获取错误

时间:2015-05-12 16:26:11

标签: php .htaccess

我收到错误我试图找到,但没有得到为什么得到Error.While它在我的本地主机上工作正常,但没有在实时服务器上工作。

http://wellnessvisit.com/vascular-new/assets/global/plugins/jquery-file-upload/server/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.

1 个答案:

答案 0 :(得分:1)

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

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

error_reporting(E_ALL);
ini_set('display_errors', 'On');

您还可以检查与PHP脚本在同一文件夹中是否存在error_log文件,许多服务器将错误记录到文件中。

如果没有运气,使用前面的行,可能是语法错误,因此解析没有完成。

相关问题