var/www/ is set automatically set as web root when I install ubuntu.
I want to assign permissions to folders of a website if I want host one and the folders inside.
Please help me to assign correct and safe permissions to folders below. Also if you think the structure is wrong please feel free to change it. I see some folders are left outside of main root folder by some users but I don’t know why.
/mytestwebsite/ (root of my website) Permission = ?
/mytestwebsite/include/ (holds some include files, header and footer like – Read only) Permission = ?
/mytestwebsite/class/ (holds important class files – Read only) Permission = ?
/mytestwebsite/images/ (holds all images like site images and user uploads – Read and Write) Permission = ?
Thanks in advance