openwrt(wndr4300)安装rutorrent
2014 年 12 月 21 日 openwrt(wndr4300)安装rutorrent无评论
如前文编译安装了rtorrent-rpc,web界面使用rutorrent,需要php的支持,详细过程如下
rtorrent-rpc编译安装参考 openwrt(wndr4300)编译安装配置rtorrent-rpc
1.安装lighttpd php
opkg install php5 php5-cgi php5-fastcgi lighttpd-mod-access lighttpd-mod-alias lighttpd-mod-cgi lighttpd-mod-fastcgi lighttpd-mod-auth lighttpd-mod-scgi php5-mod-json zoneinfo-core unrar unzip coreutils-stat
2.配置lighttpd,支持php解析
vi /etc/lighttpd/lighttpd.conf
server.modules增加
“mod_cgi”,
cgi.assign 增加 “.php” => “/usr/bin/php-cgi”
index-file.names 增加index.php如
index-file.names = ( “index.html”, “default.html”, “index.htm”, “default.htm”, “index.php” )
3.安装rutorrent
下载rutorrent
https://github.com/Novik/ruTorrent
https://bintray.com/novik65/generic/ruTorrent
cd /www
wget https://bintray.com/artifact/download/novik65/generic/plugins-3.6.tar.gz --no-check-certificate
wget --no-check-certificate https://bintray.com/artifact/download/novik65/generic/rutorrent-3.6.tar.gz
tar xvzf plugins-3.6.tar.gz
tar xzvf rutorrent-3.6.tar.gz
cd /usr/bin
ln -s php5-cgi php
wget https://bintray.com/artifact/download/novik65/generic/plugins-3.6.tar.gz --no-check-certificate
wget --no-check-certificate https://bintray.com/artifact/download/novik65/generic/rutorrent-3.6.tar.gz
tar xvzf plugins-3.6.tar.gz
tar xzvf rutorrent-3.6.tar.gz
cd /usr/bin
ln -s php5-cgi php
修改默认下载路径,及可执行文件位置
vi /www/rutorrent/conf/config.php
"curl" => '/usr/bin/curl'
"stat" => '/usr/bin/stat'
$topDirectory = '/mnt/usb';
"curl" => '/usr/bin/curl'
"stat" => '/usr/bin/stat'
$topDirectory = '/mnt/usb';
访问http://路由ip/rutorrent即可
Tags: openwrt php rtorrent-rpc rutorrent wndr4300
发表评论