加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – CodeIgniter 500内部服务器错误

发布时间:2020-12-13 13:40:27 所属栏目:PHP教程 来源:网络整理
导读:我下载了使用CodeIgniter编写的 PHP脚本.当我从localhost运行它时,在转到admin文件夹时,它再次显示localhost.此外,当从我的Web主机运行时,它显示500内部服务器错误. 我从http://localhost/myproj运行该网站它的工作原理.然后,当我尝试进入位于http://localho
我下载了使用CodeIgniter编写的 PHP脚本.当我从localhost运行它时,在转到admin文件夹时,它再次显示localhost.此外,当从我的Web主机运行时,它显示500内部服务器错误.

我从http://localhost/myproj运行该网站它的工作原理.然后,当我尝试进入位于http://localhost/myproj/administrator的管理页面时,它会产生500内部服务器错误.

我在这里读到这可能是由于.htaccess文件中的错误代码造成的.这是我现在的.htaccess文件

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$$1 [L,R=301]

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$/index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$/index.php/$1 [L]
# Without mod_rewrite,route 404's to the front controller
ErrorDocument 404 /index.php

请帮我.我知道这可能是一个非常小的问题,但我无法找到错误.

500错误(使用CodeIgniter)的问题,使用不同的apache设置,当PHP配置出错时显示500错误.

以下是它如何使用CodeIgniter触发500错误:

>脚本错误(PHP配置错误,缺少包等…)
> PHP“致命错误”

请检查您的apache错误日志,那里应该有一些有趣的信息.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读