Upgrade/iRedAPD/1.4.1-1.4.2

From iRedMail
(Difference between revisions)
Jump to: navigation, search
(Created page with "---- * This tutorial describes how to upgrade iRedAPD-1.4.1 to the latest stable release, iRedAPD-1.4.2. It's applicable on all Linux/BSD distributions supported by iRedMail. ...")
 
Line 1: Line 1:
 
----
 
----
* This tutorial describes how to upgrade iRedAPD-1.4.1 to the latest stable release, iRedAPD-1.4.2. It's applicable on all Linux/BSD distributions supported by iRedMail.
+
* This tutorial describes how to upgrade iRedAPD-1.4.2 to the latest stable release, iRedAPD-1.4.3. It's applicable on all Linux/BSD distributions supported by iRedMail.
* If you're looking for upgrade tutorial for iRedAPD-1.3.8 or earlier versions, please use this tutorial: [[IRedMail/FAQ/Upgrade.iRedAPD|How to upgrade iRedAPD-1.3.8 (or earlier versions) to iRedAPD-1.4.1 or later versions]]
+
* If you're looking for upgrade tutorial for iRedAPD-1.3.8 or earlier versions, please use this tutorial: [[IRedMail/FAQ/Upgrade.iRedAPD|How to upgrade iRedAPD-1.3.8 (or earlier versions) to iRedAPD-1.4.2 or later versions]]
 
----
 
----
  
 
Steps:
 
Steps:
  
* Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1.4.2.tar.bz2.
+
* Download the latest stable release here: http://iredmail.org/yum/misc/ For example, iRedAPD-1.4.3.tar.bz2.
* Upload it to your iRedMail server. Assume it's '''/root/iRedAPD-1.4.2.tar.bz2''' on the server.
+
* Upload it to your iRedMail server. Assume it's '''/root/iRedAPD-1.4.3.tar.bz2''' on the server.
 
* Extract downloaded package and move to /opt/.
 
* Extract downloaded package and move to /opt/.
 
{{cmd|<pre>
 
{{cmd|<pre>
# tar xjf /root/iRedAPD-1.4.2.tar.bz2 -C /opt/
+
# tar xjf /root/iRedAPD-1.4.3.tar.bz2 -C /opt/
 
</pre>}}
 
</pre>}}
You get a new directory: /opt/iRedAPD-1.4.2/.
+
You get a new directory: /opt/iRedAPD-1.4.3/.
  
 
* Set correct owner and permission:
 
* Set correct owner and permission:
 
{{cmd|<pre>
 
{{cmd|<pre>
# chown -R iredapd:iredapd /opt/iRedAPD-1.4.2
+
# chown -R iredapd:iredapd /opt/iRedAPD-1.4.3
# chmod -R 0700 /opt/iRedAPD-1.4.2
+
# chmod -R 0700 /opt/iRedAPD-1.4.3
 
</pre>}}
 
</pre>}}
  
* Copy config file from iRedAPD-1.4.1 release. WARNING: You cannot use config file from iRedAPD-1.3.8 or earlier versions directly, they have different syntax.
+
* Copy config file from iRedAPD-1.4.2 release. WARNING: You cannot use config file from iRedAPD-1.3.8 or earlier versions directly, they have different syntax.
 
{{cmd|<pre>
 
{{cmd|<pre>
# cd /opt/iRedAPD-1.4.2/
+
# cd /opt/iRedAPD-1.4.3/
# cp -p /opt/iRedAPD-1.4.1/settings.py /opt/iRedAPD-1.4.2/
+
# cp -p /opt/iRedAPD-1.4.2/settings.py /opt/iRedAPD-1.4.3/
 
# chown -R iredapd:iredapd settings.py
 
# chown -R iredapd:iredapd settings.py
 
# chmod -R 0600 settings.py
 
# chmod -R 0600 settings.py
Line 37: Line 37:
 
{{cmd|<pre>
 
{{cmd|<pre>
 
# cd /opt/
 
# cd /opt/
# ln -s iRedAPD-1.4.2 iredapd
+
# ln -s iRedAPD-1.4.3 iredapd
 
</pre>}}
 
</pre>}}
  

Revision as of 22:13, 5 May 2014



Steps:

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

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

  • Set correct owner and permission:
Terminal:
# chown -R iredapd:iredapd /opt/iRedAPD-1.4.3
# chmod -R 0700 /opt/iRedAPD-1.4.3
  • Copy config file from iRedAPD-1.4.2 release. WARNING: You cannot use config file from iRedAPD-1.3.8 or earlier versions directly, they have different syntax.
Terminal:
# cd /opt/iRedAPD-1.4.3/
# cp -p /opt/iRedAPD-1.4.2/settings.py /opt/iRedAPD-1.4.3/
# chown -R iredapd:iredapd settings.py
# chmod -R 0600 settings.py

WARNING: Config file /opt/iredapd/settings.py contains sensitive infomation (username, password), please don't make it world-readable. Permission 0600 is the best.

  • 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.4.3 iredapd
  • Copy new RC script for your server. We have scripts for different Linux/BSD distributions. Please copy the proper one for your server. For example:
    • /opt/iredapd/rc_scripts/iredapd.debian: For Debian and Ubuntu.
    • /opt/iredapd/rc_scripts/iredapd.freebsd: For FreeBSD. Please copy to /usr/local/etc/rc.d/.
    • /opt/iredapd/rc_scripts/iredapd.gentoo: For Gentoo Linux.
    • /opt/iredapd/rc_scripts/iredapd.openbsd: For OpenBSD. Please copy to /etc/rc.d/.
    • /opt/iredapd/rc_scripts/iredapd.opensuse: For openSUSE.
    • /opt/iredapd/rc_scripts/iredapd.rhel: For Red Hat, CentOS, Scientific Linux.
Terminal:
# cp /opt/iredapd/rc_scripts/iredapd.rhel /etc/init.d/iredapd
# chmod +x /etc/init.d/iredapd
  • 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

That's all.

Personal tools