Problems with .htaccess and 404 "Dashboard not found"
Two Problems following the Getting Started Instructions
1. Alter your Apache .htaccess file to the proper RewriteBase directory. The default is your web servers root directory. If you do not have mod_rewrite enabled you will need to change the $config['index_page'] from blank to 'index.php'
I cannot find where to change the $config['index_page'] from blank to 'index.php'. What document is this?
6. WARNING: Make sure the data_backup folder and crons folder is inaccessible to the web. The .htaccess file that comes with FUEL, blocks the fuel/data_backup and fuel/cron folders by default
I cannot find the .htaccess file that comes with FUEL. Where is it once the ZIP file has been unzipped?
Dashboard Not Found
When I tried to access the FUEL Admin (Step #7), I get a 404 error: The requested URL /FUEL-CMS/fuel/dashboard was not found on this server. There is no dashboard folder in the ZIP file, nor does one appear to have been created from the instructions I followed.
Comments
The $config['index_page'] parameter is in the fuel/application/config/config.php file
I think if you get those things rectified, your 404 error will go away. There is no dashboard folder because it uses mod_rewrite to route everything through the index.php file. The actual path to the file is FUEL-CMS/index.php/fuel/dashboard. Let me know how it goes.
I've noticed people having problems installing the FUEL in a folder within a domain.
If the installation was done within a folder in the field, then you should comment out the line in the file .htaccess
#RewriteBase /
Look at your log and check APACHE, for surely he could be trying to get the file "index.php" from the root folder of the domain and not the folder where the files FUELCMS.
For example, I was using XAMPP on Windows.
My web ROOT is: http://127.0.0.1:8080/
But the folder with the files were in FUEL: http://127.0.0.1:8080/TORTOISE/FUEL-CMS
APACHE checked the logs and had the following feedback:
[Thu Dec 02 00:08:07 2010] [error] [client 127.0.0.1] script 'D:/www/index.php' not found or unable to stat, referer: http://127.0.0.1:8080/TORTOISE/FUEL-CMS/
In my case it was sufficient to comment out the line:
#RewriteBase /
---- (Excuse my English)
Att.
Jeff_DrumgoD
Later
Bryan
-Justin
on our test site ive got an instance of fuel cms going with just a few changes.. im having the same issue getting into the fuel admin area. ive commented out the rewrite on the root. ive also set $config['index_page'] = "index.php";
i must be missing something simple
great product btw.
1. Got to the fuel/application/config/config.php file and change
$config['index_page'] = 'index.php?'; // Note the question mark at the end
2. In the same config file, right below the index_page config item, change $config['uri_protocol'] = 'QUERY_STRING';
Here is a link that may help as well regarding this similar issue:
http://stackoverflow.com/questions/2641627/codeigniter-404-cant-find-index-php-only-on-real-server-not-on-virtual-server
RewriteRule .* index.php/$0 [L]
to
RewriteRule .* index.php?/$0 [L]
If not, are you familiar with CodeIgniter (http://codeigniter.com) and have you been able to get it successfully installed in the past using .htaccess?
When i push the login button it refresh the page but doesn't take me to anywhere but the login page again. How can i fix it?
I have the same probem. Since yesterday I had the .htaccess disabled and I was able to test the project, but now I move all the files to a testing machine with apache and mod_rewrite enablel, so I would like to use it.
I put the application inside a subdir named 'admin' (because I'm using fuel to build the web site's cms, and not the front-end) and here I put .htaccess file with the following lines:
RewriteBase /sitename/admin/
so, my address would be
http://192.168.0.100/sitename/admin/fuel
but I get the 404 error.
I tried with
RewriteBase /sitename/ or RewriteBase /
but it doesn't work.
I tried to add the following line
RewriteRule .* index.php?/$0 [L]
and what I get is the right login page, but the relative path to css, js, images and other stuffs are obviously wrong, so I can't display the page correctly. I don't know how can I do to work with mod_rewrite correctly. Can you give me some advice ?
By the way, I hope that with mod_rewrite enabled, the pagination will work, because now , working without mod_rewrite, I have more than 25 records, and if I go to the second page my url is
http://localhost/sitename/admin/index.php?/fuel/gigs/items/offset/25
but the application still shows the first 25 records
1. What is the path for the broken assets?
2. What happens if you change the uri_protocol in the config to one of the other options?
3. What kind of dev environment (MAMP, WAMP, etc)?
The pagination issue looks like it was a regression bug that I've just posted a fix for:
https://github.com/daylightstudio/FUEL-CMS/commit/e3f70b2d580163ac0ada90c568f61e21c0f348e3
2 I get the same result, with or without the line RewriteRule .* index.php?/$0 [L]
3 I'm using MAMP
About the fix..now, it works like a charm :-) great!
Sorry, on my testing machine, I've realized that I was using the wrong .htaccess.
With the right file all works as well in my localhost server.
But when I pubblish the project to the web space provided by my ISP, keeping the original .htaccess, I get the 500 error.
I've solved the problem, by commenting the first and the last line
Options +FollowSymLinks
Options -Indexes
I hope that this will be useful to other developers.
Thank you for your support and for your job. It's a great product!
Paolo
After making all of the suggested changes, the installation is not working for me (*sigh*). On both my server directory where I installed the .htaccess file, fuel and access folders (http://millsinteractivedesign.com/fuel/dashboard), and localhost/index.php/fuel, I'm getting a 404 Not Found error!
I'm fairly new to all of this server config stuff, as I am a Web Designer with little experience dealing with the backend. I want to learn, but need to learn fast!!!
FYI...I'm running Mac OS X Snow Leopard, and I'm using MAMP to manage Apache and MySQL. One thing I noticed in MAMP, is that while MySQL is running, Apache is not. Here's the kicker, when I load http://localhost, "It works!".
Dazed and confused...needing a hand to hold.
Thanks in advance!
- B
http://codeigniter.com/user_guide/general/controllers.html
<?php class Test extends CI_Controller { public function index() { echo 'Hello World!'; } } ?>
For example, you create a controller named test with an index method and are able to browse to it either by localhost/index.php/test or localhost/test (if .htaccess is working).
I did a re-install, following the same steps, and I'm no longer getting the previous 404 Not Found error. However, I'm now getting a message indicating a Database Error:
//A Database Error Occurred
//Unable to connect to your database server using the provided settings.
//Filename: third_party/fuel/Loader.php
//Line Number: 134
I can't locate the file that it's referencing. And I'm using the same info to connect to my DB that I used when installing CI, in the database.php file.
Any ideas what's causing this? Here's the URI being generated:
http://millsinteractivedesign.com/index.php?/fuel/login/4c325a315a577776
Thanks again!