Apache and FTP Help


Recommended Posts

I currently moved away from my Site5 and trying to host my websites on my Linux Box that I am renting each month..

I got everything.. but just had some loose ends..

www-data is the apache user

www-data is the apache group

For the sake of this topic, we are going to call the site fus10n.com which is located in \var\www\supersite.com

If I make an account called fusion and add to the group www-data and did a chown -R fusion:www-data \var\www\supersite.com

should that be all that I need to do for security reasons? Just use the account "fusion" to upload to \var\www\supersite.com?

Change the permissions for files to 644 and 755 for folders?

Also, what if a friend wants me to host their site?

Make user called "friend" sethome dir to \var\www\friendssite and do chown -R friend:www-data?

Also, something that isn't making sense..

shouldn't the acocunt 'fusion' be able to modify files for "friend" since they are in the same www-data group which is the group that owns the folders anyway? I am not able to do that, and it must be something I don't understand..

Link to comment
https://www.neowin.net/forum/topic/1150680-apache-and-ftp-help/
Share on other sites

If they can't write then it's because of your chmod.

chmod uses the format <User><Group><Others> so chmod 644 for example gives owner RW access, same group read only and others read only, you'd need chmod 664 to allow the other users in the group to write to it.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.