Stuck on Installation Possible Issues with .htaccess?
I have am installing from the master download of Fuel CMS. I can get to the Getting Started screen and have made all suggested changes. Updated my RewriteBase to /fuelcms (package was uploaded to mydomain.com/fuelcms). .htaccess resides in this folder. mod_rewrite is enabled and is working.
When I click the link to go to admin I just get a blank page.
I have updated MY_fuel.php so that admin = TRUE and have installed the database.
I have looked through all the threads here including updating the config file with index.php? and also changing .htaccess to reflect that change. No matter what I do, I am always stuck with a blank page.
Comments
1. Are you able to browse to the page at mydomain.com/fuelcms/index.php?/fuel (with the index.php?... or with the index.php sans "?")
2. Are you able to get a normal CI 2.0 installation to work for you with a controller method?
3. What kind of stack are you running it on (LAMP, MAMP, XAMPP, WAMP)?
4. Is the page empty or if you view source is there content there?
2. I have a test installation of CI 2.0 installed at http://www.plumeriawebdesign.com/aes/ it's contains a small tutorial app from the CI website.
3. Running on LAMP
4. Page is empty, no source is generated at all.
What is your $config['uri_protocol'] value set to in the fuel/application/config/config.php?
What is your $config['index_page'] value set to in the fuel/application/config/config.php?
If you feel like getting your hands dirtier, what happens if you set the uri_protocol to "AUTO" (if it isn't already), and put some debug statements in the fuel/codeigniter/core/URI.php class and figure out which uri_protocol value it is actually using in the the _fetch_uri_string() method?
Here's the other setting $config['index_page'] = "index.php?";
Edited to add the following:
I changed the $config['index_page'] = "index.php?"; setting back to $config['index_page'] = "";
.htaccess looks like this:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /fuelcms
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]
Options -Indexes
With those settings I get a blank screen but at this URL http://www.plumeriawebdesign.com/fuelcms/fuel/dashboard
http://www.plumeriawebdesign.com/aes/
Can you create a test controller and method on it so I can test additional URI segments work with .htaccess (e.g. http://www.plumeriawebdesign.com/aes/test). This will help me understand if it is a server/CI issue or specific to FUEL itself.
I have tried to install it on 2 different server both linux with a clean install.
On a local install on Windows it works. Is it possible to be a CI naming related problem.
It is even stranger that on the same server I have an other site build on CI 2.0 that works without problems.
Update:
I have installed the same thing on an other linux server and it works. It seams a problem related to Ubuntu ad CI. I have no explanation on why the other CI install that I have works without problems on the ubuntu server.
After setting $config['log_threshold'] = 4; i get this in the error log:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
DEBUG - 2011-02-12 13:32:28 --> Config Class Initialized
DEBUG - 2011-02-12 13:32:28 --> Hooks Class Initialized
DEBUG - 2011-02-12 13:32:28 --> Utf8 Class Initialized
DEBUG - 2011-02-12 13:32:28 --> UTF-8 Support Enabled
DEBUG - 2011-02-12 13:32:28 --> URI Class Initialized
DEBUG - 2011-02-12 13:32:28 --> Router Class Initialized
The page in browser is still blank
PHP v. 5.2.9 is working ok
PHP v. 5.2.10 and 5.2.13 are not working resulting in blank page
PHP v. 5.3.2 is working ok
Again tested CI lastest version 2.0 and it works on all the above versions so the problem is somehow related to fuelcms.
http://dev.hype.ro/active/fuel/dashboard
gets me just back to the welcome page. Strange
http://www.getfuelcms.com/forums/discussion/comment/75/#Comment_75
$config['uri_protocol'] = "REQUEST_URI";
and .htaccess as follows:
RewriteRule .* index.php/$0 [L]
to
RewriteRule .* index.php?/$0 [L]
This allowed me to keep clean urls that did not contain the index.php?.