2017-04-06 124 views
0

在更新PHP 5.3.3到5.6后,服务器上出现“没有指定输入文件”错误笨。 我的.htaccess文件是错误“没有指定输入文件”,在服务器上更新服务器上的PHP版本从5.3.3到5.6代码服务器上的服务器

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的错误

+0

尝试在.htaccess中添加重写基础。 [检查](http://stackoverflow.com/questions/1557258/htaccess-problem-no-input-file-specified)这 –

回答

0

检查数据库连接,并尝试127.0.0.1而不是本地主机

+0

是啊它现在工作谢谢:) –