Throuble with multi domain site

Hi, I’m trying to setup a multi domain installation, and I’m not succeeding.

I follow the documentation at and used the setup_subdomain.php template.

After that, I

  • created the folder user/sites
  • created a directory test.local
  • moved directories accounts, config, data, pages, plugins and themes from user to user/sites/test.local
  • created a entry in /etc/hosts for test.local

When I tried to access: http://test.local/grav, I got some errors:

  • /var/www/html/grav/user/data does not exist
  • /var/www/html/grav/user/pages does not exist
  • /var/www/html/grav/user/plugins/error does not exist
  • /var/www/html/grav/user/plugins does not exist
  • /var/www/html/grav/user/themes does not exist

It’s not looking at the right folders, I think that the code at setup.php should do the trick, but it doesn’t:

   'user' => [
               'type' => 'ReadOnlyStream', 
               'prefixes' => [
                   '' => ["user/{$folder}"],

So, what’s wrong?

Your setup should work, though it looks like there may be some issues with problems plugin. I’m going to try this locally and report back to you how it went.

In the meantime you can test by removing or disabling the problems plugin.

It’s just works, thanks.

I can verify that the issue lies in the Problems plugin which has hardcoded folders it looks for. There’s no harm of having those folders even in multi-site setup, so you can either add those back or just keep problems plugin disabled.

Also admin has some hardcoded locations it uses, and I think so has CLI commands, so Ibe careful when using those – or just go ahead and test them out and report any issues back to us!

Yes, I tried to install some plugins with admin interface and it installed in the user/plugins directory instead of the user/site/plugin directory. It’s not that bad have all images, plugins and themes shared between sites, I was thinking if there is a way to just have the pages dir isolated by site, so I can use “themer” plugin to change themes between sites, but also have only one admin for all.