I've helped @MikeJones and he is now set up. A resume of how we solved it should anyone run into similar issues.
Accessing a vm as a user without a home directory.
composer global require extiverse/helper
The above command did not create a directory under the home directory because it did not exist. To solve this we:
- create a custom directory inaccessible to the web:
/var/extiverse-helper
- install the helper there:
cd /var/extiverse-helper && composer require extiverse/helper
; note that we dropped global
here because the command needs to install into the current directory
- now link the binary to a directory inside your
PATH
, this is usually /usr/local/bin
you can check what directories are available using echo "$PATH"
, we did this: ln -s /var/extiverse-helper/vendor/bin/extiverse /usr/local/bin/extiverse
- from now on you can access the
extiverse
binary on your whole server (so also in you flarum directories) without needing to add php
or sudo
before it. Make sure to authentication ahead of use extiverse auth
.