File Permissions Fix when PHP handler is FastCGI

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

Setting proper file permissions before committing files

The Drupal project aims for consistency and correct values by default. The final permissions suggested for files are covered at great length in the security handbook. For files checked into the git repository on drupal.org, the standard is set forth by core of what permissions are appropriate.

Subscribe with RSS Subscribe to RSS - file permissions