...
You should grant permissions of files and folders to "webserver user" account as below:
- All files have permission 644
- All folders have permission 755, except:
- 2 following folders have permission 777:
- PF.Base/file
- PF.Base/file/cache
- PF.Site/flavors
- Other folders have permission 755
- All files have permission 644
Note: "webserver user" is a user account on server which can run web or PHP command. In Linux system, this user is usually nginx or apache or www-data.
...