Problems with .htaccess and 404 "Dashboard not found"

2»

Comments

  • edited 2:41AM
    That error message appears when it can't connect to the Database. If you are certain that the info in your fuel/application/config/database.php file is correct, then I would make sure to check that your MySQL server is properly running and that PHP can connect to it. You may even try just doing a simple basic PHP script to connect to the database like so:
    <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?>
  • edited 2:41AM
    I'm finally happy to say that I was able to connect, and can now see the Dashboard. Onward!!!

    Thanks for you help!

    - B
  • edited 2:41AM
    Great... let us know if you need anything else.
  • edited 2:41AM
    Hi, I'm having trouble viewing the dashboard when I have installed Fuel in a subdirectory as well. I have tried many combinations of the above, but here's what I have right now.

    I have CodeIgniter installed in the subdirectory /CodeIgniter/ if that matters at all.

    I have edited config.php to:

    $config['index_page'] = "";

    I have edited MY_Fuel.php to:

    $config['admin_enabled'] = TRUE;

    And my .htaccess reads:

    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt)
    RewriteRule ^(.*)$ /index.php/$1 [L]
    RewriteBase /fuel

    And I ran the SQL query.

    Thanks in advance for your help. I am excited to use your product!
  • edited 2:41AM
    What happens if you use the .htaccess file that came with the download and just change the RewriteBase on line 4 to the subdirectory you installed it in (e.g. RewriteBase /my_fuel_site/?

    I'm assuming you've been able to use .htaccess before on CodeIgniter sites?
  • edited 2:41AM
    As you suggested, I changed my .htaccess file to:

    Options +FollowSymLinks

    RewriteEngine On
    RewriteBase /fuel/


    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/.+|\.git.+) - [F,L]


    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule .* index.php/$0 [L]

    Options -Indexes

    I get the "A database error has occurred" error.

    I was able to get into the dashboard by changing my config.php file to:

    $config['index_page'] = "index.php";

    And my MY_fuel.php file to:

    $config['fuel_path'] = 'fuel/';

    And removing the RewriteBase line from my .htaccess file.

    Thanks so much for your help! On a Sunday no less! I would love for the ugly index.php to be gone from my web structure, but I plan on getting a domain exclusively for my Fuel installation once I have it up and running.
  • edited 2:41AM
    Is the database error because of the database.php config file not being setup? Also, the fuel_path configuration value most likely doesn't need to be changed unless you want to change the name of how you access fuel (e.g. "http://www.myfuelsite.com/admin" instead of "http://www.myfuelsite.com/fuel"). That value is not related to the subfolder you installed FUEL in on your server (in case that may have been changed and thus contributing to your issue).
  • edited March 2012
    Hi!

    I'm trying to install fuel but it doesn't work for me.

    i'm under macos x Lion.

    Fuel folder under www/ is /fuel_cms/

    I modified .htaccess like this:
    Options +FollowSymLinks

    RewriteEngine On
    RewriteBase /fuel_cms


    Order Deny,Allow
    Deny From All


    # Allow asset folders through
    RewriteRule ^(fuel/modules/(.+)?/assets/(.+)|fuel/crons/.+|fuel/data_backup/.+) - [L]

    # Protect application and system files from being viewed
    RewriteRule ^(fuel/install/.+|fuel/codeigniter/.+|fuel/modules/.+|fuel/application/.+|\.git.+) - [F,L]


    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule .* index.php/$0 [L]

    Options -Indexes

    I got a 404 not found blank page error.

    If I modify $config['index_page'] with "index.php" I got a 404 error from fuel not blank like before, but no admin page.

    I have mod_rewrite enabled and everything seems to be fine.

    Have any idea ?

    Thank you
    Brice
  • edited 2:41AM
    Problem solved.
    I had to put an alias in my http.conf !

    Like this:
    Alias /site_name/ /Users/brizoo/Sites/site_name/


    DirectoryIndex index.php
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    Allow from all


    Thank you !

    Great CMS, I love it
  • edited 2:41AM
    hi any one help please !!!!
    i have issue in .htaccess
    in localhost using xamp work perfect but in online server i have face some issue

    load default controller perfect
    http://babulhawaijmatamdari.com/admin

    but using this way they show me error ( The requested document was not found on this server. )
    http://babulhawaijmatamdari.com/admin/login

    but using this way work good
    http://babulhawaijmatamdari.com/admin/index.php/login/


    so what we do ?????
  • edited 2:41AM
    Is your RewriteBase in the .htaccess set to / ?

    If so, make sure .htaccess and the mod_rewrite module is enabled for Apache on the server.
  • edited 2:41AM
    i also use RewriteBase but not work for me

    this is my .htaccess file on admin folder

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ index.php?/$1 [L]


    i have no access to check apache on server :/ but administrator of server sad me its enable
  • edited 2:41AM
    What if you remove the "?" from after .php:
    RewriteRule ^(.*)$ index.php/$1 [L]
Sign In or Register to comment.