unix中文宝库 - 安装在线Rss Reader PHP聚合器lilina笔记

来源:百度文库 编辑:神马文学网 时间:2024/04/19 01:04:40
安装在线Rss Reader PHP聚合器lilina笔记
[繁体中文/BIG5 ] [简体中文/GB ]
 UNIX中文宝库    http://www.douzhe.com
2005年04月06日   作者: 南非蜘蛛   转自: http://www.douzhe.com/article/1/649.html    点击: 3086
作者:南非蜘蛛
email:zhedou(at)sohu.com
原文出自:http://www.douzhe.com/article/1/649.html
介绍
lilina是一个用php写的web新闻聚合器,他非常简单但是非常强大.不需要数据库支持,RSS/ATOM被非常优秀的MagpieRss库处理,MagpieRSs已经安装了,你不需要另外安装.他的功能就是自动发现并且简单易用.
安装很简单,用tar解压,并且编辑conf.php,并确认你的cache/和.myfeeds.data管理员可写.
从http://lilina.sourceforge.net/下载一个最新版本
1:解压
tar zxvf lilina-0.7.tar.gz
2:改名
mv lilina-0.7 lilina
3:设置
默认cache就是777
[root@douzhe lilina]# ls -la
总用量 128
drwxr-xr-x    7 599      599          4096  3月 25 00:25 .
drwxr-xr-x   15 www      www          4096  4月  6 18:27 ..
-rw-r--r--    1 599      599            41 11月  3 01:19 AUTHORS
drwxrwxrwx    2 599      599          4096  3月 25 00:25 cache
-rw-r--r--    1 599      599          2235  3月 24 22:06 ChangeLog
-rw-r--r--    1 599      599           813  3月 25 00:24 conf.php
-rw-r--r--    1 599      599         17992 11月  3 01:19 COPYING
-rw-r--r--    1 599      599          3149  3月 24 17:21 edit.php
drwxr-xr-x    2 599      599          4096 12月 29 22:22 extlib
-rw-r--r--    1 599      599          1406 11月 23 21:32 favicon.ico
drwxr-xr-x    2 599      599          4096  3月 24 17:26 i
drwxr-xr-x    3 599      599          4096  3月 25 00:20 inc
-rw-r--r--    1 599      599          5602  3月 24 22:03 index.php
-rw-r--r--    1 599      599          1052 12月 30 18:35 INSTALL
drwxr-xr-x    2 599      599          4096  3月 24 21:36 js
-rw-r--r--    1 599      599          6845  3月 24 22:54 lib.php
-rw-rw-rw-    1 599      599          1496  3月 25 00:22 .myfeeds.data
-rw-r--r--    1 599      599           424 11月  3 01:19 README
-rw-r--r--    1 599      599           975 12月 27 01:01 set_delicious.php
-rw-r--r--    1 599      599          4416  3月 24 22:04 style.css
-rw-r--r--    1 599      599          4416  3月 24 22:03 style_default.css
-rw-r--r--    1 599      599          4358  3月 24 21:55 style_fancy.css
-rw-rw-rw-    1 599      599             1  3月 25 00:26 .time.data
改变一下.myfeeds.data就行
[root@douzhe lilina]# chmod 777 .myfeeds.data
在改一把属主
我的apache是nobody:nobody
chown -R nobody:nobody lilina
编辑配置文件
vi conf.php
$BASEURL  = ‘http://www.douzhe.com/lilina‘ ; // no trailling slash!
$USERNAME = ‘username‘ ;
$PASSWORD = ‘passwd‘ ;
$SITETITLE = "UNIX" ;
$OWNERNAME = "your name" ;
$OWNEREMAIL = "your email" ;
$DATAFILE = ‘./.myfeeds.data‘ ;
$TIMEFILE = ‘./.time.data‘ ;
$GOOGLE_KEY = ‘‘ ; // Use your Google WEB APIs key here. For info visithttp://www.google.com/apis/
/*
IMPORTANT NOTE! Setting ENABLE_DELICIOUS to 1 will make lilina poll del.icio.us for tags.
THIS MAY RESULT TO DEL.ICIO.US BANNING YOUR IP!!!
Until del.icio.us officially allows such use, it is better to leave this to 0.
*/
$ENABLE_DELICIOUS = 0 ;
/*
Default cache expiration is set to 1 hour.
This can be overriden by loading index.php?force_update=1
*/
define(‘MAGPIE_CACHE_AGE‘,60 * 60);
?>
设置好上面的配置,就可以进入管理界面了
http://your domain/lilina/edit.php
一切ok,快进后台添加自己喜欢的rss吧
我的lilina http://www.douzhe.com/rss
现在遇到一个问题,如果设置$SITETITLE = "UNIX" ;里有中文,titile就会是乱码,正在找原因
_xyz