简体   繁体   English

CI Bonfire:无法从安装的第一步开始

[英]CI Bonfire: Can't proceed from first step in installation

I plan to use Bonfire 0.7 in my new project but I can't get to install it. 我计划在新项目中使用Bonfire 0.7 ,但无法安装它。 I've downloaded the master package and unzipped it into the www folder of my Wamp Server. 我已经下载了主软件包并将其解压缩到Wamp Server的www文件夹中。 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. 我已经按要求完成了操作,但是当我单击“继续”按钮时,它会将我重定向到http://localhost/public ,这显然给出了错误消息The requested URL /public/ was not found on this server.

Is this an .htaccess problem? 这是.htaccess问题吗? The site documentation says The web root should point to the /public folder. 站点文档说Web根目录应该指向/ public文件夹。 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 . 编辑:当我手动转到http://localhost/bonfire/public它将我重定向到http://localhost/bonfire/index.php/install ,该页面与登录页面位于同一页面,在该页面上,再次单击继续按钮,重定向到http://localhost/public

Ali your application is in the bonfire subfolder on the root. 阿里您的应用程序位于根目录下的bonfire子文件夹中。 Move all the files inside the bonfire folder to the www folder. bonfire文件夹内的所有文件移动到www文件夹。 Installation document on cibonfire website has the details. cibonfire网站上的安装文件中有详细信息。

Note: by moving the bonfire application to the root www , you won't be able to run other web applications. 注意:通过将bonfire应用程序移动到根www ,您将无法运行其他Web应用程序。 It is better to keep applications in subfolders on WAMP. 最好将应用程序保留在WAMP的子文件夹中。 If this is what you decide, change the config.php (/application/config/) and .htaccess accordingly. 如果您决定这样做,请相应地更改config.php (/ application / config /)和.htaccess The bonfire forum has details. 篝火论坛上有详细信息。

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. 经过大量的努力之后,我终于在XAMPP而不是WAMP上安装Bonfire来解决了这个问题,现在它就像是一种魅力。 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. 我不知道篝火对WAMP有什么怨恨。

Please try this. 请尝试这个。 It works for me. 这个对我有用。

Edit the index.php file under bonfire-master folder. 编辑bonfire-master文件夹下的index.php文件。

Add the sub folder path index.php file like this 像这样添加子文件夹路径index.php文件

$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 然后将1.htaccess重命名为1.htaccess下的.htaccess文件并搜索Rewrite Base

Add the sub folder path there . 在此处添加子文件夹路径。

That should fix the issue. 那应该解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM