Moving config.php outside the website root folder

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
dlee
Veteran Member
Posts: 137
Joined: 2020-04-14 00:21
Location: South Carolina, USA
Contact:

Moving config.php outside the website root folder

Post by dlee » 2022-03-28 00:55

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

Post Reply