【问题标题】:Site on remote server: "No input file specified."远程服务器上的站点:“未指定输入文件。”
【发布时间】:2012-04-26 14:22:15
【问题描述】:

我的网站使用前端 Flash 和后端 Kohana。我的后端面板在本地工作。但是在远程服务器上打开管理面板时,出现了这个问题:

“未指定输入文件。”

我该如何解决这个问题?

已编辑:

这是我的 .htaccess 文件:

# Turn on URL rewriting
RewriteEngine On
# Put your installation directory here: If your URL is www.example.com/, 
# use / If your URL is www.example.com/kohana/, use /kohana/
RewriteBase /
# Do not enable rewriting for files or directories that exist

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d

# For reuests that are not actual files or directories, Rewrite to 
# index.php/URL

#RewriteRule ^/$ /index.php?langKey=$1 [QSA]
RewriteRule ^(.*)$ /index.php/$1 [PT,L]

当我写 mysite.com/index.php/admin 后端工作。但我想要 mysite.com/admin

【问题讨论】:

  • 我打赌你使用的是 Godaddy 的主机 :)

标签: php flash .htaccess kohana


【解决方案1】:

尝试把最后一行改成

RewriteRule .* /index.php?kohana_uri=$0 [QSA]

它在 apache php-fcgi 配置上对我有用。

【讨论】:

    【解决方案2】:

    此消息表示您看不到站点目录。确定 index.php 存在并且它是可读的。 在一些 nginx 配置中也没有使用 .htaccess

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-20
      • 1970-01-01
      • 2021-08-11
      • 1970-01-01
      • 2013-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多