Roots Discourse

Trellis vagrant multisite install


I have followed and double checked the trellis docs for multi-site install (development), and even installed the multi-site url fixer (even though I’m planning subdirectory structure) on the vm. There were no errors in bringing up the vm (via vagrant up) but I only see a single wp installation… no multi-site tools appear in the admin panel.

Just wondering what I could be missing?


Hard to help with no insight into what changes you’ve made :wink: Please share your wordpress_sites.yml file.

# Documentation:
# `wordpress_sites` options:
# Define accompanying passwords/secrets in group_vars/development/vault.yml

      - canonical: newsite.test
          - www.newsite.test
    local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
      enabled: true
      subdomains: false
      enabled: true
      hsts_max_age: 0
      provider: self-signed
      enabled: false


Can you also share your Bedrock config with the multisite changes made?


Ah, there it is… thank you. As I was copying it the file to paste it here, I realized that I placed the multisite section too far down in the file… did not see it at first, but the multisite config lines must come before the line $env_config = __DIR__ . '/environments/' . WP_ENV . '.php';

Perhaps obvious, but I missed it.

Fixed, re-provisioned, and it works!

Thank you Ben!