Jump to content
Sign in to follow this  
Stefany93

Putting SQLite DB outside document root

Recommended Posts

Howdy,

 

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

^^ Thank you for the help, but it wouldn't have killed you to be more polite!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.