Outils pour utilisateurs

Outils du site


mycryptochat

Ceci est une ancienne révision du document !


MyCryptoChat

MyCryptoChat is a simple PHP encrypted chat rooms manager. Everything is encrypted on the client side, so noone can spy on what you say.

MyCryptoChat est donc un espace de discussion où tout est chiffré “côté client”. Le serveur n'a donc jamais accès aux messages échangés. La page de MyCryptoChat sur Github.

Il est développé par Tommy de howtommy.net.

Installation

Téléchargement

On crée un dossier “chat” sur son serveur web :

# mkdir /var/www/serveur/chat

On clone le dépôt Github dans le dossier qu'on vient de créer :

# git clone https://github.com/HowTommy/mycryptochat /var/www/serveur/chat/
Cloning into '/var/www/serveur/chat'...
remote: Counting objects: 110, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 110 (delta 3), reused 0 (delta 0), pack-reused 96
Receiving objects: 100% (110/110), 224.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (40/40), done.
Checking connectivity... done.

Résolution des erreurs

Si on se rend sur la page web correspondante au dossier qu'on vient de créer ( https://www.example.com/chat/ ), il est possible qu'on se retrouve face à une série d'erreurs :

Error: missing inc/conf.php
MyCryptoChat can't read the configuration file.

Copy inc/conf.template.php into inc/conf.php, and don't forget to customize it.

Dans le dossier de MyCryptoChat, on regarde dans le dossier inc. On copie le template de configuration et on vérifie :

# ls inc/
classes.php  conf.template.php	constants.php  dbmanager.php  functions.php  init.php
# cp inc/conf.template.php inc/conf.php
# ls inc/
classes.php  conf.php  conf.template.php  constants.php  dbmanager.php	functions.php  init.php

Il faut modifier la configuration avec votre éditeur préfére :

# vim inc/conf.php
Error: PDO missing
The PDO module is missing.
Please add it and load it to make this website work.
Error: PDO SQLite missing
The PDO SQLite module is missing. ==
Please add it and load it to make this website work.
# apt-get install php5 php5-sqlite
(...)
The following extra packages will be installed:
  libapache2-mod-php5 libonig2 libperl4-corelibs-perl libqdbm14 lsof php5-cli php5-common php5-json php5-readline psmisc php5-sqlite
Error: logs file access
MyCryptoChat can't edit the logs file. ==
Please give all rights to the apache (or current) user on the 'logs.txt' file.
Error: the seed was not modified
The seed that is used to do a better hashing for users is still 'f-rjng24!1r5TRHHgnjrt'
Please modify its value in 'inc/conf.php'.
You could may be use '', or another.

Mettre à jour

# cd /var/www/serveur/chat/
:/var/www/serveur/chat# git pull
Already up-to-date.
mycryptochat.1457464911.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)