Php 尝试访问数据库时出现服务器错误

Php 尝试访问数据库时出现服务器错误,php,mysql,codeigniter,internal-server-error,bluehost,Php,Mysql,Codeigniter,Internal Server Error,Bluehost,如何解释此错误消息?我已经在这上面花了几个小时了。 基本上,当我连接到myapp.mysite.org时,我就能让它正常工作,与myapp.mysite.org/docu和其他页面一样,但是当我需要查询数据库时,我会遇到这种神秘的“服务器错误”现象。任何关于我如何开始这项工作的建议,我都束手无策。我怎么能至少有一些错误日志记录,这样我就能看到哪里出了问题 托管在Bluehost上,代码点火器应用程序 config/database.php $db['test']['hostname'] = 'l

如何解释此错误消息?我已经在这上面花了几个小时了。 基本上,当我连接到myapp.mysite.org时,我就能让它正常工作,与myapp.mysite.org/docu和其他页面一样,但是当我需要查询数据库时,我会遇到这种神秘的“服务器错误”现象。任何关于我如何开始这项工作的建议,我都束手无策。我怎么能至少有一些错误日志记录,这样我就能看到哪里出了问题

托管在Bluehost上,代码点火器应用程序

config/database.php

$db['test']['hostname'] = 'localhost';
$db['test']['username'] = 'me_name';
$db['test']['password'] = 'me_password';
$db['test']['database'] = 'me_database';
$db['test']['dbdriver'] = 'mysql';
$db['test']['dbprefix'] = '';
$db['test']['pconnect'] = TRUE;
$db['test']['db_debug'] = FALSE;
$db['test']['cache_on'] = FALSE;
$db['test']['cachedir'] = '';
$db['test']['char_set'] = 'utf8';
$db['test']['dbcollat'] = 'utf8_general_ci';
$db['test']['swap_pre'] = '';
$db['test']['autoinit'] = TRUE;
$db['test']['stricton'] = FALSE;
.htaccess

SetEnv MAGIC_QUOTES 0
SetEnv PHP_VER 5
Options +FollowSymlinks -MultiViews
Options +SymLinksIfOwnerMatch -MultiViews
RewriteEngine On
DirectoryIndex index.php
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule (.*) index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule (.*) index.php?/$1 [L]
日志在DEBUG-2012-10-05 23:55:41-->数据库驱动程序类初始化时结束;
echo "<pre>";
print_r($this->db);
echo "</pre>";
打印($this->db); 回声“; 运行上面的代码检查数据库的详细信息,似乎您的htaccess文件没有问题
e确保您的
$active\u组中的
是正确的。

第一步:检查您的错误日志。您的服务器错误是什么?准确点。错误:在Chrome上,它基本上是说“服务器错误”。打开错误日志记录。日志在调试时停止-2012-10-05 23:55:41-->数据库驱动程序类初始化。所以我现在正在研究可能的解决方案