To create or write to a sqlite db, how can a php program give permission for writing? For example if the db is to be in a directory /var/data and /data has a normal permission mod of 744 with root as owner ? Should the owner be another user name ?