Answers.Body: <p><strong>KEY thing is</strong> that when you have a Drupal multi site config - make sure that each civicrm is in its corresponding /sites/example.com/modules</p>
  
  <p>You can structure that too: put your CiviCRM versions in one central place eg /var/www/ so you have a civicrm/4.6 a civicrm/4.7 etc - then add a symbolic link in each projects /modules directory to the /var/www/civicrm/4.x version it's on.</p>
  
  <p>This way you can now easily update both minor Drupal and minor CiviCRM versions across all your sites/projects!</p>
  
  <p><strong>EDIT:</strong> example:
  in /home/karin/org.ca/modules</p>
  
  <blockquote>
    <p>lrwxrwxrwx.  1 karin karin    20 Jan 15 13:37 civicrm ->
    /var/www/civicrm/4.6</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T12:59:56.353Z
Answers.Text: Ah, I see -- I will try this.  I did have one common install of civicrm in sites/all/modules for easy of updating, but to be honest it was more trouble then it was worth (different extensions, etc., across sites).
Answers.UserDisplayName: jimgde
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T13:34:41.683Z
Answers.Text: Ok, tried the symbolic link approach but it gave me a similar error (couldn't find civicrm.settings.php at /var/www/civicrm4.6/../../..//default/sites/.   Moved it into the site module file proper and it works now.  Guess that's the only way?
Answers.UserDisplayName: jimgde
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T13:36:46.820Z
Answers.Text: Then that explains the issue! And with the symlinks you'll keep your ease of updating; Each site/project will also need its own CiviCRM extensions dir.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T13:40:33.207Z
Answers.Text: That symlink needs to be in the site's /modules (yes you can just put civicrm in there - but with a symlink to your civicrm repository it's easier to update); remember to clear any and all cashes; drush rr if needed! We have 30-40 sites/projects using this setup - and they can all civimail.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T14:16:35.797Z
Answers.Text: Hmm.  Then I'm not sure why it wasn't working for me with the symlink, which I did place in the sites modules' folder...I'll keep experimenting, but for the time being it'll work with civicrm in the module folder directly.  Thanks!
Answers.UserDisplayName: jimgde
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T14:26:51.780Z
Answers.Text: Symlinks can be super tricky - caches can be cruel! I've edited my answer to reflect that the KEY thing is that each site has its own /modules/civicrm - (as you confirmed) - don't forget to accept the answer - so we can file this one! I've also added a symlink example. Best to getting those to work!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T01:19:59.450Z
Answers.LastActivityDate: 2016-05-27T14:18:51.923Z
Answers.LastEditDate: 2016-05-27T14:18:51.923Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I've looked around and seen several similar issues to this, but not exactly the same.  I have civimail configured to send emails just find and the tracking url works initially, but ends in failure as it cannot find the civicrm.settings.php file in sites/default/</p>
  
  <p>The problem may be that I have multiple sites running on a common installation of drupal. But, the sites folders are named the same as the virtual site (e.g., sites/example.com for example.com).  It's not clear to me why Civicrm is failing to detect the proper path for the civicrm.settings.php file. </p>
  
  <p>For reference:  Civicrm 4.6.14, Drupal 7.42</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-26T21:27:18.273Z
Comments.Text: When you say you have multiple sites running on one Drupal install, how are you doing that?  Domain Access?  If so, could you edit your question to show how you're determining which site is which?
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-27T22:54:59.757Z
Comments.Text: same thoughts. are you using a single civi for a single drupal, but that drupal is part of multisite, or are you tieing a single civi in to multiple drupal so each drupal site is integrated with the one civi, or do you have a civi for each of your multiple drupals?
Comments.UserDisplayName: petednz - fuzion
Tags: <civimail><drupal><multisite><webserver>
Title: Civimail & Drupal Multisite -- tracking url looks in wrong location for civicrm.settings.php
ThreadText: # Civimail & Drupal Multisite -- tracking url looks in wrong location for civicrm.settings.php
  
  (Asked by: username_0 on 2016-05-26)
  
  I've looked around and seen several similar issues to this, but not exactly the same. I have civimail configured to send emails just find and the tracking url works initially, but ends in failure as it cannot find the civicrm.settings.php file in sites/default/
  
  The problem may be that I have multiple sites running on a common installation of drupal. But, the sites folders are named the same as the virtual site (e.g., sites/example.com for example.com). It's not clear to me why Civicrm is failing to detect the proper path for the civicrm.settings.php file.
  
  For reference: Civicrm 4.6.14, Drupal 7.42
  
  **Tags:** civimail, drupal, multisite, webserver
  
  > **Comments:**
  > **username_1**: When you say you have multiple sites running on one Drupal install, how are you doing that?  Domain Access?  If so, could you edit your question to show how you're determining which site is which?  
  > **username_2**: same thoughts. are you using a single civi for a single drupal, but that drupal is part of multisite, or are you tieing a single civi in to multiple drupal so each drupal site is integrated with the one civi, or do you have a civi for each of your multiple drupals?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2016-05-27. Score: 1
  
  **KEY thing is** that when you have a Drupal multi site config - make sure that each civicrm is in its corresponding /sites/example.com/modules
  
  You can structure that too: put your CiviCRM versions in one central place eg /var/www/ so you have a civicrm/4.6 a civicrm/4.7 etc - then add a symbolic link in each projects /modules directory to the /var/www/civicrm/4.x version it's on.
  
  This way you can now easily update both minor Drupal and minor CiviCRM versions across all your sites/projects!
  
  **EDIT:** example:
  in /home/karin/org.ca/modules
  
  > lrwxrwxrwx. 1 karin karin 20 Jan 15 13:37 civicrm ->
  > /var/www/civicrm/4.6
  
  > **Comments:**
  > **username_0**: Ah, I see -- I will try this.  I did have one common install of civicrm in sites/all/modules for easy of updating, but to be honest it was more trouble then it was worth (different extensions, etc., across sites).  
  > **username_0**: Ok, tried the symbolic link approach but it gave me a similar error (couldn't find civicrm.settings.php at /var/www/civicrm4.6/../../..//default/sites/.   Moved it into the site module file proper and it works now.  Guess that's the only way?  
  > **username_3**: Then that explains the issue! And with the symlinks you'll keep your ease of updating; Each site/project will also need its own CiviCRM extensions dir.  
  > **username_3**: That symlink needs to be in the site's /modules (yes you can just put civicrm in there - but with a symlink to your civicrm repository it's easier to update); remember to clear any and all cashes; drush rr if needed! We have 30-40 sites/projects using this setup - and they can all civimail.  
  > **username_0**: Hmm.  Then I'm not sure why it wasn't working for me with the symlink, which I did place in the sites modules' folder...I'll keep experimenting, but for the time being it'll work with civicrm in the module folder directly.  Thanks!  
  > **username_3**: Symlinks can be super tricky - caches can be cruel! I've edited my answer to reflect that the KEY thing is that each site has its own /modules/civicrm - (as you confirmed) - don't forget to accept the answer - so we can file this one! I've also added a symlink example. Best to getting those to work!  
  
  ---
  
  