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
  3. openfire debian package installation
      cd /tmp
      wget -O openfire.deb   
      sudo  dpkg -i openfire.deb 
      systemctl status openfire
  4. 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;

    opening port openfire

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

configure openfire

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


Leave a Comment