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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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