Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 18 of 18
  1. #16
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Automate Roundcube configuration customization via cPanel and WHM script hooks

    Quote Originally Posted by bigdessert View Post
    ok, turning the caching off instantly fixed the problem for the one client having troubles. How can we make this permanent so that the next time cpanel updates it will not overwrite my setting?
    Thank you for the feedback and information. As was suggested by Craigles, it is possible to automate customizations after an update using the built-in script hooks, such as preupcp and postupcp. For additional clarification please reference the following documentation:
    Quote Originally Posted by Craigles View Post
    You could try adding those commands to /scripts/postupcp - that way any cpanel update will call that file after completing it's routines.

    #!/bin/sh

    cp -pv /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php.backup

    perl -p -i -e 's/^\$rcmail_config.*enable_caching.*TRUE\;/\$rcmail_config\[''\'\''enable_caching''\'\'']\ \=\ FALSE\;/g' /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

    That's how I would do it anyway - i'm sure one of the cpanel tech's will correct me if I'm wrong
    For purposes of automation in a custom script using the built-in hooks (e.g., "/scripts/postupcp"), I would revise the suggestion to the following example that I believe should work with minimal difficulty:
    Code:
    #!/bin/sh
    /bin/echo
    /bin/echo "Post script running..."
    
    /bin/cp -fpv /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php.backup
    
    /usr/bin/perl -p -i -e 's/^\$rcmail_config.*enable_caching.*TRUE\;/\$rcmail_config\[''\'\''enable_caching''\'\'']\ \=\ FALSE\;/g' /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
    
    /bin/echo "Post script completed..."
    /bin/echo

  2. #17
    Member
    Join Date
    Oct 2005
    Posts
    121

    Default

    Roundcube cache errors still are a problem on several servers. Turning off caching fixes the problem, but every roundcube update turns it back on...

  3. #18
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by Serra View Post
    Roundcube cache errors still are a problem on several servers. Turning off caching fixes the problem, but every roundcube update turns it back on...
    To the best of my knowledge I believe that caching in Roundcube is now disabled by default, at least I see it is disabled when forcefully re-installing Roundcube in cPanel & WHM version 11.28. As the IMAP/POP mail server, Courier or Dovecot, is hosted locally, that is in the same system that serves cPanel, I believe that Webmail should not require additional caching in Roundcube over what is already handled by the local mail server.

Similar Threads & Tags
Similar threads

  1. Roundcube contact list missing
    By mcaceres in forum E-mail Discussions
    Replies: 1
    Last Post: 06-23-2010, 06:42 PM
  2. RoundCube Address Contacts Missing
    By sharweb in forum E-mail Discussions
    Replies: 11
    Last Post: 02-05-2010, 07:05 PM
  3. Roundcube 0.2.1 now missing from current release?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-28-2009, 03:29 PM
  4. Roundcube missing from clients cPanel
    By Forconin in forum E-mail Discussions
    Replies: 10
    Last Post: 05-30-2009, 01:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube