What is the proper way to set up the Apache document root in terms of privileges?

Posted by racl101 on Server Fault See other posts from Server Fault or by racl101
Published on 2010-04-25T23:44:01Z Indexed on 2010/04/25 23:53 UTC
Read the original article Hit count: 186

I have just installed Ubuntu 9.10 server edition on my machine and I wish to run my own personal local server with other users in the same LAN.

First, I was wondering what folder directory structure is best for the web root?

Should I just use:

/var/www/ 

and start throwing web documents there or should I create a folder elsewhere (maybe the home directory)?

Second, in the

/var/www/

directory only the root user can create documents in there, however, I wish to have other users be able to create files in the document root and upload them via FTP. Should I change the permissions or the www/ folder? Or again, should I create the document root elsewhere with different permissions? What is the safest way of doing this?

© Server Fault or respective owner

Related posts about apache

Related posts about ftp