How to install plugin to roundcube configured with ISP

Discussion in 'Installation/Configuration' started by Poliman, Jul 24, 2018.

  1. Poliman

    Poliman Member

    I would like to install this plugin, which could help with set filters. I downloaded, changed name and added directory to /etc/roundcube/plugins:
    Code:
    root@s1:/etc/roundcube/plugins# ls
    acl                         database_attachments  enigma   http_authentication  markasjunk2        password     squirrelmail_usercopy
    additional_message_headers  dovecot-impersonate   filters  jqueryui             newmail_notifier   sauserprefs  zipdownload
    compose-addressbook         emoticons             help     managesieve          new_user_identity  sieverules
    
    but it does not work. Besides, when I log into roundcube and click About in left upper corner, I can see installed plugins list (I also attach screenshot):
    archive, filesystem_attachments, jqueryui and zipdownload.

    I have also /usr/share/roundcube/plugins path but in plugin's guide does not exists any information about put something to this path. Does anybody know how to make this plugin work?
     

    Attached Files:

  2. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    you need to enable plugins in your /etc/roundcube/config.inc.php like
    Code:
    $config['plugins'] = array(
    "help", "database_attachments",  "acl", "markasjunk2",
    "additional_message_headers", "newmail_notifier", "zipdownload",
    "jqueryui", "ispconfig3_account", "ispconfig3_autoreply", "ispconfig3_autoselect", "ispconfig3_pass", "ispconfig3_spam", "ispconfig3_fetchmail", "ispconfig3_filter", "ispconfig3_forward", "ispconfig3_wblist"
    );
    
    if you run debian, plugins are placed to /usr/share/roundcube/plugins
    and afterwards a symlink from /var/lib/roundcube/plugins is to be made.
     
  3. Poliman

    Poliman Member

    Yes, I did like this but nothing happens.:D I have:
    Code:
    $config['plugins'] = array(
    'archive',
    'zipdownload',
    'filters',
    );
    I use Ubuntu 16.04 LTS. Moreover on attached screen I don't see enabled "Filters" plugin. I suppose it should be visible. ;)

    PS
    I found out about managesieve plugin which could also enable "Filters" tab in Roundcube but I am unable to implement it, because there is not only turn on it in above array but some modifications of Dovecot files. I can't find on the Internet some unambiguous tutorial for this. This one is the closest to truth and some docs.
    What about ispconfig3 plugins which you pasted in above post? ;)
     
    Last edited: Jul 25, 2018
  4. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    https://github.com/w2c/ispconfig3_roundcube
    the managesieve plugin is much better - however not the ispconfig way, but it can be done.

    if your filters plugin won't load, try adding
    Code:
    $config['debug_level'] = 4;
    
    to your config-file and see what it displays?
     
  5. Poliman

    Poliman Member

    Link, which you posted is some fork of managesieve? :) Debug line should be pasted inside /etc/roundcube/config.inc.php (currently there it does not exist)? Any restart needed? Currently without adding any line I have in log file something like this:
    Code:
    [26-Jul-2018 07:21:27 +0200]: PHP Error: Failed to load plugin file /var/lib/roundcube/plugins/filters/filters.php in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 173 (GET /roundcube/)
    First path from this code does not contain /filters/filters.php. Does it mean I should put plugin directory "filters" inside above path or symlink? Currently manual says it should be inside /etc/roundcube/plugins.

    EDIT
    I made it work! I added filters directory to /usr/share/roundcube/plugins/filters. After this symlinked it under /var/lib/roundcube/plugins like this:
    Code:
    root@s1:/var/lib/roundcube/plugins# ln -s /usr/share/roundcube/plugins/filters filters
    but I am still curious about link, which you posted is some fork of managesieve and do adding debug line require restart? ;)
     
    Last edited: Jul 26, 2018
    pvanthony likes this.
  6. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    no it's no fork of managesieved, it is a set of plugins to manage your email-account on ispconfig servers from within roundcube.
    no, adding the line does usually not require a restart - except in some rare non-default circumstances:
    if your php opcode cache does no revalidation on each request or after a short time, it may take longer or just a restart of php-service or apache to make the change live.
     
  7. Poliman

    Poliman Member

    Ok, got it. Thank you for detailed answer. ;)
    PS
    Could you look at this thread? I think you are experienced, so maybe you could help also there. ;)
     
  8. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    @Poliman there should be some answers for that in the forum if I my memory is correct. It should be easy to fix anyways. But I'd need to rebuild scenario probably and I'm not n the situation I'd like to do so, weather's too hot, not very productive ^^
     
    Poliman likes this.
  9. Poliman

    Poliman Member

    Yea, me too. Finally I resolved it. I wrote the fix in that thread. ;)
     
    ztk.me likes this.
  10. pvanthony

    pvanthony Active Member HowtoForge Supporter

    This helped me much.
    The solution above solved it for me. Doing the symlink did the trick!
     
    ahrasis likes this.

Share This Page