【问题标题】:How To Remove System Directory Does Not Exist如何删除系统目录不存在
【发布时间】:2017-02-01 13:48:39
【问题描述】:

我正在尝试安装基于 Kohana 的脚本,但出现错误,请参见上图

Error

我找不到要做什么,但我是 Sue,它与 .Htaccess 相关

  SetEnv KOHANA_ENV development

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>


# Disable directory listing
Options -Indexes 


<IfModule mod_rewrite.c>

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>


# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
# RewriteRule .* index.php/$0 [PT]
RewriteRule .* index.php [PT]

# Remove trailing slash
# RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L]
# RewriteRule ^(.+)/$ /$1 [R=301,L]
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.+)/$ $1 [L,R=301]

</IfModule>

<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

根据脚本所有者,他们说执行第 3 步 运行安装程序

打开 .htaccess 并进行以下更改:

设置正确的 RewriteBase

但我不知道该写什么和编辑什么我需要一些帮助

【问题讨论】:

  • 您的屏幕显示光盘错误,不是网络配置错误。

标签: .htaccess kohana


【解决方案1】:

该错误表示applicationmodulessystem 文件夹与index.php 不在同一目录中。如果您已移动/重命名它们,则需要更改它们在 index.php 中的位置。

如果您不小心删除/修改了某些内容,请再次尝试下载 Kohana,显然该错误与 .htaccess 无关。 欲了解更多信息,请阅读文档https://kohanaframework.org/3.3/guide/kohana/install

【讨论】:

    猜你喜欢
    • 2021-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-02
    • 2016-07-16
    • 2015-08-07
    相关资源
    最近更新 更多