Reputation: 2218
I plan to use Bonfire 0.7 in my new project but I can't get to install it. I've downloaded the master package and unzipped it into the www
folder of my Wamp Server. The landing page tells me to manually create database and set the config files. I've done it as required but when I click the continue button it redirects me to http://localhost/public
which obviously gives the error The requested URL /public/ was not found on this server.
Is this an .htaccess
problem? The site documentation says The web root should point to the /public folder. How should I do that? I know I'm doing something terribly wrong for which there might be a simple obvious explanation but what? Please help!
Edit: When I manually go to http://localhost/bonfire/public
it redirects me to http://localhost/bonfire/index.php/install
which is the same page as the landing page where clicking on continue button again redirects to http://localhost/public
.
Upvotes: 0
Views: 4257
Reputation: 1
Please try this. It works for me.
Edit the index.php
file under bonfire-master
folder.
Add the sub folder path index.php
file like this
$install_url = 'http'.((empty($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off')?'':'s') .'://'. $_SERVER['SERVER_NAME'] .'/{sub folder name}/public/';
Replace the sub folder name with your sub folder.
Then rename 1.htaccess
to .htaccess
file under public folder and search for Rewrite Base
Add the sub folder path there .
That should fix the issue.
Upvotes: 0
Reputation: 2218
After a lot of head-banging I finally solved it by installing Bonfire on XAMPP instead of WAMP and is now working like a charm. Don't know if this counts as a solution at all but whatever. I don't know what kind of grudge Bonfire has with WAMP.
Upvotes: 0
Reputation: 11
Ali your application is in the bonfire subfolder on the root. Move all the files inside the bonfire
folder to the www
folder. Installation document on cibonfire website has the details.
Note: by moving the bonfire application to the root www
, you won't be able to run other web applications. It is better to keep applications in subfolders on WAMP. If this is what you decide, change the config.php
(/application/config/) and .htaccess
accordingly. The bonfire forum has details.
Upvotes: 1