Openfire is a free and open-source real-time communication platform that runs on the XMPP (Extensible Messaging and Presence Protocol). It enables users to interact with one another in real-time via instant messaging (IM), audio and video chat, and group chat.
This guide will cover the steps required to install Openfire XMPP Chat Server on CentOS 7x. Moreover, the MariaDB configuration is also explained in the guide.
Before beginning the installation process, make sure that SELinux is disabled. To check the status of SELinux, use the following:
Updating The System:
To update your system, use the following command:
yum install update -y
Downloading Required Packages:
You will need to install the following software package:
JAVA GLIBC WGET:
To install the mentioned package, use the following command:
yum -y install wget java glibc.i686
Downloading And Installing Openfire:
Download and rename the Openfire RPM package and move to opt directory:
After that, run the following:
wget -O openfire-4.3.2-1.x86_64.rpm https://www.igniterealtime.org/downlcadServlet?filename=openfire/openfirze-4.3.2-1.x06_64.rpm
Once the above-mentioned command is executed, use the
li Command to list all the files and open the selected file as shown in the figure attached:
Let us now install it:
yum install openfire-188.8.131.52.x86_64.rpm
Next, were need to start and activate the Openfire service to start during the system boot:
systemctl start openfire
systemctl enable openfire
Now, we have to confirm that the Openfire is running:
systemctl status openfire
Installing And Configuring MariaDB:
To start MariaDB:
systemctl start mariadb
Now, we have to activate the MariaDB service to start during boot:
systemctl enable mariadb
To configure MariaDB, use the following command:
Now, configure MariaDB by entering your password.
To log in to MariaDB, use the following:
mysql -uroot -p
After logging in, create a new database:
create database openfiredb;
After that, grant the permissions for “openfiredb” to the user:
grant all privileges on openfiredb.* to openfireuser@localhost identified by 'openfirepwd'
Install Openfire with GUI:
Start by stopping the firewall services:
systemctl stop firewalld
Copy the IP Address from the GUI App:
Now, past the IP Address into a new tab to get Openfire setup:
Start by selecting your default language and then choose standard database connection on the database settings page and click on continue:
Download the spark client for windows from here.
Once the spark client is downloaded, log in to the client by using your credentials.
Now, start the firewall service by using the following:
systemctl start firewalld
If using a firewalls service, we need to open the following ports:
Now, open port 9090 (top and UDP):
firewall-cmd --permanent --zone=public --add-port=9090/tcp
Use the same command for different ports by changing the above command’s port number.
The Openfire XMPP Chat Server is now installed on CentOS 7: