I’m playing around with a server setup and grav for a while now. I’ve set up a server environment inside a virtualbox virtual machine running arch linux. It runs an apache 2.4 server with php 5.6 and of course grav which is 1.0.4 at the moment of writing.
Apache runs with my user and group. Grav is placed in the document root which is
The virtual machine shares a folder with my host system which is mounted at
I made a symlink inside the doc root to access this share directly
/srv/http/virtual/. The shared folder uses a group
vboxsf and my user is a member of this group.
With this setup I can develop sites on my host system and have them presented by the virtual server.
I wanted to setup grav to use this system and tried different things.
At first I had multiple grav instances for every site for example
/media/sf_shared/grav-site. This was ok but rather slow.
So I placed grav inside the doc root directly on the virtual server. But now I don’t have access to the user folder any longer. I read through the Symbolic Links section on learn.getgrav.org and thought I can symlink the user folder. So I placed the user folder at
/media/sf_shared/grav-user-folder/ and made a symlink inside grav
The pages show up in the browser but I have no control via
/bin/gpm. For example if I try to install a plugin I get
invalid cross-device link at the moment where the files have to be copied from the cache folder to the destination inside the user folder.
I don’t know how to realise my idea of shared access to files in these two environments using grav.
Is it wrong to use symlinks to user folders like this? Is there something I’m missing. Is it a good idea to realise it this way?