Openfire Chat Server Installation on Linux

openfire chat server (Default database)
Note: pre-requirements java (default openJdk)

on ubuntu
# wget http://download.igniterealtime.org/openfire/openfire_4.0.4_all.deb
# dpkg -i openfire_4.0.4_all.deb  or dpkg --force-all -i openfire_4.0.4_all.deb
# service openfire stop
# service openfire start

on centos
# wget http://download.igniterealtime.org/openfire/openfire-4.0.4-1.i386.rpm
# rpm -ivh openfire-4.0.4-1.i386.rpm
# service openfire stop
# service openfire start

open browser
Navigate to http://your-ip-address:9090
continue with installation process
domain: server ip address

after installation

user: admin password: which you have set for administrator account

2).
openfire chat server (External database)
Note: required database must be installed (here MySQL)

on ubuntu
# wget http://download.igniterealtime.org/openfire/openfire_4.0.4_all.deb
# dpkg -i openfire_4.0.4_all.deb  or dpkg --force-all -i openfire_4.0.4_all.deb
# mysql -u root -p
> create database openfire;
> exit
# cd /usr/share/openfire/resources/database
# cat openfire_mysql.sql | mysql -u root -p openfire;
# /etc/init.d/openfire restart
# service mysql restart

open browser
Navigate to http://your-ip-address:9090
continue installation, make sure you select external database
replace [your_host] with localhost and [database_name] with openfire

For custom Java like Oracle Jdk and Jre

Prefer installing Openfire from .tar.gz
download file using below link
https://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire_4_0_4.tar.gz

# mv openfire_4_0_4.tar.gz /opt/
# cd /opt/
# tar -xvzf openfire_4_0_4.tar.gz
# cd openfire/conf/
# nano openfire.xml

Uncomment <network> tag and put your server’s ip address inside <interface></interface>.

# /opt/openfire/bin/openfire start

open browser
Navigate to http://your-ip-address:9090
continue with installation

Post Installation
Download client
Official Site

Reference: link

Comments