Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Use Apache virtual hosts outside the Sites folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Use Apache virtual hosts outside the Sites folder
Authored by: gdhnz on Jun 11, '09 12:56:15PM

1. From memory, the web user and group are both _www in 10.5. It was changed from www in 10.4.

2. Why not assign the web usergroup to your homedir?

# chown -R :_www ~/Documents

Then just set permissions based on the group. From memory, if "x" isn't present, you can't navigate into directories.

3. Why not use /Library/Webserver for all your snippets etc and /Library/WebServer/Documents for your web accessible stuff? A lot safer than changing permissions on your homedir. There's also the option of creating symbolic links and/or apache aliases.



[ Reply to This | # ]
10.5: Use Apache virtual hosts outside the Sites folder
Authored by: enthooz on Jun 11, '09 09:26:59PM

The group is indeed '_www'. Running 'chgrp www' on a directory effectively changes group ownership to '_www'. Granted, it would have been more precise to included the underscore. Likewise, my wording was pretty shabby in the post -- it was late and I had been racking against this issue for awhile. :)



[ Reply to This | # ]
10.5: Use Apache virtual hosts outside the Sites folder
Authored by: enthooz on Jun 11, '09 09:45:13PM

Additionally, in this case -- for a reason unknown to me -- it's not required that the assignment of group permissions be recursive. Weird, right?

FYI, 'chgrp _group_' is the same as 'chown :_group_'

The symlinks idea -- that's a good one. For some reason, I dismissed that at first. But, I think it might be the best direction to follow.

Thanks.



[ Reply to This | # ]