Knowledgebase

How to make custom changes in Roundcube/Horde configuration files persistent?

Making custom changes in Roundcube or Horde configuration files persistent involves modifying the configuration files directly and ensuring that these changes are not overwritten during software updates or server reconfigurations. Here are the steps you can take:

Roundcube:

  1. Locate Configuration Files:

    • The main configuration file for Roundcube is typically located at:
      Arduino
      /var/www/html/roundcube/config/config.inc.php
  2. Backup the Configuration File:

    • Before making any changes, it's important to create a backup of the configuration file in case anything goes wrong.
  3. Make Custom Changes:

    • Open the configuration file using a text editor and make the necessary customizations.
  4. Lock the Configuration File:

    • To prevent the file from being overwritten during updates, you can set the permissions to make it read-only for the web server user. Use the following command:
      Arduino
      chmod 444 /var/www/html/roundcube/config/config.inc.php

Horde:

  1. Locate Configuration Files:

    • The main configuration file for Horde is typically located at:
      Arduino
      /usr/share/psa-horde/config/conf.php
  2. Backup the Configuration File:

    • Before making any changes, create a backup of the configuration file.
  3. Make Custom Changes:

    • Open the configuration file with a text editor and make the necessary customizations.
  4. Use Local Overrides:

    • Horde allows for local overrides through specific files. For example, if you want to override specific preferences, you can use a file like:
      lua
      /usr/share/psa-horde/config/prefs.local.php
  5. Lock the Configuration Files:

    • To prevent the main configuration file from being overwritten during updates, you can set it to read-only for the web server user:
      bash
      chmod 444 /usr/share/psa-horde/config/conf.php

Remember, locking configuration files in this manner means that you will need to manually update them in the future if you want to make changes.

Also, be cautious when editing configuration files, as incorrect changes could potentially disrupt the functionality of Roundcube or Horde. Always back up files before making any modifications.

  • 0 Users Found This Useful
Was this answer helpful?