Installing plugin with dependencies fails
I am trying to install the carddav plugin for Roundcube, but this fails because the plugin requires separate dependencies.
I got it working by manually installing these dependencies in the plugin directory. This at first also failed, because composer requires a lot of RAM for its dependency resolutions mechanism.
So the full steps to do this in full were:
- Increase memory in app settings (I tried with 2GB)
- Open the terminal and run:
cd /app/data/plugins/carddav && composer install --no-dev --optimize
- Update the
/app/data/customconfig.phpfile (as listed in de docs)
- Decrease memory
Afterwards, this worked fine.
So I suggest adding a little bit of documentation to the Roundcube documentation page listing this.
I had the benefit of having year of professional experience in PHP development to figure this out, but not every user might.
Thank you for your great work. I've been a happy user of Cloudron for years now!
Wow, that was fast! Thank you.
One small nit: I would add that the composer command needs to be run from within the plugin installation directory.
I also forgot one step:
chown -R www-data: ., also in the plugin installation directory.