Crell there is a docker image around that you might be able to take inspiration from. However just a community project so we might not be able to help with that.
You can manually create the config.php
file and import the initial database to work around the root folder needing to be writable. The whole reason the directory needs to be writable is to be able to create config.php
at the end of the installation wizard. Best would be to install Flarum on another system, then copy the files and database.
To answer the other question, yes it's possible to install Flarum from the command line instead of the web UI (there's a command documented somewhere), but it has the exact same requirements as the web wizard as it will then create the config.php
.
You'll also need to handle composer.json
, composer.lock
and the vendor
folder the the extension and dependency management. Flarum does not require those to be writable, but if you plan to run Composer inside of that environment they'll probably need to be writable as well.