On a fresh vagrant trellis multisite install (ubuntu 18.04 host), multisite isn’t actually enabled and I don’t see a networks menu item in the WordPress admin panel.
I tried manually adding the following in application.php as per the docs:
```
/* Multisite */
Config::define('WP_ALLOW_MULTISITE', true);
Config::define('MULTISITE', true);
Config::define('SUBDOMAIN_INSTALL', true); // Set to true if using subdomains
Config::define('DOMAIN_CURRENT_SITE', env('DOMAIN_CURRENT_SITE'));
Config::define('PATH_CURRENT_SITE', env('PATH_CURRENT_SITE') ?: '/');
Config::define('SITE_ID_CURRENT_SITE', env('SITE_ID_CURRENT_SITE') ?: 1);
Config::define('BLOG_ID_CURRENT_SITE', env('BLOG_ID_CURRENT_SITE') ?: 1);
```
wordpress_sites.yml
wordpress_sites:
multisite.local:
site_hosts:
- canonical: multisite.local
redirects:
- www.multisite.local
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
admin_email: admin@example.test
multisite:
enabled: true
subdomains: true
ssl:
enabled: false
cache:
enabled: false
env:
domain_current_site: multisite.local
A few questions:
Shouldn’t this be automatically added to application.php just by setting multisite to true in wordpress_sites.yml?
Are any other steps required? Do I need to re provision? I have followed the multisite section in the trellis docs but maybe I missed something. It’s also been 3+ years since I used WordPress so maybe multisite settings have moved in the dashboard?