2013-03-20 116 views
0

我想部署我的网站,但我一直收到500内部服务器错误。我可以打开主页,但是当我想打开另一个菜单选项卡时,它会一直显示500内部服务器错误。我也检查了日志,但似乎没有发现任何线索。下面是我的错误日志中显示:500部署Codeigniter中的内部服务器错误

<?php if (! defined('BASEPATH')) exit('No direct script access allowed'); ?> 

DEBUG - 2013-03-20 11:36:44 --> Config Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Hooks Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Utf8 Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> UTF-8 Support Enabled 
DEBUG - 2013-03-20 11:36:44 --> URI Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Router Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> No URI present. Default controller set. 
DEBUG - 2013-03-20 11:36:44 --> Output Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Security Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Input Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Global POST and COOKIE data sanitized 
DEBUG - 2013-03-20 11:36:44 --> Language Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Loader Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Config file loaded: application/config/asset.php 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: asset_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: string_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: url_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: form_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: text_helper 
DEBUG - 2013-03-20 11:36:44 --> Database Driver Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Native_session Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Form Validation Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Controller Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Model Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Model Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> File loaded: application/views/view_home.php 
DEBUG - 2013-03-20 11:36:44 --> File loaded: application/views/template.php 
DEBUG - 2013-03-20 11:36:44 --> Final output sent to browser 
DEBUG - 2013-03-20 11:36:44 --> Total execution time: 0.0295 

我的继承人.httaccess

RewriteEngine叙述在 RewriteBase/indocreweb /#如果我们没有安装

#Removes access to the system folder by users. 
#Additionally this will allow you to create a System.php controller, 
#previously this would not have been possible. 
#'system' can be replaced if you have renamed your system folder. 
RewriteCond %{REQUEST_URI} ^system.* 
RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] 

#When your application folder isn't in the system folder 
#This snippet prevents user access to the application folder 
#Submitted by: Fabdrol 
#Rename 'application' to your applications folder name. 
RewriteCond %{REQUEST_URI} ^application.* 
RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] 

#Checks to see if the user is attempting to access a valid file, 
#such as an image or css document, if this isn't true it sends the 
#request to index.php 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] </IfModule> 

的mod_rewrite ,所有的404的 #可以发送到index.php,并且一切正常。 通过#Submitted:ElliotHaughin 的ErrorDocument 404的index.php

从什么记录显示,我找不到任何线索是什么导致它的问题还是什么。任何人都有这个想法? :-(

谢谢。

+0

似乎有问题在你的.htaccess文件中 – 2013-03-20 06:35:55

+0

可以分享网站地址,这样我可以看看它吗? – 2013-03-20 06:36:40

+0

检查您的错误日志。它会详细介绍500. – 2013-03-20 06:38:30

回答

0

从它看起来大多是因为的.htaccess 的发生的错误通常每个服务器有mod_rewrite的,所以我不认为模块的存在是一个问题。

我认为你需要玩的第一行中:RewriteEngine On RewriteBase/indocreweb/ 尝试删除斜线,或检查URL甚至是否正确 例如,如果你直接访问该网站,那么它应该是 RewriteEngine叙述在RewriteBase/ 像www.indocreweb.com

但是,如果它被作为一个子文件夹或类似www.indocreweb.com/indocreweb 然后 RewriteEngine叙述在RewriteBase/indocreweb

希望这有助于一些访问。