请选择 进入手机版 | 继续访问电脑版

500 Internal Server Error nginx dz论坛出现这种问题解决方法教程

[复制链接]
查看3740 | 回复1 | 2018-10-1 21:17 | 显示全部楼层 |阅读模式
500 Internal Server Error
nginx
500 Internal Server Error  nginx dz论坛出现这种问题解决方法教程

一:一般这种错误多数是程序问题,请点击浏览器菜单栏的工具-》internet选项-》高级-》把滚动条拉到最下面 有个"显示友好HTTP错误信息",去掉前面的勾,点确定,然后刷新你的网页就能给出具体错误提示了,根据错误提示对文件修改了。

二:如果是报以下错的话:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request
Please contact the server administrator, [no address given] 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 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
。这个情况一般是为伪静态规则写的不规范造成的,检查空间下是否有.htaccess规则,检查是否正确。不正确修改为正确的,或删除或更改这个文件名即可解决。

三:论坛出现500报错,Discuz! 7.2及以前版本按如下办法试下
1:打开报错提示,进入论坛include下编辑common.inc.php文件,找到error_reporting(0);这个(就在这个文件的开头)改为error_reporting(7);保存更新缓存刷新页面一般就有具体的哪个文件有错,然后对症下药了---一般这种情况就是用默认的文件覆盖就ok了。
2:一般论坛的报错误如果是程序问题方法一可以找到具体的哪个文件出错,还有中可能是其实文件都没错,那么这个时候就更新下缓存即可。进入论坛目录下forumdata/下,删除cache/*,templates/*,threadcaches/* 的文件。注意是里面的文件不是这些文件夹的哦。

Discuz! X 打开报错调试的方法
进入./source/class/class_core.php
编辑 error_reporting(0); 为error_reporting(7);

保存退出即可


xiangwei520 | 2019-8-20 04:34 | 显示全部楼层
不错,支持一下,教程网!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

120

UID
5
贡献
0
丢币
0
主题
19
回帖
3
注册时间
2018-9-25
最后登录
2019-7-3