Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

"The config file could not be found. " qa-config.php exist but app doesnt see it - how to solve it ?

+2 votes
77 views
asked Oct 8 in Q2A Core by Dlugasny

Does any one could help me to solve that issue ?

I have configured everything as it was requested, qa-config-example.php has been renamed to qa-config.php but still application doesnt see it. I also cleaned the cache in my browsers. 

What could be the reason ? I`m using latest release. 

Question2Answer fatal error:

The config file could not be found. Please read the instructions in qa-config-example.php.

Stack trace:

require() in index.php:27
require() in qa-index.php:44
qa_initialize_constants_1() in qa-base.php:50

Q2A version: 1.7.5

1 Answer

+1 vote
answered Oct 9 by Scott

The qa-config.php file must be in the same directory as index.php. And it must have correct permissions (same as the other PHP files).

The only other thing I can think is that maybe the constant QA_BASE_DIR is getting set incorrectly. You can try putting this above that line in qa-base.php:

var_dump(QA_BASE_DIR);

And see if that has the correct path to your site root.

...