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" >
2016-04-19 12:48:51 -05:00
< a href = "/index.html" target = "_blank" >
< 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 >
2016-10-24 11:13:14 -05:00
< pre > < code > baseurl=https://packages.inverse.ca/SOGo/release/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 >
2016-10-24 11:13:14 -05:00
< li > On Debian, make sure you have SOGo repo like below: < code > https://packages.inverse.ca/SOGo/nightly/debian jessie jessie< / code > < / li >
< li > On Ubuntu, make sure you have SOGo repo like below: < code > https://packages.inverse.ca/SOGo/nightly/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 >
< 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:
2016-05-19 06:51:20 -05:00
< a href = "http://www.iredmail.org/forum/" > http://www.iredmail.org/forum/< / a > .< / p > < div class = "footer" >
< 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 = "http://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
< / div >
< script type = "text/javascript" >
2016-03-26 23:50:53 -06:00
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
< / script >
< / body > < / html >