Difference between revisions of "RSS2Jabber"

From YobiWiki
Jump to navigation Jump to search
m
 
m
Line 18: Line 18:
 
* chown rss2jabber:rss2jabber /var/log/jabber/rss2jabber
 
* chown rss2jabber:rss2jabber /var/log/jabber/rss2jabber
 
===Test===
 
===Test===
su rss2jabber /usr/local/lib/rss2jabber/rss2jabber.php
+
su - rss2jabber /usr/local/lib/rss2jabber/rss2jabber.php
 
===Run===
 
===Run===
 
* Edit config.inc.php and change verbosity level
 
* Edit config.inc.php and change verbosity level
su rss2jabber /usr/local/lib/rss2jabber/rss2jabber.php >& /var/log/jabber/rss2jabber/log &
+
su - rss2jabber /usr/local/lib/rss2jabber/rss2jabber.php >& /var/log/jabber/rss2jabber/log &
 
Still needs to daemonize the stuff...
 
Still needs to daemonize the stuff...

Revision as of 21:50, 26 April 2007

Installation

  • apt-get install php4-cli mysql-server php4-mysql
    • create an admin account on mysql if not yet done, cf Mysql
  • Get it from BerliOS
  • Untar it under /usr/local/lib/rss2jabber
  • Create a user:group rss2jabber:rss2jabber
    • home:/usr/local/lib/rss2jabber shell:/usr/bin/php
  • chown -R rss2jabber:rss2jabber /usr/local/lib/rss2jabber
  • Create mysql elements:
mysql -u root -p
mysql> CREATE DATABASE rss2jabber;
mysql> GRANT ALL PRIVILEGES ON rss2jabber.* TO rss2jabber@jabber.hellea.net IDENTIFIED BY 'rsskey';
mysql> USE rss2jabber;
mysql> SOURCE db.sql;
  • I'm not sure if the bit can register itself the first time so I created its jabber account with a regular client
  • Edit config.inc.php with your DB and server params
  • mkdir /var/log/jabber/rss2jabber
  • chown rss2jabber:rss2jabber /var/log/jabber/rss2jabber

Test

su - rss2jabber /usr/local/lib/rss2jabber/rss2jabber.php

Run

  • Edit config.inc.php and change verbosity level
su - rss2jabber /usr/local/lib/rss2jabber/rss2jabber.php >& /var/log/jabber/rss2jabber/log &

Still needs to daemonize the stuff...