Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
419 views
in Q2A Core by

I tried to run Question to answer on localhost. After changing the config file, getting the following error..

1 Answer

+2 votes
by

If it worked in the past and after a change it stopped working you should revert the change. Also, explain what you changed. Otherwise, people will have to guess.

With the information you provided I'd tell you to make sure the file is named qa-config.php and is in the root directory (along with index.php).

by
yes, i have named the file as qa-config.php and in the same directory as index.php. I changed the following in config file:
    define('QA_MYSQL_HOSTNAME', 'localhost');
    define('QA_MYSQL_USERNAME', 'root');
    define('QA_MYSQL_PASSWORD', '');
    define('QA_MYSQL_DATABASE', 'questions');
by
The issue is not inside the file. The file can not be found. That means the file is not there.

1. Show the web server configuration that is referencing the web root directory

2. Show a screenshot of the file in the web root directory (include in the screenshot the location bar that displays the path of the current window)
by
I was running it on local server. It started running now after restarting my system. Thanks for your support.
...