Answers.Body: <p>It also looks for civicrm.settings.php and there's also a civicrm_install_canary table.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-02T21:19:33.413Z
Answers.Text: I also removed `web/sites/default/files/civicrm.settings.php` and even the dist file, it still recognizes it.
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-02T21:20:29.170Z
Answers.Text: Did you also clear the civicrm_install_canary db table?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-02T21:23:26.597Z
Answers.Text: the WHUT ? :-D no.
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-03T15:10:37.683Z
Answers.Text: Confirmed: removing civicrm.settings.php and killing the canary works.
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-02T21:18:24.803Z
Answers.LastActivityDate: 2021-11-02T21:23:48.987Z
Answers.LastEditDate: 2021-11-02T21:23:48.987Z
Answers.UserDisplayName: Demerit
Body: <p>While trying to set up an install script for a composer drupal/civi template, I try to rerun the install process several times. CiviCRM refuses to do that, saying</p>
  <pre><code>civicrm appears to have already been installed. skipping full installation.
  </code></pre>
  <p>I know that. But I've cleared all tables from the database, and I've cleared <code>web/sites/default/files/civicrm*</code>. It still says that. What is it seeing ?</p>
  <p>The message is generated from <code>./web/modules/contrib/civicrm/civicrm.install</code> which reads</p>
  <pre><code>if ($installed-&gt;isSettingInstalled() || $installed-&gt;isDatabaseInstalled()) {
      throw new \Exception(&quot;CiviCRM appears to have already been installed. Skipping full installation.&quot;);
    }
  </code></pre>
  <p>.. but what is it looking at ?</p>
  
Tags: <installation><drupal-9><5.10.x>
Title: How does drush:site-install recognize a previous civi installation?
ThreadText: # How does drush:site-install recognize a previous civi installation?
  
  (Asked by: username_0 on 2021-11-02)
  
  While trying to set up an install script for a composer drupal/civi template, I try to rerun the install process several times. CiviCRM refuses to do that, saying
  civicrm appears to have already been installed. skipping full installation.
  
  I know that. But I've cleared all tables from the database, and I've cleared web/sites/default/files/civicrm*. It still says that. What is it seeing ?
  The message is generated from ./web/modules/contrib/civicrm/civicrm.install which reads
  if ($installed->isSettingInstalled() || $installed->isDatabaseInstalled()) {
      throw new \Exception("CiviCRM appears to have already been installed. Skipping full installation.");
    }
  
  .. but what is it looking at ?
  
  **Tags:** installation, drupal-9, 5.10.x
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-11-02. Score: 2 | Accepted answer
  
  It also looks for civicrm.settings.php and there's also a civicrm\_install\_canary table.
  
  > **Comments:**
  > **username_0**: I also removed `web/sites/default/files/civicrm.settings.php` and even the dist file, it still recognizes it.  
  > **username_1**: Did you also clear the civicrm_install_canary db table?  
  > **username_0**: the WHUT ? :-D no.  
  > **username_0**: Confirmed: removing civicrm.settings.php and killing the canary works.  
  
  ---
  
  