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

anb*_*kar 32 php mysql apache

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

Please contact the server administrator, nkutty@bics.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.
Apache/2.2.0 (Fedora) Server at bbt.com Port 80
Run Code Online (Sandbox Code Playgroud)

这在我的本地系统中工作正常但它在服务器中不起作用.任何人都可以帮助弄清楚它为什么?提前致谢!

Kon*_*rak 31

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


Nic*_*tti 21

您应该在日志目录中的error_log文件中查找错误.也许您的本地和服务器配置之间存在差异(db user/password etc.etc.)

通常日志文件在

/var/log/apache2/error.log
Run Code Online (Sandbox Code Playgroud)

要么

/var/log/httpd/error.log
Run Code Online (Sandbox Code Playgroud)

  • 如何在服务器上检查它们? (2认同)
  • 在服务器上:通过 Putty:tail - f /var/log/apache2/error.log 如果使用核心 ftp 或 filezilla 或 winscp,而不仅仅是转到文件夹到文件夹。 (2认同)