chmod 644 sites/default/settings.php
chmod -r 755 sites/default
chmod 755 sites/default/files
To Reinstall: Do above steps and Goto phpmyadmin web application and click on databses. Select the database from the prior install, and click on DROP.
chmod 555 sites/default
chmod 444 sites/default/settings.php
File Section | Octal | Unix Permissions |
---|---|---|
Core modules folders | 750 | RWXR-X--- |
Core modules files | 640 | RW-R----- |
Core themes folders | 750 | RWXR-X--- |
Core themes files | 640 | RW-R----- |
Contrib modules folders | 750 | RWXR-X--- |
Contrib modules files | 640 | RW-R----- |
Contrib themes folders | 750 | RWXR-X--- |
Contrib themes files | 640 | RW-R----- |
Files folders | 770 | RWXRWX--- |
Files files | 660 | RW-RW---- |
Temporary folder | 770 | RWXRWX--- |
Settings file | 440 | R--R----- |
Settings folder | 750 | RWXR-X--- |
Important also to make sure that in the sites/default/files directory that you set a group to be the apache user that is used to access the files.
chgrp -Rv www-data sites/default/files
Then
chmod 2775 sites/default/files
Where the 2 in 2775 says to preserve the group id when creating new files etc.