Drupal: Difference between revisions
m Replace backticks with <code> blocks |
m →State Directory: Update anchor link |
||
| Line 96: | Line 96: | ||
</syntaxhighlight>Files in this directory, because of their tendency to change during run time, cannot live inside of <code>/nix/store</code>, so they are placed here instead. | </syntaxhighlight>Files in this directory, because of their tendency to change during run time, cannot live inside of <code>/nix/store</code>, so they are placed here instead. | ||
The webserver is the default owner of all files in the state directory and regular users are not permitted to access this directory by default. However, users who belong to the webserver group may edit or upload files as needed. Refer to | The webserver is the default owner of all files in the state directory and regular users are not permitted to access this directory by default. However, users who belong to the webserver group may edit or upload files as needed. Refer to [[Drupal#How To Access Files In The State Directory As A Regular User|How To Access Files In The State Directory As A Regular User]] for more information on how to add users to the webserver group. | ||
=== Uploading Modules and Themes === | === Uploading Modules and Themes === | ||
| Line 102: | Line 102: | ||
This is not the officially [https://www.drupal.org/docs/extending-drupal/installing-modules recommended method] for installing contributed modules and themes, or modules and themes that have third-party dependencies. However, this functionality has been preserved both as an escape hatch, and to provide an easy way to manage a simple Drupal install that doesn't rely on [https://getcomposer.org/ composer]. | This is not the officially [https://www.drupal.org/docs/extending-drupal/installing-modules recommended method] for installing contributed modules and themes, or modules and themes that have third-party dependencies. However, this functionality has been preserved both as an escape hatch, and to provide an easy way to manage a simple Drupal install that doesn't rely on [https://getcomposer.org/ composer]. | ||
=== Changing The Location Of The State Directory === | |||
If you want the state directory to be located in a different part of the system, you can use the following configuration to change where it is created | |||