|
Hi folks,
Perhaps some of you more experienced linoders can comment on what the technically cleanest way to apply permissions on apache's public_html folder is. I have an apache user and my own user for ftp/ssh access that works with files in public_html.
From my limited view, I see 2 (probably not-so-good) ways:
1) create a group called 'www', add 'apache' and 'myuser' to the group and "chown -R apache:www public_html/" I guess this needs 664 permissions on files and 2775 on directories.
2) change config so apache service runs with 'myuser' instead and "chown -R myuser:myuser public_html/" with 644 permissions on files and (2?)775 on directories.
I'm on CentOs 6.4. running wordpress (and others). Suggestions greatly appreciated.
Cheers and thanks!
edit: version number typo.
|