错误“未指定输入文件。”,在服务器上从服务器上的codeigniter更新服务器上的PHP版本(5.3.3到5.6)

时间:2017-04-06 08:03:19

标签: php .htaccess codeigniter

在更新PHP 5.3.3到5.6 for codeigniter后,我收到错误,“未指定输入文件”。 我的.htaccess文件是

Options +FollowSymLinks
Options +Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|satellizer|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

php_flag short_open_tag on

我的database.php就是这个......

$active_group = 'default';
$query_builder = TRUE;

$db['default'] = array(
    'dsn'   => '',
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => '',
    //'database' => 'dod_live',
    'database' => 'copy_dogonde_dod',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
);

数据库现在也没有连接到mysqli错误

1 个答案:

答案 0 :(得分:0)

首先检查数据库连接,然后尝试127.0.0.1而不是localhost