我在ubuntu服务器上安装了Fuel CMS,但无法打开FUEL admin。当我打开http:// (my ip)/ Fuel /时,欢迎使用Fuel CMS Version 1.2.1 "Getting started“页面显示良好。我还安装了数据库。(我的ip)/phpmyadmin工作(phpmyadmin在/var/lib/上)。但是,http:// (my ip)/fuel/重定向到http:// (my 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?/$0L),但没有成功:
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发布于 2016-03-15 06:30:23
我也遇到过类似的问题。
RewriteEngine On RewriteBase /发布于 2015-03-19 02:47:24
在fuel/application/config/MY_fuel.php中,是否将$config['admmin_enabled']设置为TRUE
发布于 2015-03-30 02:29:52
我在Windows上全新安装apache2时也遇到了类似的问题。我的phpinfo显示mod_rewrite已启用,但我发现并不是所有的httpd.conf都为mod_rewrite设置正确。
我按照http://www.webdevdoor.com/php/mod_rewrite-windows-apache-url-rewriting/上的步骤操作,它解决了我的问题。
https://stackoverflow.com/questions/29100024
复制相似问题