OpenFire Jabber Server

From SysadminPunk Wiki!

Jump to: navigation, search

Contents

Setup Openfire Jabber Server on Debian Lenny

Make sure to USE A MIRROR during setup. If you need help with this see NIC/Time/Date

Edit /etc/apt/sources.list and add unstable/non-free sources for Java Platforms

deb http://ftp.debian.org/debian/ unstable non-free
deb-src http://ftp.debian.org/debian/ unstable non-free

Update Apt and Install required Packages

~# sudo apt-get update && sudo apt-get install ssh build-essential java-common sun-java5-jdk sun-java6-jdk mysql-server phpmyadmin

Verify Java Version

~# java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

Download Openfire Server for Linux

~# cd /tmp
/tmp~# wget openfire_latest_all.deb

Install Openfire Server

/tmp~# dpkg -i openfire_latest_all.deb

MySQL DB Setup

Setup phpmyadmin

~# vi /etc/apache2/apache2.conf

Add the following to your apache2.conf for phpmyadmin:

Include /etc/phpmyadmin/apache.conf

Restart Apache

~# /etc/init.d/apache2 restart

Reset MySQL root password

Make sure you reset your root pass for mysql

~# mysql -u root
mysql> update user set Password=PASSWORD('new-password-here') WHERE User='root';
Query OK, 2 rows affected (0.04 sec)
Rows matched: 2  Changed: 2  Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)
mysql> exit
Bye

Login to PHPMyAdmin

  • Open browser to http://hostname/phpmyadmin
  • Login to PHPMyAdmin and go to Privileges
  • Choose Add User
  • Enter Username Host and Password (Use % for host to accept for ALL hosts)
  • CSelect "Create database with same name and grant all privileges" and click "Go"
  • Remember this info because you will need for DB Config.

Execute SQL Query for OpenFire DB

  • While still in phpmyadmin, browse to the Openfire db
  • Select the SQL tab up top
  • Open /usr/share/openfire/resource/database/openfire_mysql.sql and paste into phpmyadmin sql window
  • Select Go


Now we should have Openfire installed with mysql and db ready.

Configure Openfire

Follow the following Install guide: http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install-guide.html

Use the following for info on connecting to the Auctiva Domain

LDAP Admin DN

cn=itadmin,ou=IT,ou=Employees,ou=Users,ou=LA,ou=Sites,dc=corp,dc=mybiz,dc=com | sAMAccountName | (objectClass=user) 

LDAP Base DN

OU=sites,DC=corp,DC=mybiz,DC=com


Upgrading Openfire

Follow the following Upgrade guide

http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/upgrade-guide.html

Personal tools