Re: How to package programs that make use of a database?
I'm assuming you're talking about a server with multiple sites and
multiple users, ie, webmasters?
One solution i came up with is to create each site a seperate user
login, and create a new group for each one.
Then make the owner and groups of their files and directory match the
login and group for them. then in /etc/group add
www-data user to that group. Now php and apache have access to that
site and so do the users, but no one else.
repeat for each site. as far as dbase goes, create different db's and
users for each site, the only user/pass each
site has is for their own. they can break and steal their own stuff but
that's it. i usually also change each
system users home path to that of their site's directory. maybe this
will help, or not :)
Reply to: