CodeIgniter Forums

Full Version: The configuration file ci/config/config.php does not exist.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear All,

propably it's a simple issue but I'm a bit confused why CI is throwing this error. "The configuration file ci/config/config.php does not exist."
I've checked the file and folder is at the given place.

In index.php I've set the application_folder to: $application_folder = dirname(__FILE__).'/ci';
This should the automatically look for config.php in ci/config/

The folder structure is this:
drwxrwxr-x  9 ubuntu ubuntu    4096 Jan 28 22:00 ./
drwxrwxr-x  8 ubuntu ubuntu    4096 Jan 18 20:59 ../
drwxrwxr-x  4 ubuntu ubuntu    4096 Jan 22 16:33 app/
drwxrwxr-x  6 ubuntu ubuntu    4096 Jan 28 22:21 ci/
drwxrwxr-x  2 ubuntu ubuntu    4096 Jan 28 21:25 css/
drwxrwxr-x  2 ubuntu ubuntu    4096 Jan 28 21:25 fonts/
drwxrwxr-x  3 ubuntu ubuntu    4096 Jan 28 21:26 img/
-rw-rw-r--  1 ubuntu ubuntu   11064 Jan 28 23:21 index.php
drwxrwxr-x  2 ubuntu ubuntu    4096 Jan 28 21:26 js/
-drwxrwxr-x 13 ubuntu ubuntu    4096 Jan 28 21:24 vendor/

I'm using composer and therefore CI is located under "vendor".

The "ci" Folder looks like this:
ci
├── config
│   ├── autoload.php
│   ├── config.php
│   ├── database.php
│   └── routes.php
├── controllers
│   └── Homr.php
├── logs
│   └── log-2018-01-28.php
└── views
    ├── errors
    │   ├── cli
    │   │   ├── error_404.php
    │   │   ├── error_db.php
    │   │   ├── error_exception.php
    │   │   ├── error_general.php
    │   │   ├── error_php.php
    │   │   └── index.html
    │   ├── html
    │   │   ├── error_404.php
    │   │   ├── error_db.php
    │   │   ├── error_exception.php
    │   │   ├── error_general.php
    │   │   ├── error_php.php
    │   │   └── index.html
    │   └── index.html
    ├── homr.php
    └── _template
        ├── footer.php
        └── header.php

Hope someone can give the right hint where to look.

Thx
eparser
I see no reason for this to happen.

Might be just cache if the path didn't exist before ... Try putting clearstatcache(TRUE); in index.php (just once, you can remove it after one run), or look into OPcache - I'm not sure if it also caches stuff like this.
(01-28-2018, 09:00 PM)Narf Wrote: [ -> ]I see no reason for this to happen.

Might be just cache if the path didn't exist before ... Try putting clearstatcache(TRUE); in index.php (just once, you can remove it after one run), or look into OPcache - I'm not sure if it also caches stuff like this.

I found the error. my fault :-(
I've put the same requirement ci/config/config.php in autoload.php and based from the path it was not found.
Big Grin