【问题标题】:Error "No input file specified.", After update PHP Version on server from 5.3.3 to 5.6 for codeigniter on server错误“未指定输入文件。”,将服务器上的 PHP 版本从 5.3.3 更新到 5.6 以用于服务器上的 codeigniter
【发布时间】:2017-09-01 03:11:41
【问题描述】:

在将 PHP 5.3.3 更新到 5.6 以用于 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 错误

【问题讨论】:

  • 尝试在 .htaccess 中添加重写库。 check这个

标签: php .htaccess codeigniter


【解决方案1】:

首先检查数据库连接并尝试使用 127.0.0.1 而不是 localhost

【讨论】:

    猜你喜欢
    • 2018-09-20
    • 2014-08-20
    • 1970-01-01
    • 2021-04-27
    • 1970-01-01
    • 1970-01-01
    • 2016-07-28
    • 2017-08-17
    • 1970-01-01
    相关资源
    最近更新 更多