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

Question to Answer initial set up

+1 vote
57 views
asked Nov 10 in Q2A Core by stonline

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

1 Answer

+2 votes
answered Nov 10 by pupi1985

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).

commented Nov 11 by stonline
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');
commented Nov 11 by pupi1985
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)
commented 6 days ago by stonline
I was running it on local server. It started running now after restarting my system. Thanks for your support.
...