SlideShare a Scribd company logo
Ejabberd Installation &Configuration

                        ShaojieYang

                            12/2012
Instant Messaging
• “Instant Messaging(IM) is a form of
  communication over the Internet that offers
  quick transmission of text-based messages from
  sender to receiver.
• “In push mode between two or more people
  using personal computers basically offers real-
  time written language-based online chat.
Instant Messaging
• “The user’s text is conveyed over a network, such as
  the Internet. It may address point-to-point
  communications as well as multicast communications
  from one sender to many receivers.
• “More advanced instant messaging allows enhanced
  modes of communication, such as live voice or video
  calling, video chat and inclusion of hyperlinks to
  media.” – Definition from Wikipedia
About Ejabberd
• “ejabberd is a Jabber/XMPP instant messaging
  server, licensed under GPLv2(Free and Open
  Source), written in Erlang/OTP. Among other
  features, ejabberd is cross-platform, fault-
  tolerant, clusterable and modular.” – Definition
  from Ejabberd Community
  Site(http://www.ejabberd.im)
Part A

INSTALLATION (LINUX PLATFORM)
Download


• Download ejabberd installation package:
• http://www.process-one.net/en/ejabberd/downloads/
Download
• Download the package into Linux machine.
Unzip & Grant Permissions
Start Installation

• ./ejabberd-2.1.10-linux-x86-
  installer.bin

• Installation language:[2]
Start Installation

• Ejabberd server domain:
  ejabberdtest.com

• Administrator user name:
  admin

• Cluster: N

• Want to continue? Y
After Installation

• Installation Path: /opt/ejabberd-2.1.10
Start Ejabberd Daemon
Check Configuration File

• Location: /opt/ejabberd-2.1.10/conf/ejabberd.cfg

• Web administration port: 5280
Change Iptables

• Location: /etc/sysconfig/iptables
Change Iptables

• Insert the following line:
•   -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5280 -j
    ACCEPT


• Before:
•   -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
Change Iptables
Restart Iptables
Open Web Administration Page


• URL:

• http://ejabberdtest.com:5280/admin
Open Web Administration Page
Add Users
Add Users
Login with IM Software
Start Chatting
Start Chatting
Part B

CONFIGURATION –
CONNECT TO EXTERNAL DATABASE
Connect to an External Database


• Ejabberd has its default database, located at:

• /opt/ejabberd-2.1.10/database/ejabberd@localhost

• How to connect to an external database?
Create Ejabberd Database(MySql)
Create Ejabberd Database
Import Mysql.sql to Ejabberd
• Path:

• /opt/ejabberd-2.1.10/lib/ejabberd-2.1.10/priv/odbc/mysql.sql
Import Mysql.sql to Ejabberd
Modify ejabberd.cfg File
• Comment {auth_method, internal}
Modify ejabberd.cfg File

• Open {auth_method, odbc}
Modify ejabberd.cfg File

• Modify MYSQL Server Section:
Modify ejabberd.cfg File
• Add _odbc to the following modules:
• mod_last  mod_last_odbc
• mod_offline  mod_offline_odbc
• mod_privacy  mod_privacy_odbc
• mod_private  mod_private_odbc
• mod_pubsub  mod_pubsub_odbc
• mod_roster  mod_roster_odbc
• mod_vcard  mod_vcard_odbc
Register Admin Account
Register Admin Account
Add User to New Database
Part C

CONFIGURATION –
USE TLS CONNECTION
Introduction
• Normally, if we use the default
  configuration, when we login to our
  accounts, there’s no encryption actived.

• But in case of safety, we usually need to
  change settings to use TLS connection
  method.
Modify ejabberd.cfg File

• Add “starttls_required,” into the “5222”
  listening ports section. Then restart service.
Change Settings in Client End
Try to Login
Check the Log File
Solution
• linux-gate.so.1 => (0x00f9c000)
• libssl.so.0.9.8 => not found
• libcrypto.so.0.9.8 => not found
• libc.so.6 => /lib/libc.so.6 (0x00d9c000) /lib/ld-linux.so.2 (0x00943000)
Solution
Solution
Solution

• Open the port 5222 in iptables, then restart
  iptables service
Restart Service and Login Again
Ejabberd installation configuration

More Related Content

PDF
Nimbuzz march2012
PPTX
Ejabberd Session
PPTX
Ejabberd with xmpp
PDF
Managing ejabberd Platforms with Docker - ejabberd Workshop #1
PPTX
XMPP Academy #2
PDF
XMPP Academy #3
PDF
IoT Studio #1: Protocols introduction and connected jukebox
PDF
Deep Dive Into ejabberd Pubsub Implementation
Nimbuzz march2012
Ejabberd Session
Ejabberd with xmpp
Managing ejabberd Platforms with Docker - ejabberd Workshop #1
XMPP Academy #2
XMPP Academy #3
IoT Studio #1: Protocols introduction and connected jukebox
Deep Dive Into ejabberd Pubsub Implementation

What's hot (20)

PDF
Linux Servers
PDF
Zimbra scripting with python
PDF
1. Core Features of Apache RocketMQ
PDF
Fighting XMPP abuse and spam with ejabberd - ejabberd Workshop #1
PPT
Nginx internals
PDF
Scaling to Millions of Simultaneous Connections by Rick Reed from WhatsApp
PPTX
Apache Performance Tuning: Scaling Up
PPTX
Introduction to NGINX web server
PPTX
Samba power point presentation
PDF
Until Successful Scope With Mule ESB
PDF
How to be a lion tamer
PPTX
How to be a lion tamer
PPTX
14 FILE Server
PPT
Apache Presentation
PDF
Fixing Domino Server Sickness
PDF
Real life XMPP Instant Messaging
PDF
APACHE WEB SERVER FOR LINUX
PDF
Apache Camel: Jetty Component With Example
PPTX
Linux Servers
Zimbra scripting with python
1. Core Features of Apache RocketMQ
Fighting XMPP abuse and spam with ejabberd - ejabberd Workshop #1
Nginx internals
Scaling to Millions of Simultaneous Connections by Rick Reed from WhatsApp
Apache Performance Tuning: Scaling Up
Introduction to NGINX web server
Samba power point presentation
Until Successful Scope With Mule ESB
How to be a lion tamer
How to be a lion tamer
14 FILE Server
Apache Presentation
Fixing Domino Server Sickness
Real life XMPP Instant Messaging
APACHE WEB SERVER FOR LINUX
Apache Camel: Jetty Component With Example
Ad

Viewers also liked (12)

PPTX
Experience lessons from architecture of zalo real time system
PDF
The Holistic Programmer
PPT
Jingle: Cutting Edge VoIP
PDF
Giáo dục thông minh (Smart Education)
PPTX
Installation & configuration
PDF
A vision for ejabberd - ejabberd SF Meetup
PPTX
Inside Zalo: Developing a mobile messenger for the audience of millions - VN ...
PPTX
Basic computer configuration setup
PDF
Zingme practice for building scalable website with PHP
PPTX
types of operating system
PPTX
Install Windows Server 2012 Step-by-Step
PPTX
Windows 7 installation ppt
Experience lessons from architecture of zalo real time system
The Holistic Programmer
Jingle: Cutting Edge VoIP
Giáo dục thông minh (Smart Education)
Installation & configuration
A vision for ejabberd - ejabberd SF Meetup
Inside Zalo: Developing a mobile messenger for the audience of millions - VN ...
Basic computer configuration setup
Zingme practice for building scalable website with PHP
types of operating system
Install Windows Server 2012 Step-by-Step
Windows 7 installation ppt
Ad

Similar to Ejabberd installation configuration (11)

PDF
Step by step_linux_guide
PDF
Messaging With Erlang And Jabber
PDF
Secure Communications with Jabber
PDF
Os Saintandre
PDF
Eyeball XMPP Server Administrator Guide
PDF
Jabber 101
DOCX
Ubuntu VOIP & IM
PDF
Introduction to IRC
PDF
XMPP Academy #1
PDF
Powering your website with realtime data
PPT
Nktalk Case Study
Step by step_linux_guide
Messaging With Erlang And Jabber
Secure Communications with Jabber
Os Saintandre
Eyeball XMPP Server Administrator Guide
Jabber 101
Ubuntu VOIP & IM
Introduction to IRC
XMPP Academy #1
Powering your website with realtime data
Nktalk Case Study

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Cloud computing and distributed systems.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Monthly Chronicles - July 2025
Cloud computing and distributed systems.
Diabetes mellitus diagnosis method based random forest with bat algorithm
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MYSQL Presentation for SQL database connectivity
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Per capita expenditure prediction using model stacking based on satellite ima...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
Approach and Philosophy of On baking technology

Ejabberd installation configuration