2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2016-03-26 23:50:53 -06:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Upgrade SOGo from v2 to v3< / title >
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
< / head >
< body >
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-04-19 12:48:51 -05:00
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-03-26 23:50:53 -06:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "upgrade-sogo-from-v2-to-v3" > Upgrade SOGo from v2 to v3< / h1 >
2016-03-27 06:18:57 -06:00
< div class = "toc" >
< ul >
< li > < a href = "#upgrade-sogo-from-v2-to-v3" > Upgrade SOGo from v2 to v3< / a > < ul >
< li > < a href = "#upgrade-sogo-on-rhelcentos" > Upgrade SOGo On RHEL/CentOS< / a > < / li >
< li > < a href = "#upgrade-sogo-on-debianubuntu" > Upgrade SOGo On Debian/Ubuntu< / a > < / li >
< li > < a href = "#troubleshooting" > Troubleshooting< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
2016-03-26 23:50:53 -06:00
< p > SOGo-3.x has a shinny new web UI, you can try the online demo here:
< a href = "http://sogo.nu" > http://sogo.nu< / a > (search 'demo' on the page).< / p >
< p > SOGo team offers support for both SOGo v3 and v2, so it's totally fine if you
want to stick to SOGo-2.x. In case you want to try SOGo-3.x, please try steps
below.< / p >
2016-03-27 06:18:57 -06:00
< h2 id = "upgrade-sogo-on-rhelcentos" > Upgrade SOGo On RHEL/CentOS< / h2 >
2016-03-26 23:50:53 -06:00
< ul >
2016-05-04 09:05:22 -05:00
< li > Backup config files first:< / li >
2016-03-26 23:50:53 -06:00
< / ul >
2016-05-05 09:54:51 -05:00
< pre > < code > mkdir -p /root/sogo-backup/{sogo,sysconfig}
2016-05-04 09:05:22 -05:00
cp /etc/sogo/* /root/sogo-backup/sogo/
cp /etc/sysconfig/sogo /root/sogo-backup/sysconfig/
2016-03-26 23:50:53 -06:00
< / code > < / pre >
< ul >
< li > Open file < code > /etc/yum.repos.d/sogo.repo< / code > , change the < code > baseurl=< / code > setting to:< / li >
< / ul >
2017-01-14 23:35:20 -06:00
< pre > < code > baseurl=https://packages.inverse.ca/SOGo/nightly/3/rhel/$releasever/$basearch/
2016-03-26 23:50:53 -06:00
< / code > < / pre >
< ul >
< li > Remove < code > sope< / code > and < code > sogo< / code > packages first, then install SOGo again:< / li >
< / ul >
< pre > < code > yum remove " sope*" " sogo*"
yum install sogo sogo-ealarms-notify sogo-tool sogo-activesync sope49-gdl1-mysql sope49-gdl1-postgresql
< / code > < / pre >
< ul >
< li > Restore backup files:< / li >
< / ul >
2016-05-04 09:05:22 -05:00
< pre > < code > cp /root/sogo-backup/sogo/* /etc/sogo/
cp /root/sogo-backup/sysconfig/sogo /etc/sysconfig/
2016-03-26 23:50:53 -06:00
< / code > < / pre >
< ul >
< li > Restart SOGo service:< / li >
< / ul >
< pre > < code > service sogod restart
< / code > < / pre >
2016-03-27 06:18:57 -06:00
< h2 id = "upgrade-sogo-on-debianubuntu" > Upgrade SOGo On Debian/Ubuntu< / h2 >
2016-03-26 23:50:53 -06:00
< ul >
2016-05-04 09:05:22 -05:00
< li > Backup config files first:< / li >
2016-03-26 23:50:53 -06:00
< / ul >
2016-05-05 09:54:51 -05:00
< pre > < code > mkdir -p /root/sogo-backup/{sogo,default}
2016-05-04 09:05:22 -05:00
cp /etc/sogo/* /root/sogo-backup/sogo/
cp /etc/default/sogo /root/sogo-backup/default/
2016-03-26 23:50:53 -06:00
< / code > < / pre >
< ul >
< li >
< p > Open file < code > /etc/apt/sources.list< / code > ,< / p >
2016-10-24 11:13:14 -05:00
< div class = "admonition warning" >
< p class = "admonition-title" > Warning< / p >
< p > Please make sure you have correct distribution name (the < code > jessie< / code > , < code > xenial< / code > in examples below) in < code > /etc/apt/sources.list< / code > .< / p >
< / div >
2016-03-26 23:50:53 -06:00
< ul >
2017-01-14 23:35:20 -06:00
< li > On Debian, make sure you have SOGo repo like below: < code > https://packages.inverse.ca/SOGo/nightly/3/debian jessie jessie< / code > < / li >
< li > On Ubuntu, make sure you have SOGo repo like below: < code > https://packages.inverse.ca/SOGo/nightly/3/ubuntu xenial xenial< / code > < / li >
2016-03-26 23:50:53 -06:00
< / ul >
< / li >
< li >
< p > Remove < code > sope< / code > and < code > sogo< / code > packages first, then install SOGo again:< / p >
< / li >
< / ul >
2016-05-04 09:05:22 -05:00
< pre > < code > apt-get remove " libsope*" " sogo*"
2016-03-26 23:50:53 -06:00
apt-get update
apt-get install sogo sogo-activesync sope4.9-gdl1-mysql sope4.9-gdl1-postgresql
< / code > < / pre >
< ul >
< li > Restore backup files:< / li >
< / ul >
2016-05-04 09:05:22 -05:00
< pre > < code > cp /root/sogo-backup/sogo/* /etc/sogo/
cp /root/sogo-backup/default/sogo /etc/default/
2016-03-26 23:50:53 -06:00
< / code > < / pre >
2016-11-22 21:04:23 -06:00
< ul >
< li > Make sure SOGo log file is owned by SOGo daemon user and group:< ul >
< li > On Linux, user/group names are: < code > sogo:sogo< / code > .< / li >
< li > on FreeBSD, user/group names are: < code > sogod:sogod< / code > .< / li >
< li > on OpenBSD, user/group names are: < code > _sogo:_sogo< / code > .< / li >
< / ul >
< / li >
< / ul >
< pre > < code > chown sogo:sogo /var/log/sogo/sogo.log
< / code > < / pre >
2016-03-26 23:50:53 -06:00
< ul >
< li > Restart SOGo service:< / li >
< / ul >
< pre > < code > service sogo restart
< / code > < / pre >
< h2 id = "troubleshooting" > Troubleshooting< / h2 >
2016-05-04 09:05:22 -05:00
< p > If SOGo doesn't work as expected, please check its log file
< code > /var/log/sogo/sogo.log< / code > . If you don't understand what the error message means,
please extract related error message and post to our online support forum:
2017-10-26 08:13:46 -05:00
< a href = "https://forum.iredmail.org/" > https://forum.iredmail.org/< / a > .< / p > < div class = "footer" >
2017-11-16 21:48:44 -06:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://bitbucket.org/zhb/iredmail-docs/src" > BitBucket repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2016-05-19 06:51:20 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2016-03-26 23:50:53 -06:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2016-03-26 23:50:53 -06:00
< / script >
< / body > < / html >