Drupal: Difference between revisions

m Database Configuration: Update anchor link
 
Line 104: Line 104:


=== Changing The Location Of The State Directory ===
=== 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
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<syntaxhighlight lang="nix">
services.drupal.sites."localhost".stateDir = /path/to/custom/state/dir;
</syntaxhighlight>'''Note''': Changing the state directory does not automatically change the location of the <code>modules</code>, <code>themes</code>, <code>config</code>, or <code>files</code> directories. You can override those locations by using the <code>modulesDir</code> and <code>themesDir</code>, <code>configDir</code>, <code>filesDir</code> keys, accordingly.