Permissions and ownership errors – A 403 Forbidden error can also be caused by incorrect ownership or permissions on your web content files and folders.
Rule of thumb for correct permissions:
- Folders: 755
- Static Content: 644
- Dynamic Content: 700
Linux permissions can be represented with numbers, letters, or words. They also include an entry for Owner, Group, and Everyone.
- 755 stands for Owner: read, write, execute; Group: read, execute; Everyone: read, execute
- 644 stands for Owner: read, write; Group: read, Everyone: read
- 700 stands for Owner: read, write, execute; Group: (none); Everyone: (none)