Well, lets admit it, this is actually a note to self kind of thing, because I always often forgot how to set folder and file permission for my web server, because ideally, using root account is a STRICT PROHIBITION towards managing your linux server.