-
-
Notifications
You must be signed in to change notification settings - Fork 554
Description
Drupal Console does not seem to be working with sites installed via Aegir. I think there may be two separate issues that are preventing it from working.
- Aegir uses Drupal multisite for all sites that it installs.
Based on the Console documentation, and #755, it seems like Console does support multisite installations, but it also seems that it is not currently working. I believe part of the issue is #2002
- Aegir does not store database credentials in settings.php.
As an extra security measure, Aegir stores database credentials in the Apache virtual host that it creates, and loads them dynamically into settings.php temporarily. Once the database connection is established, it clears the credential variables so that they cannot be accessed by anyone with PHP access (or phpinfo()) within the site itself.
In order for Drush to work, Aegir also stores the database credentials in sites/[site-uri]/drushrc.php.
Perhaps Console could also look in drushrc.php for credentials, if it doesn't find them in settings.php? This could be done conditionally, so that we don't have to depend on Drush of course.