King0770-Notes-Installing-Proxy-For-Single-Server: Difference between revisions
No edit summary |
No edit summary |
||
Line 71: | Line 71: | ||
zmprov gad | zmprov gad | ||
</pre></code> | </pre></code> | ||
More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes | |||
[[Category:Community Sandbox]] | [[Category:Community Sandbox]] | ||
[[Category:Command Line Interface]] | [[Category:Command Line Interface]] | ||
[[Category:King0770-Notes]] |
Latest revision as of 15:33, 2 April 2020
If you are using a single server and need to install the proxy service, you will need to manually install the zimbra-proxy package, and add proxy to the Service listing in the machine.
To install the proxy package, you will need the Zimbra install directory.
As an example, here are the commands used to setup proxy on a single server node.
Example:
1) su - root
2) cd /root/zcs-NETWORK-8.6.0_GA_1153.RHEL6_64.20141215151258/
3) cd packages
4) rpm -ivh zimbra-proxy-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm
5) rpm -ivh zimbra-memcached-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm
6) su - zimbra
7) zmprov -l ms `zmhostname` -- +zimbraServiceEnabled proxy +zimbraServiceInstalled proxy
8) zmprov -l ms `zmhostname` -- +zimbraServiceEnabled memcached +zimbraServiceInstalled memcached
9) /opt/zimbra/libexec/zmproxyconfig -o -e -w -H mail.example.com **or** /opt/zimbra/libexec/zmproxyconfig -o -e -w -H `zmhostname`
10) /opt/zimbra/libexec/zmproxyconfig -o -e -m -H mail.example.com **or** /opt/zimbra/libexec/zmproxyconfig -o -e -m -H `zmhostname`
Check the settings with the following command; note the -l option.
zmprov -l gs `zmhostname` zimbraMailReferMode zimbraMailPort zimbraMailSSLPort zimbraReverseProxyLookupTarget zimbraMailMode zimbraMailProxyPort zimbraMailSSLProxyPort zimbraReverseProxyHttpEnabled zimbraReverseProxyMailMode
Should see something like...
# name mail.example.com
zimbraMailMode: both
zimbraMailPort: 8080
zimbraMailProxyPort: 80
zimbraMailReferMode: reverse-proxied
zimbraMailSSLPort: 8443
zimbraMailSSLProxyPort: 443
zimbraReverseProxyHttpEnabled: TRUE
zimbraReverseProxyLookupTarget: TRUE
zimbraReverseProxyMailMode: https
Then do a complete ZCS shutdown
zmcontrol stop
Make sure there are no zimbra processes running
ps -fu zimbra
Start up ZCS & check status
zmcontrol start
zmcontrol status
After the start up, run a couple of zmprov commands (quick test to make sure there are no errors)
zmprov gas
zmprov gad
More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes