Hey there - I am trying to install Fuel but all I get is a redirect loop after completing all the steps. The redirect is to /dashboard. I took the code from the head of the GitHub branch. I'm running a standard local Apache setup with XAMPP on a Mac. Am I missing something? Did I download the wrong code?
Comments
In .htaccess I have:
RewriteBase /hotfrets
In the Apache error log file I see this:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
The fuel/index.php file has this:
header('Location: dashboard');
In wamp\bin\apache\Apache2.2.17\conf\extra\httpd-vhosts.conf I have:
DocumentRoot /wamp/www/hotfrets
ServerName hotfretsnew.com
In Windows\System32\drivers\etc\hosts I have:
127.0.0.1 hotfretsnew.com
When I enter http://hotfretsnew.com in the url I get the install page. But when I go to /fuel I get this error in the browser window:
******************
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
*******************
When I look in the Apache error log file I see what is listed above.
I've set up the database and permissions on all appropriate folders.
Any idea what might be missing here?
I was wanting to use a virtual host rather than just appending the name of the folder to localhost so the RewriteBase needed to be just "/". What I didn't realize was that if you don't have any other virtual hosts set up in your http-vhosts.conf file the one that's there pretty much becomes the default site.
So, whether you entered http://hotfretsnew.com or http://localhost you'd get the hotfretsnew site. I had the following in the vhosts file:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /wamp/www/hotfrets/ ServerName hotfretsnew.com </VirtualHost>
All I had to do to fix it was add the main site as the first vhost and it works now:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /wamp/www/ ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot /wamp/www/hotfrets/ ServerName hotfretsnew.com </VirtualHost>
I hope this helps someone else. By the way, for anyone reading this who doesn't know where to find httpd-vhosts.conf, WAMP installed that file here on my machine:
C:\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-vohosts.conf