codeIgniter 500内部服务器错误

编程入门 行业动态 更新时间:2024-10-28 06:25:00
本文介绍了codeIgniter 500内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我下载使用codeIgniter写一个PHP脚本。当我从本地主机上运行它,要去管理员文件夹,它本地主机再次显示。另外从我的虚拟主机上运行时,它显示了一个500内部服务器错误。

I downloaded a PHP script written using CodeIgniter. when I run it from the localhost, on going to the admin folder, it shows localhost again. Also when running from my web host, it shows a 500 Internal Server Error.

我运行 HTTP站点://本地主机/ MyProj文它的工作原理。然后,当我试图进入管理页面,该页面是的http://本地主机/ MyProj文/管理员,它提供了500内部服务器错误

I run the site from localhost/myproj It works. Then when I try to go to the admin page which is at localhost/myproj/administrator, it gives a 500 Internal Server Error.

我读到这里,这可能是由于一个错误的code在.htaccess文件中。这是我的present .htaccess文件

I read here that this might be due to a wrong code in the .htaccess file. This is my present .htaccess file

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

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

Please help me. I know it might be a very small problem, but I'm unable to find the error.

推荐答案

500错误(与codeIgniter)的问题,有不同的Apache设置,它会显示5​​00错误时有一个与PHP配置错误。

The problem with 500 errors (with CodeIgniter), with different apache settings, it displays 500 error when there's an error with PHP configuration.

下面是它如何引发500错误与codeIgniter:

Here's how it can trigger 500 error with CodeIgniter:

  • 在脚本错误(PHP配置错误,缺失的软件包等)
  • 在PHP的致命错误
  • 请检查您的Apache的错误日志,应该有有一些有趣的信息。

    Please check your apache error logs, there should be some interesting information in there.

    更多推荐

    codeIgniter 500内部服务器错误

    本文发布于:2023-11-01 07:30:56,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1548670.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:错误   服务器   codeIgniter

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!