Answers.Body: <p>The recommended location is <code>wp-content/uploads/civicrm/civicrm.settings.php</code>.</p>
  
  <p>The deprecated location, still supported as of April 2017, was <code>wp-content/plugins/civicrm/civicrm.settings.php</code>, but this is both easy to break on upgrade ("whoops, I removed the old plugin and the settings files, and I don't have backups!") and on some sites is not a writeable location (where people prefer to not have WordPress able to modify its own codebase).</p>
  
  <p>This can be seen in <a href="https://github.com/civicrm/civicrm-wordpress/blob/master/civicrm.php#L103" rel="nofollow noreferrer"><code>civicrm-wordpress/civicrm.php</code> at line 103</a> and is documented in <a href="https://issues.civicrm.org/jira/browse/CRM-16408" rel="nofollow noreferrer">CRM-16408</a>. Code docs refer to this as "the 4.6 and prior location" so I guess that tells us it's new to 4.7.</p>
  
  <p>It looks like this was applied to all the related files, a WP site I set up the other day had everything in <code>wp-content/uploads</code> AFAICT, which seems like an improvement.</p>
  
  <p>However, I noticed that <code>civicrm.php</code> looks like it <a href="https://github.com/civicrm/civicrm-wordpress/blob/master/civicrm.php#L106" rel="nofollow noreferrer">gives preference to the deprecated location</a>. IDK if there is a specific reason to this - it feels like it might set up a surprise for some sites if that behaviour ever changes?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-04T18:15:03.610Z
Answers.Text: This makes sense with what I'm seeing. Thanks Chris.
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-04T18:17:08.307Z
Answers.Text: Hi!   It surprised me too, I only ran into it two days ago.
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-04T17:59:59.480Z
Answers.LastActivityDate: 2017-04-04T18:05:39.000Z
Answers.LastEditDate: 2017-04-04T18:05:39.000Z
Answers.UserDisplayName: Chris Burgess
Body: <p>I've got a WordPress site here (CiviCRM 4.7.17, upgraded recently from 4.7.15) which has two different civicrm.settings.php files:</p>
  
  <ol>
  <li>wp-content/plugins/civicrm/civicrm.settings.php</li>
  <li>wp-content/uploads/civicrm/civicrm.settings.php</li>
  </ol>
  
  <p>File #1 contains the correct settings, and files #2 appears to have outdated settings.</p>
  
  <p>Questions:</p>
  
  <ul>
  <li>Which is the correct path in CiviCRM 4.7?</li>
  <li>Can I just delete the one with the wrong path (after I ensure the correct one is in the right place)?</li>
  <li>Is the whole directory wp-content/{uploads,plugins}/civicrm in the same boat -- that is, is just one of them needed, and if so, what's the correct path for that directory?</li>
  </ul>
  
Tags: <wordpress><4.7><civicrm.settings.php>
Title: Correct location of civicrm.settings.php in CiviCRM 4.7 for WordPress
ThreadText: # Correct location of civicrm.settings.php in CiviCRM 4.7 for WordPress
  
  (Asked by: username_0 on 2017-04-04)
  
  I've got a WordPress site here (CiviCRM 4.7.17, upgraded recently from 4.7.15) which has two different civicrm.settings.php files:
  
  1. wp-content/plugins/civicrm/civicrm.settings.php
  2. wp-content/uploads/civicrm/civicrm.settings.php
  
  File #1 contains the correct settings, and files #2 appears to have outdated settings.
  
  Questions:
  
  * Which is the correct path in CiviCRM 4.7?
  * Can I just delete the one with the wrong path (after I ensure the correct one is in the right place)?
  * Is the whole directory wp-content/{uploads,plugins}/civicrm in the same boat -- that is, is just one of them needed, and if so, what's the correct path for that directory?
  
  **Tags:** wordpress, 4.7, civicrm.settings.php
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-04-04. Score: 3 | Accepted answer
  
  The recommended location is `wp-content/uploads/civicrm/civicrm.settings.php`.
  
  The deprecated location, still supported as of April 2017, was `wp-content/plugins/civicrm/civicrm.settings.php`, but this is both easy to break on upgrade ("whoops, I removed the old plugin and the settings files, and I don't have backups!") and on some sites is not a writeable location (where people prefer to not have WordPress able to modify its own codebase).
  
  This can be seen in [`civicrm-wordpress/civicrm.php` at line 103](https://github.com/civicrm/civicrm-wordpress/blob/master/civicrm.php#L103) and is documented in [CRM-16408](https://issues.civicrm.org/jira/browse/CRM-16408). Code docs refer to this as "the 4.6 and prior location" so I guess that tells us it's new to 4.7.
  
  It looks like this was applied to all the related files, a WP site I set up the other day had everything in `wp-content/uploads` AFAICT, which seems like an improvement.
  
  However, I noticed that `civicrm.php` looks like it [gives preference to the deprecated location](https://github.com/civicrm/civicrm-wordpress/blob/master/civicrm.php#L106). IDK if there is a specific reason to this - it feels like it might set up a surprise for some sites if that behaviour ever changes?
  
  > **Comments:**
  > **username_0**: This makes sense with what I'm seeing. Thanks username_1.  
  > **username_1**: Hi!   It surprised me too, I only ran into it two days ago.  
  
  ---
  
  