jwchat + ejabberd will do the job.....
Here are the quick installation notes... that i had noted down...
Hope, I have not left out anything....
Step 1. Download the latest version of ejabberd binary executable
Step 2. Download the latest .tar.gz version for jwchat
Step 3. Move the binary executable of ejabberd to /usr/local/src
mv ejabberd-1.1.1.bin /usr/local/src
Step 4. cd /usr/local/src
Step 5. chmod 777 ejabberd-1.1.1.bin
Step 6. ./ejabberd-1.1.1.bin
Step 7. The binary file on executing prompts for license agreement
Step 8. It next prompts for the installation directory and hostname of the server,
type in the FQDN of the server
Step 9. It next prompts for the installation location path, /opt is the default.
Step 10. Follow, the installation steps, as prompted.
Step 11. start the ejabberd server.
cd /opt/ejabberd-1.1.1/bin
./start
Step 12. Unpack the jwchat package
tar xzvf jwchat.tar.gz
Step 13. mv jwchat /var/www/html
Step 14. cd /var/www/html/jwchat
Step 15. vi config.js
var SITENAME = "hostname.domain.com"
Step 16. vi .htaccess
AddDefaultCharset UTF-8
Options +MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule http-poll/
http://127.0.0.1:5280/http-poll/ [P]
</IfModule>
Further, If you want to log the messages on to a DB, use bandersnatch..., myself I have not tried it successfully yet...
Here are the incomplete steps...
Installing Bandersnatch
Download the latest version of bandersnatch,
from:
http://www.funkypenguin.co.za/bandersnatch/
Make sure that you have registered in the website, else the download
will not be available.
http://ejabberd.jabber.ru/install-bandersnatch
Step 1. Download Net ::XMPP and Net::Jabber from
http://search.cpan.org/~reatmon/
Net-XMPP-1.0.tar.gz
Net-Jabber-2.0.tar.gz
Step 2. mv Net-XMPP-1.0.tar.gz /usr/local/src
mv Net-Jabber-2.0.tar.gz /usr/local/src
Step 3. cd /usr/local/src
tar xzvf Net-XMPP-1.0.tar.gz
tar xzvf Net-Jabber-2.0.tar.gz
Step 4. cd Net-XMPP-1.0
chmod 777 Makefile.PL
perl Makefile.PL
make
make install
Step 5. cd ../Net-Jabber-2.0
chmod 777 Makefile.PL
perl Makefile.PL
make
make install