newb Apache question - setting permissions on /var/www
Am setting up a new web server, and am having an awful time setting up the right file permission on /var/www where web pages are stores.
The directory was originally set up with the owner root, with group root. I created a "web" unix account which I would use as my ftp account, and gave it the home directory of /var/www
With the directory owned as root/root, I couldn't write to the directory. So, I changed ownership on the directory to my web ftp account, with group web that I created.
Now, I can write to the directory, but all of the files written to the /var/www directory are showing up as 403/forbidden when viewed in a web browser.
Soooooooooo ... I'm guessing I've majorly messed up setting up the right permissions on /var/www
Could you help me with the following:
1. What should I put as the owner and group for the directory?
2. What are the right permissions for /var/www so that everyone can view web pages?
3. How would I go about setting those permissions? I know that the chmod command is involved, but I'm still new, and am a little unsure as to how to issue this command.
As always, your help and replies are very much appreciated.