Update Server:
apt update && apt upgrade -y
Set Hostname:
hostnamectl set-hostname ex.example.com
vim /etc/hosts
server_ip ex.example.com ex
Install Openfire XMPP:
wget https://www.igniterealtime.org/downlo... -O openfire.deb
sudo apt install -f ./openfire.deb
sudo systemctl enable --now openfire
systemctl status openfire
Configure Database:
sudo apt update
sudo apt -y install mariadb-server
mysql
CREATE DATABASE openfire;
GRANT ALL PRIVILEGES ON openfire.* TO openfire@localhost IDENTIFIED BY 'your password';
FLUSH PRIVILEGES;
QUIT
mysql -u openfire -p
USE openfire;
source /usr/share/openfire/resources/database/openfire_mysql.sql;
SHOW tables;
exit
Configure Firewall:
for i in 9090 9091 5222 7777; do sudo ufw allow $i; done
Accessing Openfire XMPP:
ex.example.com:9090
Database URL:jdbc:mysql://127.0.0.1/openfire?useUnicode=true characterEncoding=UTF-8&characterSetResults=UTF-8
Watch video How to install Openfire(instant messaging and group chat server) XMPP on Ubuntu online without registration, duration hours minute second in high quality. This video was added by user Quickloss3 10 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 577 once and liked it like people.