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

1 Answer

+1 vote
by
selected by
 
Best answer

Under normal circumstances, “accessing” qa-config.php does nothing, you will just see a blank page. However it could be an issue in rare cases if your server becomes misconfigured and serves the code.

The simplest solution is to move it outside the web root. For example if the root of your website is ‘/var/www/website/public_html’ then put the file in the ‘website’ directory.

Then make a new qa-config.php file in ‘public_html’ that includes the other one, e.g.

<?php

require '../qa-config.php';

More info on security in the docs here.

by
thank you dear
...