[eluser]dilettante[/eluser]
Hi everyone,
I'm going through my first CodeIgniter installation and setting up my first application. My application page comes up, but as soon as I try to hit a button, this comes up:
Code:
Warning: require_once(/var/www/system/codeigniter/CodeIgniter.php) [function.require-once]: failed to open stream:
No such file or directory in /var/www/index.php on line 115
Fatal error: require_once() [function.require]: Failed opening required
'/var/www/system/codeigniter/CodeIgniter.php'
(include_path='.:/usr/share/php:/usr/share/pear') in /var/www/index.php on line 115
I installed index.php, system, and application all at /var/www/search. I've tried putting application within system, but that doesn't seem to change anything. For some reason the correct path doesn't seem to work here (the last line is 115 in index.php). It looks like it expects application to be inside system, but in that case I don't understand why moving application there doesn't help.
Code:
define('BASEPATH', $system_folder.'/');
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ($application_folder == '')
{
$application_folder = 'application';
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
My config.php has the following:
Code:
$config['base_url'] = "http://www.domain.com/search/";
$config['index_page'] = "";//index.php
$config['uri_protocol'] = "AUTO";
In index.php, I've left system at "system" and application at "application". I've tried the "../system" mentioned on other posts, which just makes the entire application page go away.
Finally, for good measure, here's my directory stuff in Apache.
Code:
<Directory /var/www/search>
Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /search/
ErrorDocument 403 /index.php/403/
ErrorDocument 404 /index.php/404/
ErrorDocument 500 /index.php/500/
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
I'm really stumped. Obviously, index.php isn't using the right path to codeigniter.php, but I can't figure out why. Any help much appreciated!