2017-04-06 122 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

是啊它現在工作謝謝:) –