Installing Roundcube Plugin

Hello, I am having problems installing plugins and Composer to Roundcube. Roundcube is installed and working without any problems sending and receiving mail. The problem seems to be that Yunohost will not let me change file and folder permissions to be writeable.

My YunoHost server

Hardware: VPS on a dedicated server I rent
YunoHost version: 3.6.5.3 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I am trying to install Composer so I can install Roundcube plugins. However, I am getting errors such as the following when I try to install composer. I cannot make the folders writeable no matter what I do:

admin@mytesttoo:/var/www/roundcube$ curl -s https://getcomposer.org/installer | php
All settings correct for using Composer
The installation directory “/var/www/roundcube” is not writable
admin@mytesttoo:/var/www/roundcube$ curl -s https://getcomposer.org/installer | php
All settings correct for using Composer
The installation directory “/var/www/roundcube” is not writable
admin@mytesttoo:/var/www/roundcube$
Network error: Software caused connection abort

My Yunohost install can be found here: https://mytesttoo.com/yunohost
My Yunohost Roundcube install can be found here: https://mytesttoo.com

admin@mytesttoo:/var/www/roundcube$ curl -s https://getcomposer.org/installer | php
All settings correct for using Composer
The installation directory "/var/www/roundcube" is not writable
admin@mytesttoo:/var/www/roundcube$ curl -s https://getcomposer.org/installer | php
All settings correct for using Composer
The installation directory "/var/www/roundcube" is not writable
admin@mytesttoo:/var/www/roundcube$
Network error: Software caused connection abort

Thanks,
Steve

you are doing a wrong approach to the problem. I do have several plugins install with no problem…

the trick is very simple /var/www/roundcube/composer.phar require pluging-name

Example:
navigate to https://plugins.roundcube.net/explore/
choose one, go to /var/www/roundcube/
type "

root@miradordemontepinar:/var/www/roundcube# ./composer.phar require melanie2/mobile
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^0.4.9 for melanie2/mobile
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  • Installing melanie2/jquery_mobile (1.2): Loading from cache
    Do you want to activate the plugin jquery_mobile? [N|y] y
    Updated local config at /var/www/roundcube/config/config.inc.php
  • Installing melanie2/mobile (0.4.9): Loading from cache
    Do you want to activate the plugin mobile? [N|y] y
    Updated local config at /var/www/roundcube/config/config.inc.php
    Creating plugin config file
    Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
    Writing lock file
    Generating autoload files
    root@miradordemontepinar:/var/www/roundcube#

    And bob’s your uncle…

Any doubt?

Ah! Thank you! But unfortunately, I screwed everything up and had to reinstall it all! LMAO

I tried to install Synapse while waiting for a reply and it hosed the entire thing. Can’t access anything and it runs in an infinite loop with pac-man running running across the screen and saying “loading…”. So, I reinstalled the OS and just now reinstalling Yunohost. I’ll install Roundcube soon and get back to you. Thanks. :slight_smile:

I would listen to composer complaining about root access and perform the command with the roundcube user :wink:

cd /var/www/roundcube
sudo -u roundcube ./composer.phar require melanie2/mobile
1 Like