Turek / file_permissions

Drupal module providing `drush` command for settings `sites/default/files` and `siltes/default/private` permissions correctly.

Home Page:https://www.drupal.org/project/file_permissions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CONTENTS OF THIS FILE

  • Introduction
  • When would you need this?
  • Installation
  • How To Use It
  • Maintainers

Introduction

This is not a module, you can't enable it.

It provides drush commands for setting up or fixing your local environment to have proper file permissions. It takes care of creating sites/default/files and sites/default/private for your Drupal installation and updating them in variables table, so you don't have to do that through the UI. It also takes care of creating .htaccess files in those subdirectories for security.

To set permissions correctly, module detects your apache user and group automatically.

When would you need this?

You might be seeing one of below notices:

  The directory sites/default/files is not writable.
  The directory sites/default/private is not writable.
  You may need to set the correct directory at the file system settings page
  or change the current directory's permissions so that it is writable.
  The CTools CSS cache directory, ctools/css could not be created due
  to a mis-configured files directory. Please ensure that the files directory
  is correctly configured and that the web server has permission to create
  directories.

Installation

  1. Download module to your ~/.drush folder: drush dl file_permissions --destination=~/.drush
  2. Run drush cc drush to clear Drush cache.

How To Use It

By simply running drush fp It is not recommended to use it with sudo as it will create ~/.drush/cache files that are owned by root user.

Maintainers

Current maintainers:

This project has been sponsored by:

About

Drupal module providing `drush` command for settings `sites/default/files` and `siltes/default/private` permissions correctly.

https://www.drupal.org/project/file_permissions


Languages

Language:PHP 100.0%