Linux Jabber IM Server
From Nonecks Docs
(Redirected from Linux OpenFire IM Server)
Contents
|
Setup Jabber Server on Linux using Openfire
- (http://www.igniterealtime.org)
- We should have a base Net Install of Debian Lenny with the Network, Time and Date set. See: Linux NIC Time and 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_3.6.3_all.deb
Install Openfire Server
/tmp~# dpkg -i openfire_3.6.3_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 my.localdomain.com Domain
- We are using an Admin account under the following OU: Sites > Chico > Users > Employees > IT > admin
LDAP Admin DN
cn=admin,ou=IT,ou=Employees,ou=Users,ou=Chico,ou=Sites,dc=my,dc=localdomain,dc=com | sAMAccountName | (objectClass=user)
LDAP Base DN
OU=sites,DC=my,DC=localdomain,DC=com
Upgrading Openfire
Follow the following Upgrade guide
http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/upgrade-guide.html