IRedMail/FAQ/Upgrade.iRedAPD

From iRedMail

(Difference between revisions)
Jump to: navigation, search
ZhangHuangbin (Talk | contribs)
(Created page with ' * Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1.3.8.tar.bz2. * Upload it to your iRedMail server. Assume it's /root/iRedAPD-1.3.8…')
Newer edit →

Revision as of 01:16, 21 September 2012

  • Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1.3.8.tar.bz2.
  • Upload it to your iRedMail server. Assume it's /root/iRedAPD-1.3.8.tar.bz2 on the server.
  • Extract downloaded package and move to /opt/.
Terminal:
# tar xjf /root/iRedAPD-1.3.8.tar.bz2 -C /opt/

You get a new directory: /opt/iRedAPD-1.3.8/.

  • Remove symbol link of old release:
Terminal:
# rm -i /opt/iredapd               # <- Don't not end with '/'.
  • Create symbol link to the latest release:
Terminal:
# cd /opt/
# ln -s iRedAPD-1.3.8 iredapd
  • Set correct owner and permission:
Terminal:
# chown -R iredapd:iredapd /opt/iredapd
# chmod -R 0700 /opt/iredapd
  • Copy config file from installed old release on your server. For example, 1.3.7. And set correct file owner and permission:
{{cmd|
# cp /opt/iRedAPD-1.3.7/etc/*.ini /opt/iredapd/etc/
# chown -R iredapd:iredapd /opt/iredapd/etc/*.ini
# chmod -R 0600 /opt/iredapd/etc/*.ini
  • Restart iRedAPD service:
Terminal:
#
# ---- On Linux ----
#
# /etc/init.d/iredapd restart

#
# ---- On FreeBSD ----
#
# /usr/local/etc/rc.d/iredapd restart

#
# ---- On OpenBSD ----
#
# /etc/rc.d/iredapd restart

Note: If you have iredapd-rr service enabled, please restart it too.

Personal tools