Upgrade Openfire to latest version on linux.

share on:

Openfire is a cross-platform instant messaging server written in java. It is easy to install and setup. It is available as a free download by Ignite Realtime website.

You can also use their client software Spark to connect with your Openfire serverAnother client that you can use to connect to your Openfire server is Pidgin.

 

Please follow the post Install latest openfire on CentOS 7

This post will show you how to upgrade openfire to latest version on Linux.

 

Before we upgrade Openfire to latest version on linux,  check current Version of Openfire installed on server.

 

 

Backup Openfire Data and Database.

Login to terminal and take backup of Openfire Files and configuration files. Openfire data is stored in /opt/openfire directory by default. So we will take backup of this directory.

[[email protected]engy ~]# mkdir ~/openfire-backup
[[email protected]engy ~]# cd /opt && tar -czvf ~/openfire-backup/openfire-full-backup-$(date +%F).tar.gz openfire

 

Database Backup

[[email protected]engy ~]# mysqldump -ucool -p fired | gzip -9 > ~/openfire-backup/openfire-db-bak-$(date +%F).sql.gz

 

Verify your Backup files.

[[email protected]engy ~]# ls -la ~/openfire-backup
total 96420
drwxr-xr-x. 2 root root 93 Oct 7 00:45 .
dr-xr-x---. 8 root root 4096 Oct 7 00:44 ..
-rw-r--r--. 1 root root 4358 Oct 7 00:45 openfire-db-bak-2018-10-07.sql.gz
-rw-r--r--. 1 root root 98719049 Oct 7 00:44 openfire-full-backup-2018-10-07.tar.gz

 

Upgrading the openfire 4.1.1 to latest 4.2.3

Stop Openfire and MariaDB service.

[[email protected]engy ~]# systemctl stop openfire mariadb

 

Check the current version of Openfire.

[[email protected]engy ~]# rpm -qa | grep openfire
openfire-4.1.1-1.x86_64

 

Update the openfire to latest version.

Download the latest RPM file for Openfire.

[[email protected]engy ~]# wget http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm

 

Update the Openfire to latest version.

[[email protected]engy ~]# rpm -Uvh openfire-4.2.3-1.x86_64.rpm 
Preparing... ################################# [100%]
Updating / installing...
1:openfire-4.2.3-1 warning: /opt/openfire/conf/openfire.xml created as /opt/openfire/conf/openfire.xml.rpmnew
warning: /opt/openfire/conf/security.xml created as /opt/openfire/conf/security.xml.rpmnew
################################# [ 50%]
Restarting openfire (via systemctl): Warning: openfire.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[ OK ]
Cleaning up / removing...
2:openfire-4.1.1-1 ################################# [100%]

 

Verfiy the updated version.

[[email protected]engy ~]# rpm -qa | grep openfire
openfire-4.2.3-1.x86_64

 

Start the openfire and MariaDB service again.

[[email protected]engy ~]# systemctl daemon-reload
[[email protected]engy ~]# systemctl start openfire mariadb

 

Finally, Check the latest version of Openfire by visiting the http://server-ip:9090/login.jsp

Upgrade openfire to latest version on linux.
Upgrade openfire to latest version on linux.

 

Now we have a working latest Openfire XMPP server. Thanks for visiting this page. Good day.  🙂

 

share on:
engy

engy

Hello there, My name is Rishi Guleria and I work as a Linux system administrator. I have created this blog to share what I have learned so far and to learn new things. Good Day. :)

Leave a Response

share on: