【问题标题】:FUEL CMS admin gives error 404FUEL CMS 管理员给出错误 404
【发布时间】:2015-03-17 13:13:35
【问题描述】:

我将 Fuel CMS 安装到 ubuntu 服务器,但无法打开 FUEL 管理员。当我打开 http://(我的 ip)/fuel/ 时,欢迎使用 Fuel CMS 1.2.1 版“入门”页面显示正常。我也安装了数据库。 http://(我的 ip)/phpmyadmin 有效(phpmyadmin 在 /var/lib/ 上)。但是,http://(我的 ip)/fuel/ 重定向到 http://(我的 ip)/fuel/start,并给出 404 错误。

我尝试编辑 .htaccess 和 apache 配置文件,但没有成功,并多次重新启动 apache,所以现在我没有想法了。

我将在下面列出有关我的配置的信息。是不是我遗漏了什么,或者还有什么问题?

我的 apache 配置:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        <Directory "/var/www/html">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
        </Directory>


        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Mod 重写已开启。至少,当我尝试启用它时,它会这样说:模块重写已启用

燃料安装树是这样的:

/var/
| -- www
|  | -- html
|  |   | -- assets
|  |   |    |-- cache
|  |   |    |-- css
|  |   |    |-- docs
|  |   |    |-- images
|  |   |    |-- js
|  |   |    |-- pdf
|  |   |    |-- swf
|  |   | -- fuel
|  |   |    |-- application
|  |   |    |-- codeigniter
|  |   |    |-- data_backup
|  |   |    |-- install
|  |   |    |-- licenses
|  |   |    |-- modules
|  |   |    |-- scripts

我的 htaccess(来自 /var/www/html)看起来像这样(我也尝试过 RewriteRule .* index.php?/$0 [L])但没有运气:

Options +FollowSymLinks

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /html/

        <Files .*>
                Order Deny,Allow
                Deny From All
        </Files>

        # Allow asset folders through
        RewriteRule ^(fuel/modules/(.+)?/assets/(.+)) - [L]

        # Protect application and system files from being viewed
        RewriteRule     ^(fuel/install/.+|fuel/crons/.+|fuel/data_backup/.+|fuel/codeigniter/.+|fuel/modules/.+|fuel/application/.+) - [F,L]


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

        RewriteRule .* index.php/$0 [L]

        # Prevents access to dot files (.git, .htaccess) - security.
        RewriteCond %{SCRIPT_FILENAME} -d
        RewriteCond %{SCRIPT_FILENAME} -f
        RewriteRule "(^|/)\." - [F]

</IfModule>
Options -Indexes

【问题讨论】:

    标签: fuelcms


    【解决方案1】:

    我也遇到过类似的问题。

    • 打开您的根 .htaccess
    • 转到第 5 行并将 RewriteBase 的值更改为 / 它应该是这样的

    重写引擎开启 重写基础/

    【讨论】:

      【解决方案2】:

      在fuel/application/config/MY_fuel.php 中,$config['admmin_enabled'] 是否设置为TRUE

      【讨论】:

        【解决方案3】:

        我在 Windows 上全新安装 apache2 时遇到了类似的问题。我的 phpinfo 说 mod_rewrite 已启用,但我发现并非所有 httpd.conf 都设置为 mod_rewrite。

        我按照http://www.webdevdoor.com/php/mod_rewrite-windows-apache-url-rewriting/ 上的步骤操作,它解决了我的问题。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2018-12-29
          • 1970-01-01
          • 2015-02-15
          • 1970-01-01
          • 2011-04-21
          • 2018-01-17
          相关资源
          最近更新 更多