iredmail-doc/en_US/upgrade/0-upgrade.sogo.2.to.3.md

92 lines
2.1 KiB
Markdown
Raw Normal View History

2016-03-26 23:50:53 -06:00
# Upgrade SOGo from v2 to v3
2016-03-27 06:18:57 -06:00
[TOC]
2016-03-26 23:50:53 -06:00
SOGo-3.x has a shinny new web UI, you can try the online demo here:
<http://sogo.nu> (search 'demo' on the page).
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.
2016-03-27 06:18:57 -06:00
## Upgrade SOGo On RHEL/CentOS
2016-03-26 23:50:53 -06:00
2016-05-04 09:05:22 -05:00
* Backup config files first:
2016-03-26 23:50:53 -06:00
```
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
```
* Open file `/etc/yum.repos.d/sogo.repo`, change the `baseurl=` setting to:
```
baseurl=http://inverse.ca/rhel-v3/$releasever/$basearch/
```
* Remove `sope` and `sogo` packages first, then install SOGo again:
```
yum remove "sope*" "sogo*"
yum install sogo sogo-ealarms-notify sogo-tool sogo-activesync sope49-gdl1-mysql sope49-gdl1-postgresql
```
* Restore backup files:
```
2016-05-04 09:05:22 -05:00
cp /root/sogo-backup/sogo/* /etc/sogo/
cp /root/sogo-backup/sysconfig/sogo /etc/sysconfig/
2016-03-26 23:50:53 -06:00
```
* Restart SOGo service:
```
service sogod restart
```
2016-03-27 06:18:57 -06:00
## Upgrade SOGo On Debian/Ubuntu
2016-03-26 23:50:53 -06:00
2016-05-04 09:05:22 -05:00
* Backup config files first:
2016-03-26 23:50:53 -06:00
```
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
```
* Open file `/etc/apt/sources.list`,
* On Debian, please replace URL `http://inverse.ca/downloads/SOGo/Debian/` by: `http://inverse.ca/debian-v3/`
* On Ubuntu, please replace URL `http://inverse.ca/downloads/SOGo/Ubuntu/` by: `http://inverse.ca/ubuntu-v3/`
* Remove `sope` and `sogo` packages first, then install SOGo again:
```
2016-05-04 09:05:22 -05:00
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
```
* Restore backup files:
```
2016-05-04 09:05:22 -05:00
cp /root/sogo-backup/sogo/* /etc/sogo/
cp /root/sogo-backup/default/sogo /etc/default/
2016-03-26 23:50:53 -06:00
```
* Restart SOGo service:
```
service sogo restart
```
## Troubleshooting
2016-05-04 09:05:22 -05:00
If SOGo doesn't work as expected, please check its log file
`/var/log/sogo/sogo.log`. If you don't understand what the error message means,
please extract related error message and post to our online support forum:
<http://www.iredmail.org/forum/>.