Use the correct CHMOD for each folder and file
Answer
Setting files or folders to a CHMOD of 777 or 707 is only necessary when a script needs to write to that file or directory. All other files should have the following configuration:
- PHP files: 644
- Config files: 666
- Other folders: 755

