FUEL CMS admin给出错误404

时间:2015-03-17 13:13:35

标签: fuelcms

我将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

3 个答案:

答案 0 :(得分:3)

我遇到了类似的问题。

  • 打开你的根.htaccess
  • 转到第5行并将RewriteBase的值更改为/ 它应该看起来像这样

        RewriteEngine On         RewriteBase /

答案 1 :(得分:1)

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

答案 2 :(得分:0)

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

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