Installation Problem - Can't Forward to /fuel/start
I've tried installing the most recent version of FUEL (cloned from github). I've followed the directions that appear, but upon trying to access XXX.XXX.XX.XX/fuel it tries to redirect me to /fuel/start which it cannot find. My base installation is at /var/www/FUEL-CMS. This is setup as my apache root. It appears that this file exists, but while /fuel exists at /var/www/FUEL-CMS fuel/start only exists at /var/www/FUEL-CMS/fuel/modules/fuel/controllers/start.php. I'm imagining something is not right with the htaccess files, but I'm not quite sure as according to my understanding of codeigniter all of the files should be at /var/www/FUEL-CMS/application/controllers/*. My htaccess file in /var/www/FUEL-CMS looks like:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /var/www/FUEL-CMS/
Order Deny,Allow
Deny From All
# 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]
Options -Indexes
Making adjustments to this seems to directly affect my site, so it should be activated. This seems to be a common issue (
https://github.com/daylightstudio/FUEL-CMS/issues/242), but their fix did not work for me. Thanks!
Comments
Options +FollowSymLinks
RewriteEngine On
RewriteBase /FUEL-CMS (or whatever)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php?/$0 [L]
This is a common configuration issue with CodeIgniter in general and .htaccess.
What confuses me though is how would any of these forward me to the modules directory while simultaneously allowing the use of the typical codeigniter structure where the files are stored in /fuel/applications/controllers while the start.php file is located somewhere completely differently: /fuel/modules/fuel/controllers/start.php
Options +FollowSymLinks
RewriteEngine On
RewriteBase /FUEL-CMS/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php?/$0 [L]
Options -Indexes
my login page not working
Do you own the server? Are you sure mod_rewrite is installed?
Try just remarking out the RewriteBase line...
# RewriteBase /
RewriteBase /FUEL-CMS-master/
If that doesn't work, then you should check that mode_rewrite and .htaccess is enabled for your Apache server.
The thing that caught me out while setting up is that I had skipped the last step of the installation process, in fuel/application/config/MY_fuel.php you need to change this line to set the value to TRUE: If you don't do this, the admin's controllers will all throw 404s.
It seems to me that this is an easy mistake to make because the default view's install instructions seemed to always jumped to the bottom when they loaded, which implied to me somehow that these steps were complete (which wasn't true), so I only sort of skimmed them.
Installed to 127.0.0.1/fuel-cms so .htaccess > RewriteBase should be "fuel-cms" ...