Page 1 of 1

Moving config.php outside the website root folder

Posted: 2022-03-28 00:55
by dlee
I remember reading somewhere that moving the files that contain the database access info (i.e. MySQL username and it's password) out of the website's root folder (in my case the folder /public_html/) makes for a more secure website. I have two questions regarding this:

Question 1 - is it more secure that way ?
Question 2 - how would you do this with an Appgini generated app, since it will be looking for the config.php file to be in the root folder?

Thanks,
TD