Sunday, August 30, 2009

How to install Openfire and Spark/Sparkweb IM in CentOS 5

Openfire is an open source Instant Messaging system that allows you to install your own IM server. The protocol is the standard XMPP where you can use in almost all IM clients available. For this Openfire installation I use Spark (standalone application) and Sparkweb as the clients. Here are the steps, I only mention the important points:
1. Download the rpm installation and install it (something like rpm -i openfire-3.6.4-1.rpm)
2. Create a new database manually, in mysql type: create database openfire;
3. Create entries of new user and db in mysql, with its password
4. Dump in the Openfire database (mysql -u -p < /opt/openfire/resources/database/openfire_mysql.sql
5. Restart mysqld if necessary
6. Install Openfire from browser (http://yoursite:9090)
7. Change the db location and name of db, like localhost, and openfire
8. Enter the user and pass for the openfire db user created earlier
9. Move on to the installation process and make sure domain entered is the same as hostname where the Openfire installed
10. The admin password entered in the installation will not work as soon as you try to login for the first time, I don't know why but there is a solution for this, do this step as it is the only way:
- mysql openfire -u -p
- update ofUser set plainPassword='passwordnyaroot', encryptedPassword=null where username='admin';
11. Restart Openfire (this is a must!): /etc/init.d/openfire restart
11. Go to the users and groups in the admin page, create some users.
12 Install Spark or Sparkweb and test the created users.
That is all about the installation. If you need to have a conference chat then you need to make a room chat from the admin menu. Explore the admin page for more settings.

3 comments:

Anonymous said...

Hello,

I am regular visitor of this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]Lots of good information here indoblog.blogspot.com. Frankly speaking we really do not pay attention towards our health. In plain english I must warn you that, you are not serious about your health. Recent Scientific Research points that nearly 60% of all USA grownups are either chubby or weighty[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] Therefore if you're one of these individuals, you're not alone. Its true that we all can't be like Brad Pitt, Angelina Jolie, Megan Fox, and have sexy and perfect six pack abs. Now next question is how you can achive quick weight loss? [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss[/url] is really not as tough as you think. If you improve some of your daily diet habbits then, its like piece of cake to quickly lose weight.

About me: I am webmaster of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also mentor who can help you lose weight quickly. If you do not want to go under painful training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for effortless weight loss.

Anonymous said...

^ Spammy twat!

Anonymous said...

Nice tutorial thanks for sharing.
For Video tutorial you can check out this link.
http://www.youtube.com/watch?v=Qt-yWv_3NiM