Part of the EllisLab Network

Bug Report

“config.php doesn’t exist” False-error given on Linux LocalHost

Date: 07/26/2007 Severity: Major
Status: Bogus Reporter: psylence
Version: 1.5.4
Keywords: Libraries, Config Class
Forum Thread: http://codeigniter.com/forums/viewthread/57324/

Description

What I mean by “false-error” is that Im recieving the error when I shouldn’t be. Im running a Linux Local-Host with apache 2.2.4 and php 5.2.3.

I did a fresh-install of CodeIgniter 1.5.4, used my browser to go to the directory where I had the fresh install, and recieved the following error:

“The configuration file config.php does not exist.”

I double-checked to make sure the file was in the correct directory, and checked the path that get_config() was trying to load, and it was all correct.

I then installed a Local-host on my windows platform, did a fresh install, and CodeIgniter worked fine.

Expected Result

Actual Result

Comment on Bug Report

Page 1 of 1 pages
Posted by: Derek Jones on 26 July 2007 6:10pm
Derek Jones's avatar

This doesn’t sound like a bug, as it’s affecting your server only.  file_exists() can fail for a number of reasons.  Improper permissions and/or file ownership are the likely causes.  Check to make sure that your server is not operating PHP in “safe mode”, and that the file permissions are such that your script has read access to the file AND directories.

Posted by: coolfactor on 26 July 2007 6:27pm
coolfactor's avatar

I agree with Derek. I spent a good deal of time trying to solve this issue with you, psylence. Just because we didn’t get it work doesn’t mean this is a bug with CodeIgniter. I have over 30 web sites built using CI and never encountered this problem. My sites run on Linux and OS X.

As Derek suggested, check the file permissions. Make sure Apache has read access to the directories and files.

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?