Answers.Body: <p>The easiest way to set those is using Civi::settings()->set('......').</p>
  
  <p>In the UI it is Administer/System Settings/Directories.</p>
  
  <p>Is that what you are looking for?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-10T21:41:09.633Z
Answers.Text: Via the UI you can use the [cms.root] token click on the "Blue Question Mark" in the help text at the top of Adminsister/System Settings/Directories to display a notice which lists the available variables and what they will be expanded as.
Answers.UserDisplayName: Luke Stewart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-10T19:35:12.457Z
Answers.LastActivityDate: 2018-12-10T19:35:12.457Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I'd like to set </p>
  
  <pre><code>$civicrm_setting['Directory Preferences']['extensionsDir'] =  
  </code></pre>
  
  <p>to a files directory relative to the web root. How do I do that?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-10T21:40:30.187Z
Comments.Text: Do you need to do this via the settings file? This is easy to do via the UI as suggested below.
Comments.UserDisplayName: Luke Stewart
Tags: <configuration>
Title: How do I find the web root in civicrm.settings.php?
ThreadText: # How do I find the web root in civicrm.settings.php?
  
  (Asked by: username_0 on 2018-12-10)
  
  I'd like to set
  
  ```
  $civicrm_setting['Directory Preferences']['extensionsDir'] =  
  
  ```
  
  to a files directory relative to the web root. How do I do that?
  
  **Tags:** configuration
  
  > **Comments:**
  > **username_1**: Do you need to do this via the settings file? This is easy to do via the UI as suggested below.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-12-10. Score: 1
  
  The easiest way to set those is using Civi::settings()->set('......').
  
  In the UI it is Administer/System Settings/Directories.
  
  Is that what you are looking for?
  
  > **Comments:**
  > **username_1**: Via the UI you can use the [cms.root] token click on the "Blue Question Mark" in the help text at the top of Adminsister/System Settings/Directories to display a notice which lists the available variables and what they will be expanded as.  
  
  ---
  
  