Merge pull request #254 from rootcoma/logging
First draft explaining permissions with sqlite
This commit is contained in:
commit
296aa23db6
|
|
@ -18,4 +18,13 @@ This plugin is in beta. Please report all bugs on GitHub.
|
|||
3. Drop all the tables (uncomment all the drops in plugin.py)
|
||||
4. Load TriviaTime
|
||||
|
||||
## Important - Setting up permissions for sqlite
|
||||
If you do not plan on using the webpage you can ignore this.
|
||||
|
||||
In order to use the website to delete/accept edits, reports, new questions, and deletes, you will need to set the proper permissions for the sqlite db, called 'trivia.db' by default. The default location for the database is inside of the supybot's directory, with the .conf file, inside of plugins/TriviaTime/storage/db.
|
||||
|
||||
PHP's PDO requires that the user that php is run under has write access to the folder that the db is stored in. For this reason I would suggest moving the database to its own folder, which the webservers user has write access.
|
||||
|
||||
I would recommend either creating a new group and adding the user that runs supybot and the webservers user to it, or changing the permissions of the database so that the group who owns it is the webserver, and the user who owns it is the user who runs supybot. After doing that, changing permissions to 775 will allow the group who owns the file to write to the database.
|
||||
|
||||
[Supybot]: http://sourceforge.net/projects/supybot/
|
||||
|
|
|
|||
Loading…
Reference in New Issue