Pre-configure Horde for all users.

EneTar

Well-Known Member
Dec 19, 2015
156
12
18
Greece
cPanel Access Level
Root Administrator
Can I preconfigure Horde and set some preferences for all accounts/domains before they login for the first time? For example I want to set deleted messages to go at the trash folder and some other preferences.

I noticed that Horde is installed in /usr/local/cpanel/base/horde/

Which file should I edit to do what I want and will this file get overwritten after an update? I went to /usr/local/cpanel/base/horde/config/prefs.php and I saw this
IMPORTANT: DO NOT EDIT THIS FILE! DO NOT COPY prefs.php TO prefs.local.php!
* Local overrides ONLY MUST be placed in prefs.local.php or prefs.d/
So should I create the file in /usr/local/cpanel/base/horde/config/prefs.d/prefs.local.php and write there my php code to override prefs.php ?

Is the above correct, which way do you follow?
 

EneTar

Well-Known Member
Dec 19, 2015
156
12
18
Greece
cPanel Access Level
Root Administrator
The solution to this is to create a prefs.local.php for every application in HORDE for example

/config/prefs.local.php
/imp/config/prefs.local.php
and set there the values like
Code:
$_prefs['use_trash']['value'] = 1;
Each value has to be defined in the correct prefs.local.php.
To see examples and which values they can accept see the prefs.php.dist or prefs.php of each config folder
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

I am happy to see you were able to determine a solution. Thank you for updating us with the outcome.