Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL Support #35

Closed
escservices opened this issue Jan 10, 2017 · 4 comments
Closed

MySQL Support #35

escservices opened this issue Jan 10, 2017 · 4 comments

Comments

@escservices
Copy link

My shared host will never let me put a db or anything outside the main hosted public directory. Currently I used an .htaccess rule to deny access to any files ending in .db not positive how secure that is because it's still not as secure as being completely outside the public space. How difficult would it be to implement MySQL? PDO Sqlite looks very similar to PDO MySQL but not too sure I don't do much with PHP.

@causefx
Copy link
Owner

causefx commented Jan 10, 2017

I'm planning on adding a customizable path for the DB location. for now if you still want to try it, just edit this file @ line 11: user.php

change to:
Line 11:
define('USER_HOME', __DIR__ . '/users/');

Line 12:
define('DATABASE_LOCATION', __DIR__ . '/');

@escservices
Copy link
Author

That's exactly what I did, it's been working fine. I also added
<Files ~ "\.db$"> Order allow,deny Deny from all </Files>
to the .htaccess to protect the db.

@causefx
Copy link
Owner

causefx commented Jan 10, 2017

Hopefully I will have this done soon, so your setup can survive upgrades.

@causefx
Copy link
Owner

causefx commented Jan 10, 2017

Same Issue as #13

@causefx causefx closed this as completed Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants