php 服务器遇到内部错误或配置错误,无法完成您的请求

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6438475/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 00:23:27  来源:igfitidea点击:

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

phpmysqlapache

提问by anbusekar

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

Please contact the server administrator, [email protected] 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.
Apache/2.2.0 (Fedora) Server at bbt.com Port 80

This works fine in my local system but it is not working in the server. Can anyone help to figure out why it is? Thanks in advance!

这在我的本地系统中运行良好,但在服务器中不起作用。任何人都可以帮助弄清楚为什么会这样吗?提前致谢!

回答by Konerak

Check your servers error log, typically /var/log/apache2/error.log.

检查您的服务器错误日志,通常是/var/log/apache2/error.log.

回答by Nicola Peluchetti

You should look for the error in the file error_log in the log directory. Maybe there are differences between your local and server configuration (db user/password etc.etc.)

您应该在日志目录中的文件 error_log 中查找错误。也许您的本地和服务器配置(数据库用户/密码等)之间存在差异

usually the log file is in

通常日志文件在

/var/log/apache2/error.log

or

或者

/var/log/httpd/error.log