我将 Fuel CMS 安装到 ubuntu 服务器,但无法打开 FUEL 管理员。当我打开 http://(我的 ip)/fuel/ 时,欢迎使用 Fuel CMS 1.2.1 版“入门”页面显示正常。我也安装了数据库。http://(我的 ip)/phpmyadmin 有效(phpmyadmin 在 /var/lib/ 上)。但是,http:// (my ip)/fuel/ 重定向到 http:// (my ip)/fuel/start,并给出 404 错误。
我试图编辑 .htaccess 和 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>
模组重写开启。至少,当我尝试启用它时,它会这样说:模块重写已启用
燃料安装树是这样的:
/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