- Create the DB with the sqlite3 command
- Hook into the DB with PHP: example here
- Realize that that it's not working...
-
Set the permissions so it works correctly.
- chmod a+w database.db
- setfacl -m "u:user:rwx" directory
- ???
- profit
Something worthy of note is that user is typically going to be www-data. If it's not, check with your sysadmin to find out who php is running as.