| 1 | = Why can't I create a file or folder in my Drupal sites/default directory? = |
| 2 | |
| 3 | The Drupal installer, by default, sets the permissions on your sites/default folder to read-only (apparently in an effort at improved security). |
| 4 | |
| 5 | If you want to add a files directory or a civicrm.settings.php file in this directory, you will need to change the permissions so that the owner of the directory can write to it. |
| 6 | |
| 7 | You can do this via your [wiki:sftp sftp client] by using your clients "chmod" or "change mode" command (how to do this varies by client - try right clicking on the folder and selecting chmod from the context menu). |
| 8 | |
| 9 | You do ''not'' need to be make it writable by everyone. Only make it writable by the owner. |
| 10 | |
| 11 | You can also make this change via the command line ([wiki:secure_shell ssh]) by issuing the command: |
| 12 | |
| 13 | {{{ |
| 14 | chmod u+w path/to/web/sites/default |
| 15 | }}} |