openfire setup on ubuntu 18.04 ec2 instance on aws

Spin up Ubuntu Instance on AWS

  1. Follow [this guide] and start a Ubuntu 18.04 instance on ec2 dashboard launch ubuntu 18.04 instance using aws console

  2. point the domain name to the ubuntu instance using route53

openfire installation on ubuntu machine

  1. ssh into ubuntu instance
  2. install java
sudo apt update
sudo apt install openjdk-8-jdk
java -version
  1. openfire debian package installation
cd /tmp
wget https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_4.4.2_all.deb -O openfire.deb
sudo  dpkg -i openfire.deb
systemctl status openfire
  1. mysql Instalation

openfire database configuration on mysql

  1. configure openfire database
    log into mysql shell run following commands on shell
    create database openfire;
    GRANT ALL PRIVILEGES ON openfire.* TO openfire@localhost IDENTIFIED BY 'password123!';
    flush privileges;
    use openfire;
    source /usr/share/openfire/resources/database/openfire_mysql.sql;
    exit;
    

opening port openfire

  1. open following port on instance 9091,9090,5222,7777

configure openfire

  1. go to the http://domain.com:9090
    choose the language and continue language
  2. setup xmpp domain
    xmpp domain
  3. mysql setup
    username: openfire
    password: password123!
    which we created above.
    mysql
  4. continue
    continue
  5. set admin email and password
    admin setup
  6. continue and login
    login

Updated:

Leave a Comment