1

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 ?

1 Answer 1

2

It also looks for civicrm.settings.php and there's also a civicrm_install_canary table.

4
  • I also removed web/sites/default/files/civicrm.settings.php and even the dist file, it still recognizes it.
    – commonpike
    Nov 2, 2021 at 21:19
  • 1
    Did you also clear the civicrm_install_canary db table?
    – Demerit
    Nov 2, 2021 at 21:20
  • the WHUT ? :-D no.
    – commonpike
    Nov 2, 2021 at 21:23
  • Confirmed: removing civicrm.settings.php and killing the canary works.
    – commonpike
    Jul 3 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.