0
votes

I am having this fatal error and warning on my first Codeigniter attempt:

Fatal error: require_once() [function.require]: Failed opening required 'C:/xampp/htdocs/codeigniter/core/CodeIgniter.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\admin\index.php on line 202

What would cause this? I'm not sure where to begin to look.

3
please post what is on "C:\xampp\htdocs\admin\index.php on line 202"tomexsans

3 Answers

0
votes

are you using the index.php as the default index page of your project?

if not use .htaccess file and also edit the config.php file in the /project/config folder

make sure about all your routes are declared correctly in your configuration files like: routes.php etc.

1
votes

In your terminal change permission of your folder project :

sudo chmod -R 755 project_path/

I hope that's will be work for you.

0
votes
 RewriteEngine On

# Put your installation directory here:
# If your URL is www.example.com/, use /
# If your URL is www.example.com/site_folder/, use /site_folder/

RewriteBase /project_folder_name

# Do not enable rewriting for files or directories that exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# For reuests that are not actual files or directories,
# Rewrite to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]  

the .htaccess looks like this.