Subject: Ho to setup, configure, install your Jabber Web Status
Title: NJS.Netlab.CZ JabberWebStatus Installation guide
Version: 0.1
Author: KIE, kie@undernet.cz
Date: 17.5.2003
Home at: http://njs.netlab.cz
Support: http://netlab.cz/phpbb/viewforum.php?f=11
Description: Web based jabber UID status monitor
Features: It can show (and you can include to web pages as image) status detection (online/offline/away/chat/do not disturb/not available) of users of your or other jabber servers worldwide
Requirements: JabberD (1.4.X and higher), MySQL (3.x and higher), PHP (4.x.x and higher) as CGI
Installation:
1. UnTar downloaded archive (anywhere you want) tar -xzvf jabstatus-0.1.tar.gz
2. Create DB (via mysqladmin create jabstatus or via PhpMyAdmin)
3. Create DB table (via mysql -p < jabstatus.sql or via PhpMyAdmin)
4. Create DB user with SELECT, UPDATE, INSERT prvileges for DB jabstatus (e.g. via PHPMyAdmin)
5. Move directory 'frontend' to http accessible directory (you can rename it - dose not matter)
6. Change DB authentication information in the head of index.php
e.g.
$status_server = "localhost";
$status_db = "jabstatus";
$status_user = "jabstatus";
$status_passwd = "yourpasswd";
7. Create via some jabber client new jabber account on your server (e.g. called jabstatus )
8. Change authentication info in the head of 'jabstatus' file in the "backend" directory
A) First is path to your PHP library (no PHP module for Apache)
e.g.
#!/bin/php -f
B) Second is connection info to your DB (it must be same as above in index.php)
$status_server = "localhost";
$status_db = "jabstatus";
$status_user = "jabstatus";
$status_passwd = "yourpasswd";
C) and last is authentication info to jabber account which you have created
$JABBER->server = "my.jabberserver.com";
$JABBER->port = 5222;
$JABBER->username = "jabstatus";
$JABBER->password = "yourpasswd";
Make changes and save the file.
9. Change attributes of 'jabstatus' file in the 'backend' directory to 755 (chmod 755 jabstatus )
10. Run "jabstatus" file and forward output to dev/null so:
./jabstatus &>/dev/null &
11. Try your jabber status in your browser type e.g.:
http://netlab.cz/status/?jid=pinky@njs.netlab.cz&ib=psi
If you are online you should see yellow star (
).
Possible problems:
Problem: I can not find path to PHP library
Cause: You do not have installed PHP CGI - that is possible if you use PHP only as module under Apache
Solution: Install PHP-CGI e.g. by debian apt-get(apt-get install php4-cgi )
Do not forget on mysql extension in php configuration file ( extension = mysql.so )
P: jabstatus can not authenticate to jabber server
C: You do not have installed JabberD or you do not have created account or misspelled password
S: Install JabberD (and configure it) e.g. apt-get install jabber
S: Create new account via some client (e.g. Exodus) and change jabstatus file
S: Check authentication info like a user name, server name and password
P: Your jabber status does not show info about some users or it shows that they are always offline
C/S: Jabber status needs authorization of every user who will be monitored - so if some user refuse request for authorization from your jabstatus it can not show correct information about his status
Situation is same if you try to get info about non-existing user.
Jabstatus could be surely used for getting status info about users from other servers than yours (type modified URL to your browser /you change what is after "jid=" / and user must give authorization to request of jabstatus).
Comments to this help file send to KIE, kie@undernet.cz
Comments to jabber status program send to its author - Pinky, pinky@netlab.cz
Request for help send to phorum on http://netlab.cz/phpbb/viewforum.php?f=11
Version: 0.1
Author: KIE, kie@undernet.cz
Date: 17.5.2003
Home at: http://njs.netlab.cz
Support: http://netlab.cz/phpbb/viewforum.php?f=11
Description: Web based jabber UID status monitor
Features: It can show (and you can include to web pages as image) status detection (online/offline/away/chat/do not disturb/not available) of users of your or other jabber servers worldwide
Requirements: JabberD (1.4.X and higher), MySQL (3.x and higher), PHP (4.x.x and higher) as CGI
Installation:
1. UnTar downloaded archive (anywhere you want) tar -xzvf jabstatus-0.1.tar.gz
2. Create DB (via mysqladmin create jabstatus or via PhpMyAdmin)
3. Create DB table (via mysql -p < jabstatus.sql or via PhpMyAdmin)
4. Create DB user with SELECT, UPDATE, INSERT prvileges for DB jabstatus (e.g. via PHPMyAdmin)
5. Move directory 'frontend' to http accessible directory (you can rename it - dose not matter)
6. Change DB authentication information in the head of index.php
e.g.
$status_server = "localhost";
$status_db = "jabstatus";
$status_user = "jabstatus";
$status_passwd = "yourpasswd";
7. Create via some jabber client new jabber account on your server (e.g. called jabstatus )
8. Change authentication info in the head of 'jabstatus' file in the "backend" directory
A) First is path to your PHP library (no PHP module for Apache)
e.g.
#!/bin/php -f
B) Second is connection info to your DB (it must be same as above in index.php)
$status_server = "localhost";
$status_db = "jabstatus";
$status_user = "jabstatus";
$status_passwd = "yourpasswd";
C) and last is authentication info to jabber account which you have created
$JABBER->server = "my.jabberserver.com";
$JABBER->port = 5222;
$JABBER->username = "jabstatus";
$JABBER->password = "yourpasswd";
Make changes and save the file.
9. Change attributes of 'jabstatus' file in the 'backend' directory to 755 (chmod 755 jabstatus )
10. Run "jabstatus" file and forward output to dev/null so:
./jabstatus &>/dev/null &
11. Try your jabber status in your browser type e.g.:
http://netlab.cz/status/?jid=pinky@njs.netlab.cz&ib=psi
If you are online you should see yellow star (
Possible problems:
Problem: I can not find path to PHP library
Cause: You do not have installed PHP CGI - that is possible if you use PHP only as module under Apache
Solution: Install PHP-CGI e.g. by debian apt-get(apt-get install php4-cgi )
Do not forget on mysql extension in php configuration file ( extension = mysql.so )
P: jabstatus can not authenticate to jabber server
C: You do not have installed JabberD or you do not have created account or misspelled password
S: Install JabberD (and configure it) e.g. apt-get install jabber
S: Create new account via some client (e.g. Exodus) and change jabstatus file
S: Check authentication info like a user name, server name and password
P: Your jabber status does not show info about some users or it shows that they are always offline
C/S: Jabber status needs authorization of every user who will be monitored - so if some user refuse request for authorization from your jabstatus it can not show correct information about his status
Situation is same if you try to get info about non-existing user.
Jabstatus could be surely used for getting status info about users from other servers than yours (type modified URL to your browser /you change what is after "jid=" / and user must give authorization to request of jabstatus).
Comments to this help file send to KIE, kie@undernet.cz
Comments to jabber status program send to its author - Pinky, pinky@netlab.cz
Request for help send to phorum on http://netlab.cz/phpbb/viewforum.php?f=11

KIE
Link to this post
Show profile