Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use Multisite with Acquia recipe because of [site]-settings.inc require line #4

Open
l-laziz opened this issue Jul 19, 2021 · 2 comments
Labels

Comments

@l-laziz
Copy link

l-laziz commented Jul 19, 2021

I get error complaining about missing settings.inc on multisite, since this is require statement in settings.php needed for Acquia sites.
I noticed lando acquia recipe sets up the default (main) site fine, without errors by automatically recreating Acquia site-settings.inc file locally, thus no errors or warnings about it.
However the settings.inc file is missing locally for any multisite i have. Am i doing something wrong. How do i get Lando to set this up automatically, as it does for the default site?

@drogers98
Copy link

Not sure you can, but you can remove the error by modifying the settings.php

if (file_exists('/var/www/site-php') && (getenv('LANDO') !== 'ON')) {
  require '/var/www/site-php/whatever/whatever-settings.inc';
}

Then using your own settings.local.php or similar for telling your multisites what to use.

@rtfm-47 rtfm-47 transferred this issue from lando/lando Nov 24, 2021
@reynoldsalec
Copy link
Sponsor Member

reynoldsalec commented Nov 24, 2021

There are some 3rd-party Acquia multisite instructions out there in the world that I've heard good things about.

I'm not sure where multisite sits in the desired scope for the Acquia integration...this might be a matter of providing better docs or a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants