Chinaunix首页 | 论坛 | 博客
  • 博客访问: 827194
  • 博文数量: 116
  • 博客积分: 1472
  • 博客等级: 上尉
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-06 11:45
文章分类

全部博文(116)

文章存档

2015年(1)

2014年(42)

2013年(5)

2012年(19)

2011年(49)

我的朋友

分类:

2012-02-03 16:37:06

原文地址:rtorrent web管理 作者:ccjsj1

硬件环境: intel P4 3.0D 
系统环境: redhat as4u4 , kernel 2.6.9-5.ELsmp
 
软件: lighttpd-1.4.13.tar.gz  php-5.2.6.tar.bz2  rtorrent_webui
     xmlrpc-c-1.06.31.tgz (如果启动rtorrent提示需要时,再安装)
 
安装步骤:
 
1. tar -jxf php-5.2.6.tar.bz2
   cd php-5.2.6
   ./configure --prefix=/app/php-5.2.6 --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring && make && make install
   cp php.ini-dist /app/php-5.2.6/lib/php.ini
 
2. tar -zxf lighttpd-1.4.13.tar.gz
   cd lighttpd-1.4.13
   ./configure --prefix=/app/lighttpd-1.4.13 && make && make install
 
   创建conf,www,logs目录
   mkdir /app/lighttpd-1.4.13/conf
   mkdir /app/lighttpd-1.4.13/www
   mkdir /app/lighttpd-1.4.13/logs
   cp rtorrent_webui /app/lighttpd-1.4.13/www/rtorrent (webui管理软件)
   cp lighttpd-1.4.13/doc /app/lighttpd-1.4.13/conf
   编辑lighttpd.conf文件,修改对应的www和logs实际路经
 
   vi /app/lighttpd-1.4.13/conf/lighttpd.conf
   (1) 将server.modules 中启用"mod_fastcgi". 既把改行前面#号去掉
   (2) 找到fastcgi.server定义段,把前面#都去掉,更改,bin-path对应路经
       fastcgi.server          = ( ".php" =>
                                   ( "localhost" =>
                                     (
                                   "socket" => "/tmp/php-fastcgi.socket",
                                   "bin-path" => "/app2/php-5.2.6/bin/php-cgi"
                                     )
                                   )
                                 )

3. 这时启动lighttpd
   /app/lighttpd-1.4.13/sbin/lighttpd -f /app/lighttpd-1.4.13/conf/lighttpd.conf
   这时可以正常启动
 
4. 编辑lighttpd.conf文件,加入scgi支持
   在 server.modules 下加入 "mod_scgi"
   server.modules = (
                            "mod_scgi"
                    )
 
5. 编辑lighttpd.conf文件,在最后面加入对应scgi
   scgi.server = ( "/RPC2" =>
                   ( "192.168.1.32" =>
                     (
                       "host" => "192.168.1.32",
                       "port" => 5000, (管理端口要与.rtorrent.rc一致)
                       "check-local" => "disable"
                     )
                   )
                )
 
6. 编辑用户目录下的.rtorrent.rc文件
   vi .rtorrent.rc 在最后面加入
   scgi_port = :5000 (与lighttpd.conf端口一致)
 
7. 使用webui
   注: 先启动rtorrent, 然后启动lihttpd
   在浏览器中输入
 
文件: rt_webui.rar
大小: 186KB
下载: 下载
 
        
阅读(1823) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~