Answers.Body: <p>Cool - in the drupal site root of the site  you should see a folder "sites" and be able to see a file at sites/default/civicrm.settings.php  can you try running the command from the same directory as the civicrm.settings.php file.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-28T19:18:57.940Z
Answers.LastActivityDate: 2019-02-28T19:18:57.940Z
Answers.UserDisplayName: Luke Stewart
Answers.Body: <p>The <code>/build/dmaster/web/sites/default</code> folder has the civicrm.settings.php file, you can execute the commands from anywhere in/or below the <code>web</code> directory. This will allow civix to correctly locate the settings file.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-27T06:55:25.673Z
Answers.LastActivityDate: 2020-03-02T17:02:45.490Z
Answers.LastEditDate: 2020-03-02T17:02:45.490Z
Answers.UserDisplayName: Asha
Body: <p>I just installed CiviCRM BuildKit using the instructions <a href="https://github.com/michaelmcandrew/civicrm-buildkit-docker" rel="nofollow noreferrer">here</a> </p>
  
  <p>After accessing the bash shell of the container with:</p>
  
  <pre><code>docker-compose exec -u buildkit civicrm bash
  </code></pre>
  
  <p>I try running the command</p>
  
  <pre><code>civix civicrm:ping
  </code></pre>
  
  <p>in the /src folder, I get the error </p>
  
  <blockquote>
    <p>[Exception]<br>
    Failed to locate civicrm.settings.php. By default, this tool searches the parent directories for a standard CMS (Drupal, WordPress, etal) and standard civicrm.settings.php. Symlinks and multisite configurations may interfere. To customize, set variable CIVICRM_SETTINGS to point to the preferred civicrm.settings.php.  </p>
  </blockquote>
  
  <p>How can I get the command(s) to work correctly?</p>
  
Tags: <extension><civicrm-buildkit><civix>
Title: civix civicrm:ping error [Exception] Failed to locate civicrm.settings.php
ThreadText: # civix civicrm:ping error [Exception] Failed to locate civicrm.settings.php
  
  (Asked by: username_0 on 2019-02-26)
  
  I just installed CiviCRM BuildKit using the instructions here 
  After accessing the bash shell of the container with:
  docker-compose exec -u buildkit civicrm bash
  
  I try running the command
  civix civicrm:ping
  
  in the /src folder, I get the error 
  
  [Exception]
    Failed to locate civicrm.settings.php. By default, this tool searches the parent directories for a standard CMS (Drupal, WordPress, etal) and standard civicrm.settings.php. Symlinks and multisite configurations may interfere. To customize, set variable CIVICRM_SETTINGS to point to the preferred civicrm.settings.php.  
  
  How can I get the command(s) to work correctly?
  
  **Tags:** extension, civicrm-buildkit, civix
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-02-28. Score: 2 | Accepted answer
  
  Cool - in the drupal site root of the site you should see a folder "sites" and be able to see a file at sites/default/civicrm.settings.php can you try running the command from the same directory as the civicrm.settings.php file.
  
  
  ---
  
  ### Answer by username_2 on 2020-02-27. Score: 2
  
  The `/build/dmaster/web/sites/default` folder has the civicrm.settings.php file, you can execute the commands from anywhere in/or below the `web` directory. This will allow civix to correctly locate the settings file.
  
  
  ---
  
  