Hi,
I have a VPS with Centos 7 64 bit, cPanel, WHM and root access.
I have two email domains on this server:
- domain1.com
- domain2.com
I need to set some default preferences for domain2.com, so I created the prefs.local.php files inside the config directory of Horde, Imp, Turba, etc:
- /usr/local/cpanel/base/horde/config/
- /usr/local/cpanel/base/horde/imp/config
- /usr/local/cpanel/base/horde/kronolith/config
- /usr/local/cpanel/base/horde/trean/config
- /usr/local/cpanel/base/horde/turba/config
And I have put inside them the snippets of code with the changes and it works well.
However, those changes affect also domain1.com.
So, I googled and found out that I should domain prefferences, and I must not use:
- prefs.local.php
But instead, I must use:
- prefs-domain1.com.php
- prefs-domain2.com.php
Also I must edit:
- /usr/local/cpanel/base/horde/config/conf.php
And change:
$conf['vhosts'] = false;
to:
$conf['vhosts'] = true;
And afterwards restart Apache:
systemctl restart httpd.service
However, this is not working in neither one of the domains.
What am I missing or doing wrong?
Can anybody tell me is the correct way of making this work?
I have a VPS with Centos 7 64 bit, cPanel, WHM and root access.
I have two email domains on this server:
- domain1.com
- domain2.com
I need to set some default preferences for domain2.com, so I created the prefs.local.php files inside the config directory of Horde, Imp, Turba, etc:
- /usr/local/cpanel/base/horde/config/
- /usr/local/cpanel/base/horde/imp/config
- /usr/local/cpanel/base/horde/kronolith/config
- /usr/local/cpanel/base/horde/trean/config
- /usr/local/cpanel/base/horde/turba/config
And I have put inside them the snippets of code with the changes and it works well.
However, those changes affect also domain1.com.
So, I googled and found out that I should domain prefferences, and I must not use:
- prefs.local.php
But instead, I must use:
- prefs-domain1.com.php
- prefs-domain2.com.php
Also I must edit:
- /usr/local/cpanel/base/horde/config/conf.php
And change:
$conf['vhosts'] = false;
to:
$conf['vhosts'] = true;
And afterwards restart Apache:
systemctl restart httpd.service
However, this is not working in neither one of the domains.
What am I missing or doing wrong?
Can anybody tell me is the correct way of making this work?