PDA

View Full Version : Apache2 virtual servers


godlike
October 31st, 2005, 06:15 PM
Ok i tried irc and google and i cant seem to find help on this topic so im not sure its possible.
Basically i just want to know if theres a line u can add to one of the sites-available scripts for the virtual hosts so that instead of www-dat the owner of the files would be a user?
Basically when the site adds new content threw php or what not it always creates it with the www-dat and then i cant edit the files with my user account always have to switch to www-dat......

Glut
November 2nd, 2005, 12:47 AM
A simpler solution would be to have the user of the file as your own user and the group of the file set to www-data
Then, if www-data has read access, everything is hunky-dory.

godlike
November 2nd, 2005, 03:09 AM
Well ya i was thinking that also but the problem is the site is using e107 and whenever it adds any new files its sets www-data:www-data

Glut
November 3rd, 2005, 12:18 AM
Make your user part of the www-data group and the files editable by group, it's slightly messy, but you wont have any issues.

godlike
November 3rd, 2005, 12:49 AM
thanks, ya thats what i have been doing just annoying cuz the site always adds new content 770 or whatever user only can write lol so i gotta manually 775 em to do any editing lol
O well i guess thats how it goes