permissions for _every file_ under public_html should be -rw-rw-r-- permissions for _every dir_ under public_html and public_html should be drwxrwsr-x ownership for both files and directory should be either www:user or user:user where user is the specific users name. In /html/res/ is shuld be -rw-r--r-- and owned by www:users (and I mean 'users')