0

Just trying to set up a new bonfire install. I've finished the install process and when I launch the site, I get the welcome page no problem. But when i click on the sign in button, i get the following error message:

The requested URL /index.php was not found on this server. Apache/2.2.22 (Ubuntu) Server at localhost Port 80

The URL looks like:

 http://myserver/testsite/login

At one point during the install, i got the following messages:

Please set the .htaccess RewriteBase setting to: RewriteBase /testsite/ Please remove the install folder and return to Bonfire

I've done a "find / -name .htaccess" on my box and it found a few:

/var/www/testsite/.htaccess
/var/www/testsite/install.old/.htaccess
/var/www/testsite/bonfire/application/.htaccess
/var/www/testsite/bonfire/application/cache/.htaccess
/var/www/testsite/bonfire/codeigniter/.htaccess

I've tried changing the one in /var/www/testsite cuz it seemed to be the main one. But I'm still getting the same error message. Any suggestions would be appreciated.

4

2 回答 2

0

假设mod_rewrite已启用,请不要忘记在 .htaccess 文件中将其打开:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /testsite/
</IfModule>

如果您认为它可能未打开,请运行以下命令:

sudo a2enmod rewrite
sudo service apache2 reload
sudo service apache2 restart
于 2013-08-23T00:47:48.500 回答
0

我必须将以下行添加到文件中

/var/www/bonfire/application/config/config.php

代码:

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

谢谢。

于 2013-08-23T00:50:11.813 回答