Pre-configure Horde for all users.
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?
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?
-
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 $_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 folder0 -
Hello :) I am happy to see you were able to determine a solution. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
2 comments