When your PHP Handler = FastCGI, your accounts' file permissions are slightly different.
Some VPS / dedicated servers are running an OS of CentOS and using WHM/cPanel to manage accounts.
Drupal 7 File Permissions script
View the Gist available on GitHub
How to use
Get the script into the account root (not the web root)
bash fix-drupal7-permissions.sh DRUPAL-DIRECTORY USER
Example:
bash fix-drupal7-permissions.sh public_html mywebuser
Drupal 8 File Permissions when PHP Handler = FastCGI
Files & Directories Permissions
All directories set to 755
All files set to 644
All "files" directories set to 775
- All files in "files" directories set to 664
- All directories in "files" directories set to 775
Bash Script Permissions Fix
Bash script - View the Gist on GitHub
How to use
bash fix-drupal8-permissions.sh DRUPAL-DIRECTORY USER
Example:
bash fix-drupal8-permissions.sh web mywebuser