Posted 01 August 2014 - 01:22 PM
So I am creating a website with SQLite and this time I decided to follow the rule of putting the SQLite DB outside of the document root. However, the admin would need to admin, basically, the DB, so I have two choices:
a) Put PhpLiteAdmin (The SQLite DB manager like PHPmyAdmin is for MySQL) in the document root while giving it a path to the actually DB that is outside of the document root;
b) Set a subdomain to a directory outside of the document root of course and put both PhpLiteAdmin and the SQLite DB there and the admin would access it like this - db.Awesome-Website.com;
Which one of those two options are safer?
Thank you very much!
My site - http://stefanynewman.info
My history website - http://www.studyingthepast.com
Posted 02 August 2014 - 03:54 AM Best Answer
Option b) makes no sense for your requirements, because the database file is in the document root. It's the document root of your subdomain.
So what's left is a).
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users