Télécharger et installer JWChat

De Wiki JabberFR
Aller à la navigation Aller à la recherche

Tutoriels JWChat

  1. Télécharger et installer JWChat
  2. Créer un nouveau compte avec JWChat
  3. Configurer JWChat
  4. Converser avec JWChat
  5. Gérer ses contacts avec JWChat
  6. Transfert de fichiers avec JWChat
  7. Groupes de discussion avec JWChat
  8. Utiliser les passerelles avec JWChat
  9. Désinstaller JWChat
Cet article est une ébauche à compléter, vous pouvez partager vos connaissances en le modifiant.

Vous pouvez également suggérer des améliorations sur sa page de discussion.
Où en venant en discuter sur le salon dédié : wiki@chat.jabberfr.org (client web) !

L'installation de JWChat est un cas particulier, puisqu'il s'agit d'une application web à installer sur un serveur web. Si vous savez de quoi il s'agit, alors installez directement à partir des paquets disponibles sur le site officiel, sinon utilisez http://jwchat.org.

Avec ejabberd

Ejabberd a l'avantage de fournir un support du http-polling natif. Nous considéreons ici une installation sur la même machine que ejabberd avec Apache 2 sur une machine Debian.

Installer apache 2

# apt-get install apache2

Récupérer jwchat (ici nous utilisons la version 1.0 beta 2 mais n'hésitez pas à utiliser la dernière en date, vous devrez alors trouver l'URL exact de l'archive)

# wget http://belnet.dl.sourceforge.net/sourceforge/jwchat/jwchat-1.0beta2.tar.gz

et le décompresser

# tar -xzvf jwchat-1.0beta2.tar.gz

Déplacer le tout

# mv jwchat /var/www

Changer le propriétaire des fichiers jwchat pour www-data

# chown -r www-data:www-data /var/www/jwchat

Changer les droits

# chmod -r 755 /var/www/jwchat

Activer les modules apache 2 nécessaires :

# a2enmod rewrite
# a2enmod proxy
# a2enmod proxy_http

Créer puis éditer le ficher /etc/apache2/sites-available/jwchat

<VirtualHost *>
	ServerName bearstech.com
	DocumentRoot /var/www/jwchat
	<Directory /var/www/jwchat>
		Options +Indexes +Multiviews
	</Directory>
	AddDefaultCharset UTF-8
	RewriteEngine On
	RewriteRule http-poll/ http://bearstech.com:5280/http-poll/ [P]
	ProxyPass /http-poll/ http://bearstech.com:5280/http-poll/
	ProxyPassReverse /http-poll/ http://bearstech.com:5280/http-poll/
	<Proxy *>
		Allow from all
	</Proxy>
</VirtualHost>

Activer le site

# a2ensite jwchat

Faire recharger la configuration par Apache pour prendre en compte la nouvelle configuration

# /etc/init.d/apache2 force-reload