Install Zimbra in Cloud-DigitalOcean: Difference between revisions
(Created page with "{{Unsupported}} {{Article Infobox|{{admin}}|{{ZCS 8.6}}||{{ZCS 8.5}}|||}} =Purpose= The purpose of this Wiki article is show how to install Zimbra Collaboration 8.x on a Clou...") |
No edit summary |
||
Line 16: | Line 16: | ||
In the creation of the Droplet, we will see different options to choose: | In the creation of the Droplet, we will see different options to choose: | ||
*'''Hostname:''' This it will be the hostname of our instance. Is better to use a TLD domain in Zimbra Collaboration, specially in this Cloud Environment. The future SSL deployment and administration it will be easier with a TLD domains. | *'''Hostname:''' This it will be the hostname of our instance. Is better to use a TLD domain in Zimbra Collaboration, specially in this Cloud Environment. The future SSL deployment and administration it will be easier with a TLD domains. | ||
*'''Size:''' The Size of the Droplet matters, specially in 8.x, we need to follow the [https://files.zimbra.com/website/docs/8.6/ZCS_System_Requirements_8.6.0.pdf System Requirements] guide, which tell us that we need | *'''Size:''' The Size of the Droplet matters, specially in 8.x, we need to follow the [https://files.zimbra.com/website/docs/8.6/ZCS_System_Requirements_8.6.0.pdf System Requirements] guide, which tell us that we need at least 8GB RAM at least in a Single Server deployment like this. But we can start with a 2vCPU 4GB of RAM Droplet, and move to a bigger instance if our workload need it - [More Info about the CPU and RAM amount http://wiki.zimbra.com/wiki/Performance_Recommendations_for_Virtualizing_Zimbra_with_VMware_vSphere#vCPU_Resources] | ||
*'''Region:''' We can choose between the different Data Centers around the World that DigitalOcean provide us, the best option here is select the region closer to us, or to our Customers. | *'''Region:''' We can choose between the different Data Centers around the World that DigitalOcean provide us, the best option here is select the region closer to us, or to our Customers. | ||
*'''Operating System:''' Zimbra Collaboration supports Ubuntu, RedHat and Suse, you can choose the OS that you prefer here, in this Wiki article, Ubuntu 14.04LTS. | *'''Operating System:''' Zimbra Collaboration supports Ubuntu, RedHat and Suse, you can choose the OS that you prefer here, in this Wiki article, Ubuntu 14.04LTS. |
Latest revision as of 14:20, 20 February 2015
Article Information |
---|
This article applies to the following ZCS versions. |
Purpose
The purpose of this Wiki article is show how to install Zimbra Collaboration 8.x on a Cloud Environment, in this case, over DigitalOcean which have Datacenters around the World and permit us change the hostname, and have internal IPv4 in case that we need it.
Note: This configuration or install guide is not supported 100% by Zimbra, and you should ask to your Zimbra Partner, or the Zimbra Professional Services before try this in production.
Creating the Droplet
First step is login inside the DigitalOcean website:
Once logged, click in Droplets section and please click in the Create Droplet button:
In the creation of the Droplet, we will see different options to choose:
- Hostname: This it will be the hostname of our instance. Is better to use a TLD domain in Zimbra Collaboration, specially in this Cloud Environment. The future SSL deployment and administration it will be easier with a TLD domains.
- Size: The Size of the Droplet matters, specially in 8.x, we need to follow the System Requirements guide, which tell us that we need at least 8GB RAM at least in a Single Server deployment like this. But we can start with a 2vCPU 4GB of RAM Droplet, and move to a bigger instance if our workload need it - [More Info about the CPU and RAM amount http://wiki.zimbra.com/wiki/Performance_Recommendations_for_Virtualizing_Zimbra_with_VMware_vSphere#vCPU_Resources]
- Region: We can choose between the different Data Centers around the World that DigitalOcean provide us, the best option here is select the region closer to us, or to our Customers.
- Operating System: Zimbra Collaboration supports Ubuntu, RedHat and Suse, you can choose the OS that you prefer here, in this Wiki article, Ubuntu 14.04LTS.
- SSH Keys: If you prefer to add the SSH Keys, you can in this step, in other case, the login will be with user/password.
Finally we will click on Create Droplet button.
And the Droplet creation will start. DigitalOcean will send us the IP, username and password by email.
Once the Droplet is finnally Up, we can see a lot of options to do with the Droplet:
- Power: We can power off or restart the Droplet.
- Access: If we need to change the username or password of the Droplet.
- Resize: This tab is very useful in case that we need to resize the Droplet, with more RAM, disk, etc.
- Snapshots: We can take snapshots of the Droplet, giving us some calm with it.
- Settings: We can change the hostname, kernel, etc.
- Graphs: In this option we can see the graphs about CPU, Bandwith, etc.
- Destroy: We can terminate the Droplet with this option
Creating the DNS records
Once we have the public IP, we can create and prepare the DNS Zone. In this case, we will not use SplitDNS, so the server will resolve the MX and A records from external DNS. This pictures are an example and are based in a cPanel DNS:
- Create an A entry with the same hostname like the Droplet
- Create an Mx entry with weight 10 and points to the A entry that we created before
- In cPanel we need to mark like Remote Mail Exchanger
Install Zimbra Collaboration 8.x
Once the Droplet is Up and running, is time to download the Zimbra Collaboration package and deploy it.
Download the package with the next command:
root@zimbra86:~# wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz --2015-01-22 17:10:35-- https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz Resolving files.zimbra.com (files.zimbra.com)... 54.230.8.107 Connecting to files.zimbra.com (files.zimbra.com)|54.230.8.107|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 733882340 (700M) [binary/octet-stream] Saving to: ‘zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz’ 100%[==============================================================================>] 733,882,340 37.1MB/s in 30s 2015-01-22 17:11:05 (23.6 MB/s) - ‘zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz’ saved [733882340/733882340]
Extract the package with the next command:
root@zimbra86:~# tar xzvf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-apache_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-core_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-dnscache_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-ldap_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-logger_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-memcached_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-mta_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-proxy_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-snmp_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-spell_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/packages/zimbra-store_8.6.0.GA.1153.UBUNTU14.64_amd64.deb zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/bin/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/bin/get_plat_tag.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/bin/zmValidateLdap.pl zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/bin/checkLicense.pl zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/bin/zmdbintegrityreport zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/data/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/data/versions-init.sql zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/YPL.txt zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/zcl.txt zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/zimbra_public_eula_2.5.txt zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/admin.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/Fedora Server Config.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/Import_Wizard_Outlook.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/Migration_Exch_Admin.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/Migration_Exch_User.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/MigrationWizard_Domino.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/MigrationWizard.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/OSmultiserverinstall.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/quick_start.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/RNZCSO_2005Beta.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/User Instructions for ZCS Import Wizard.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/Zimbra iCalendar Migration Guide.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/Zimbra_Release_Note.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/Zimbra Schema.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/docs/en_US/zimbra_user_guide.pdf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/modules/ zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/modules/getconfig.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/modules/packages.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/modules/postinstall.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/addUser.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/globals.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/util/utilfunc.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/readme_source_en_US.txt zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/readme_binary_en_US.txt zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/install.sh zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/README.txt root@zimbra86:~# cd zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/
Install all the dependencies before install Zimbra Collaboration:
root@zimbra86:~/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116# apt-get update root@zimbra86:~/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116# apt-get install libperl5.18 libaio1 unzip pax sysstat sqlite3
Now is turn to launch the Zimbra Collaboration install script, and click Yes in the License questions:
root@zimbra86:~/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116# ./install.sh Operations logged to /tmp/install.log.2123 Checking for existing installation... zimbra-ldap...NOT FOUND zimbra-logger...NOT FOUND zimbra-mta...NOT FOUND zimbra-dnscache...NOT FOUND zimbra-snmp...NOT FOUND zimbra-store...NOT FOUND zimbra-apache...NOT FOUND zimbra-spell...NOT FOUND zimbra-convertd...NOT FOUND zimbra-memcached...NOT FOUND zimbra-proxy...NOT FOUND zimbra-archiving...NOT FOUND zimbra-core...NOT FOUND PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT. License Terms for the Zimbra Collaboration Suite: http://www.zimbra.com/license/zimbra-public-eula-2-5.html Do you agree with the terms of the software license agreement? [N] y
The process will check the packages, etc:
Checking for prerequisites... FOUND: NPTL FOUND: netcat-openbsd-1.105-7ubuntu1 FOUND: sudo-1.8.9p5-1ubuntu1 FOUND: libidn11-1.28-1ubuntu2 FOUND: libpcre3-1:8.31-2ubuntu2 FOUND: libgmp10-2:5.1.3+dfsg-1ubuntu1 FOUND: libexpat1-2.1.0-4ubuntu1 FOUND: libstdc++6-4.8.2-19ubuntu1 FOUND: libperl5.18-5.18.2-2ubuntu1 FOUND: libaio1-0.3.109-4 FOUND: resolvconf-1.69ubuntu1.1 FOUND: unzip-6.0-9ubuntu1.1 Checking for suggested prerequisites... FOUND: pax FOUND: perl-5.18.2 FOUND: sysstat FOUND: sqlite3 Prerequisite check complete. Checking for installable packages Found zimbra-core Found zimbra-ldap Found zimbra-logger Found zimbra-mta Found zimbra-dnscache Found zimbra-snmp Found zimbra-store Found zimbra-apache Found zimbra-spell Found zimbra-memcached Found zimbra-proxy
And now, the installer will ask about what packages we should install, I've let the dnscache, and I've removed Proxy and memcached, but you can let them in Yes.
Select the packages to install Install zimbra-ldap [Y] Install zimbra-logger [Y] Install zimbra-mta [Y] Install zimbra-dnscache [Y] Install zimbra-snmp [Y] Install zimbra-store [Y] Install zimbra-apache [Y] Install zimbra-spell [Y] Install zimbra-memcached [Y] n Install zimbra-proxy [Y] n Checking required space for zimbra-core Checking space for zimbra-store Checking required packages for zimbra-store zimbra-store package check complete. Installing: zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-dnscache zimbra-snmp zimbra-store zimbra-apache zimbra-spell
The system will ask us about if we are sure, press Y.
The system will be modified. Continue? [N] y Removing /opt/zimbra Removing zimbra crontab entry...done. Cleaning up zimbra init scripts...done. Cleaning up /etc/ld.so.conf...done. Cleaning up /etc/security/limits.conf...done. Finished removing Zimbra Collaboration Server.
And now the system will ask us about if we want to change the domain, we will press yes and rename it to zimbra.io:
Installing packages zimbra-core......zimbra-core_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-ldap......zimbra-ldap_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-logger......zimbra-logger_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-mta......zimbra-mta_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-dnscache......zimbra-dnscache_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-snmp......zimbra-snmp_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-store......zimbra-store_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-apache......zimbra-apache_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-spell......zimbra-spell_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done Operations logged to /tmp/zmsetup01222015-171534.log Installing LDAP configuration database...done. Setting defaults... DNS ERROR resolving MX for zimbra86.zimbra.io It is suggested that the domain name have an MX record configured in DNS Change domain name? [Yes] Yes Create domain: [zimbra.io] zimbra.io done.
Add the Admin password following the next steps:
Address unconfigured (**) items (? - help) 7 Select, or 'r' for previous menu [r] 4 Password for admin@zimbra86.zimbra.io (min 6 characters): [fpDgjarc] WOURPASSWORDHERE
Press r to return to the main menu:
Select, or 'r' for previous menu [r] r
The final question is press a to apply and select Yes to the questions:
*** CONFIGURATION COMPLETE - press 'a' to apply Select from menu, or press 'a' to apply config (? - help) a Save configuration data to a file? [Yes] Save config in file: [/opt/zimbra/config.10363] Saving config in /opt/zimbra/config.10363...done. The system will be modified - continue? [No] y
After 4 minutes more or less, the installer will ask us about if we want to notify Zimbra about the installation, we will select Yes:
Notify Zimbra of your installation? [Yes] Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.6.0_GA_1153_UBUNTU14_64&MAIL=admin@zimbra.io Notification complete Setting up zimbra crontab...done. Moving /tmp/zmsetup01222015-171534.log to /opt/zimbra/log Configuration complete - press return to exit
We can check the resources consumption in real time with the htop command
Login in Zimbra Collaboration
Once installed, we can launch the Admin Console with the next URL https://FQDN:7071
Or via Web Client like regular user in the next URL https://FQDN
Next Steps
- Create the different COS for the users
- Create the users
- Buy an install a Commercial SSL certificate
- Prepare some Backups with the DigitalOcean API