0

我已将 codeigniter 脚本从开发服务器移动到生产服务器(

相同的服务器,只是不同的域,所以没有 PHP/database/apache config/ 或相关问题

)

我已经能够在一个地方/application/logs 文件夹中登录我已经尝试了所有其他日志(启用的php日志等)似乎没有什么可以告诉我问题是什么,是什么导致白屏)

DEBUG - 2016-06-16 15:47:48 --> Config Class Initialized

DEBUG - 2016-06-16 15:47:48 --> Hooks Class Initialized

DEBUG - 2016-06-16 15:47:48 --> Utf8 Class Initialized

DEBUG - 2016-06-16 15:47:48 --> UTF-8 Support Enabled

DEBUG - 2016-06-16 15:47:49 --> URI Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Router Class Initialized

DEBUG - 2016-06-16 15:47:49 --> No URI present. Default controller set.

DEBUG - 2016-06-16 15:47:49 --> Output Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Security Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Input Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Global POST and COOKIE data sanitized

DEBUG - 2016-06-16 15:47:49 --> Language Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Loader Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Helper loaded: url_helper

DEBUG - 2016-06-16 15:47:49 --> Helper loaded: file_helper

DEBUG - 2016-06-16 15:47:49 --> Database Driver Class Initialized

DEBUG - 2016-06-16 15:47:49 --> Session Class Initialized

如果有人有任何想法,请告诉我到目前为止我有

在谷歌搜索中添加了开发服务器index.php ,并尝试了其他所有方法以显示一些错误,直到现在都没有工作。

我现在有点没有想法。

现在在服务器中有一些条目,但它们似乎更多的是黑客尝试而不是实际错误。

2016-06-17 03:05:04.050 [信息] [124.253.119.242:14578] 找不到文件 [/home/miverali/public_html/domain.com/404.shtml]

2016-06-17 03:05:04.050 [INFO] [124.253.119.242:14578] 找不到文件 [/home/miverali/public_html/domain.com/application/index.php]

2016-06-17 02:59:32.621 [信息] [178.63.13.15:27365] 找不到文件 [/home/miverali/public_html/domain.com/404.shtml]

2016-06-17 02:59:32.621 [信息] [178.63.13.15:27365] 找不到文件 [/home/miverali/public_html/domain.com/robots.txt]

2016-06-17 02:55:47.575 [信息] [5.9.73.227:50935] 找不到文件 [/home/miverali/public_html/domain.com/404.shtml]

2016-06-17 02:55:47.575 [INFO] [5.9.73.227:50935] 找不到文件 [/home/miverali/public_html/domain.com/robots.txt]

4

2 回答 2

1

由于数据库驱动程序没有响应,我遇到了这个问题。

application/config/database.php


如果codeigniter 3.0-(小于3.0)

$db['default']['dbdriver'] = ''; # Change to mysqli

如果codeigniter 3.0+(大于3.0)

'dbdriver' => '', #  Change to mysqli
于 2016-06-16T16:47:47.877 回答
0

以为我会回复这个,因为当我在寻找答案时,它在搜索中排名靠前......

当我看到白屏时,我通过查看 Chrome 上的控制台找到了答案。只有这个错误:

Failed to load resource: net::ERR_CONTENT_DECODING_FAILED

解决方案是转到配置文件 ( /application/config/config.php) 并找到$config['compress_output']. 在我的情况下,这被设置为 TRUE - 更改为 FALSE,你可能会很高兴......

于 2019-12-27T23:35:34.240 回答