Skip to content

Drupal Console + AegirΒ #2263

@mstenta

Description

@mstenta

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.

  1. 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

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions