【问题标题】:CodeIgniter 500 Internal Server Error on working site工作站点上的 CodeIgniter 500 内部服务器错误
【发布时间】:2017-04-27 05:47:46
【问题描述】:

我的网站tourisminbhutan.com 是在Codeignitor 中构建的,工作正常,但在页眉响应代码中显示“500 Internal Server Error”。浏览器控制台和https://httpstatus.io/ 显示错误。

这是我得到的 HTTP 响应:

HTTP/1.1 500 Internal Server Error =>
Date => Thu, 27 Apr 2017 07:07:26 GMT
Server => Apache
Expires => Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control => no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma => no-cache
Set-Cookie => PHPSESSID=o2rlin6qh157pd141ivba31no0; path=/
Connection => close
Content-Type => text/html; charset=UTF-8

我不知道哪里出了问题。请帮忙。

【问题讨论】:

  • 现在可以正常使用了
  • 请签入httpstatus.io
  • 在哪个操作中出现 500 错误 -@SandeepKumar
  • 浏览器控制台显示错误“GET tourisminbhutan.com 500 (Internal Server Error)”@ubm
  • 检查error_log,它会告诉你为什么httpstatus.io得到500而你没有(我也没有)

标签: php apache .htaccess codeigniter


【解决方案1】:

这应该是您的初始检查清单,以防出现 500 HTTP 错误代码:

  • 检查 *.htaccess 文件的有效性和文件权限。
  • 检查任何编程语法错误。
  • 检查服务器错误日志是否有任何隐藏的错误。
  • 确保您具有运行 Codeigniter 框架(尤其是 PHP 版本)所需的最低要求。

请更新我。谢谢

【讨论】:

  • 嗯,再读一遍OP的问题。网站没问题,只有 httpstatus.io 报错。
猜你喜欢
  • 2017-08-23
  • 1970-01-01
  • 2015-06-13
  • 1970-01-01
  • 2013-12-03
  • 2018-02-22
  • 2012-05-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多