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: https://roots.io/trellis/docs/local-development-setup/
# `wordpress_sites` options: https://roots.io/trellis/docs/wordpress-sites
# Define accompanying passwords/secrets in group_vars/development/vault.yml

wordpress_sites:
 newsite.network:
    site_hosts:
      - canonical: newsite.test
        redirects:
          - www.newsite.test
    local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
    admin_email: colin@newsite.network
    multisite:
      enabled: true
      subdomains: false
    ssl:
      enabled: true
      hsts_max_age: 0
      provider: self-signed
    cache:
      enabled: false

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

1 Like

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!

1 Like