5/29/2019

Zimbra 8.8.11 install on Ubuntu 16.04

Zimbra 8.8.11 install on Ubuntu 16.04
1. ติดตั้ง Ubuntu 16.04 Set network , apt, ntp, update , upgrade ให้เรียบร้อย
2. Add Disk เข้า Ubuntu ตามข้อ 1. mount /opt
3. แก้ fstab
/dev/sdb1 /opt ext4 defaults 0 0

4. Download zimbra software Version ที่ต้องการ แล้วเอาไฟล์ไปไว้ Server ข้อ 1. ใช้ scp หรือ wget ก็ได้
https://www.zimbra.com/downloads/zimbra-collaboration-open-source/archives/
5. แตกไฟล์ ที่ Load มาได้
  1. tar -xvf zcs8.XXXXXX

6. ติดตั้ง Program ที่ต้องใช้
  1. apt-get update -y
  2. apt-get install -y software-properties-common
  3. apt-get install -y language-pack-en-base
  4. export LC_ALL=en_US.UTF-8 && export LANG=en_US.UTF-8
  5. apt-get update -y && apt-get install -y iputils-ping

7. แก้ hosts และ resolv.conf
  1. nano /etc/hosts
192.168.2.114 zimbra.sci.com zimbra

  1. nano /etc/resolv.conf
nameserver 8.8.8.8

8. ติดตั้ง dnsmasq
  1. apt-get install dnsmasq

แก้ config
  1. nano /etc/dnsmasq.conf

แก้ดังนี้
server=8.8.8.8
listen-address=127.0.0.1
domain=sci.com
mx-host=sci.com,zimbra.sci.com,0
address=/zimbra.sci.com/192.168.2.114
service dnsmasq restart

9. Test run
dig mx sci.com
dig zimbra.sci.com

10. สำคัญถ้าไม่ทำไม่ผ่าน
  1. nano /etc/apt/sources.list.d/zimbra.list
(เป็น http ถึงจะผ่าน ลบ s ออก)
สำหรับ ubuntu 16.04 ใช้เป็น xenial
8.8.7
deb [arch=amd64] http://repo.zimbra.com/apt/87 xenial zimbra
deb [arch=amd64] http://repo.zimbra.com/apt/zv1 xenial zimbra
deb-src [arch=amd64] http://repo.zimbra.com/apt/87 xenial zimbra


8.8.11
deb [arch=amd64] http://repo.zimbra.com/apt/87 xenial zimbra
deb [arch=amd64] http://repo.zimbra.com/apt/8811 xenial zimbra
deb-src [arch=amd64] http://repo.zimbra.com/apt/87 xenial zimbra


สำหรับ ubuntu 12.04, 14.04 ใช้เป็น trusty
8.8.11
deb [arch=amd64] http://repo.zimbra.com/apt/87 trusty zimbra
deb [arch=amd64] http://repo.zimbra.com/apt/8811 trusty zimbra
deb-src [arch=amd64] http://repo.zimbra.com/apt/87 trusty zimbra


เพิ่มเติม https://wiki.zimbra.com/wiki/Zimbra_Collaboration_repository

11. add key สำคัญ ต้องใช้ถ้าไม่ Run จะไม่ผ่าน ฟ้อง GPG key ไม่ผ่าน
  1. apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BE6ED79
  2.  

Error :
Importing Zimbra GPG key
ERROR: Unable to retrive Zimbra GPG key for package validation
Please fix system to allow normal package installation before proceeding

12. Test ว่าหา zimbra program เจอหรือไม่ ต้องมีค่าออกมาคือเจอ pack ที่ค้นหา
  1. apt-get install aptitude
  2. apt-get update
  3. aptitude search zimbra-nginx

13. เริ่มติดตั้ง เข้าไปที่ Folder ที่แตกไว้ในข้อ 5.
  1. ./install.sh

Y (ยอมรับเงือนไข)
N (*** สำคัญไม่ต้องตอบ Y เพราะ ถ้าตอบ Y sources list จะถูกแก้เป็น HTTPS จะ ลงไม่ได้)
Use Zimbra's package repository [Y] y
Configuring package repository
ERROR: Unable to install packages via apt-get
Please fix system to allow normal package installation before proceeding
(ไม่ผ่าน)

https://forums.zimbra.org/viewtopic.php?t=66069

Y ตาม Default หรือเลือกเอาว่าจะลงอะไรบ้าง รอ จนกว่าจะเสร็จ
No ตอนจะเปลี่ยน DNS และ Domain Name เพราะ Set ไว้ตั้งแต่ลง Ubuntu แล้ว
7 ---> 4 เปลี่ยนรหัส admin ตั้งตามที่ต้องการ แต่ห้ามซ้ำกับรหัส user root ทีใช้
r
5 เปลี่ยน DNS 192.168.0.253
แล้วsave yes modifile รอจนกว่าจะเสร็จ
14. ทดลองเข้า
https://192.168.2.114/7071

ข้อมูลเพิ่มเติม
https://blog.zimbra.com/2018/01/install-zimbra-collaboration-8-8-ubuntu-16-04-lts/https://blog.christosoft.de/2015/06/zimbra-redirect-http-to-https/

เข้าได้ใช้งานได้ Restore Data จาก Full backup
****ใช้ zmbkpose ต้องสร้างชื่อไว้ก่อนแล้วค่อยเอาเข้า****
https://intranet.sci.com/blog.php?u=3&b=389
https://intranet.sci.com/blog.php?u=3&b=390
ติดตั้ง Program อื่น ๆ เพิ่มเติม
https://intranet.sci.com/blog.php?u=281&b=627

No comments:

Post a Comment