Question
How to make custom changes in Roundcube/Horde configuration files persistent?
For example, increase memory_limit
value.
Answer
-
Connect to the server via SSH.
-
Create a special
php.ini.tpl.local
file usingtouch
command:- For Roundcube:
/usr/share/psa-roundcube/config/php.ini.tpl.local
- For Horde:
/etc/psa-webmail/horde/horde/php.ini.tpl.local
- For Roundcube:
-
Add required custom changes, for example, increase the
memory_limit
value to512M
and save the file:[PHP]
memory_limit = 512M -
Re-install Roundcube/Horde to apply changes.
Note: php.ini.tpl.local
files can be created before Roundcube/Horde installation. In that case, it is not needed to re-install webmails.