fullout: настройка lighttpd & wtorrent

3 сообщения / 0 new
Последнее сообщение
Гость
fullout: настройка lighttpd & wtorrent

имеется сабж. Но при переходе на страницу wtorrent'а он говорит, что rtorrent не запущен - хотя процесс висит. Есть подозрение, что нужно копать настройки lighttpd, но где - не могу понять. Гугл вменяемой информации дать не может.

lighttpd.conf
[i]var.basedir = "/var/www/localhost"
var.logdir = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
server.modules = (
"mod_access",
"mod_scgi",
"mod_auth",
"mod_accesslog"
)
include "mime-types.conf"
server.username = "lighttpd"
server.groupname = "lighttpd"
server.document-root = var.basedir + "/htdocs"
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = var.logdir + "/error.log"
server.indexfiles = ("index.php", "index.html",
"index.htm", "default.htm")
server.follow-symlink = "enable"
server.port = 4443
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
accesslog.filename = var.logdir + "/access.log"
url.access-deny = ("~", ".inc", ".db", ".tpl.php", ".cls.php",)
include "mod_fastcgi.conf"
scgi.server = (
"/RPC2" =>
((
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable",
))
)
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/var/www/htdigest"
auth.require = ( "/RPC2" =>
(
"method" => "basic",
"realm" => "XML-RPC",
"require" => "valid-user"
)
)
[/i]
/home/torrent/.rtorrent.rc
[i]
max_peers = 200
max_uploads = 10
port_range = 9595-9595
dht = auto
dht_port = 6881
scgi_port = localhost:5000
encoding_list = UTF-8
[/i]
/var/www/localhost/htdocs/wtorrent/conf/user.conf.php
[i]<?php
/* wTorrent autoconfiguration file. Created 13/7/2009 */
define ('LANGUAGE', 'ru_RU');
define ('DB_FILE', 'db/wtorrent.db');
define ('RT_HOST', 'localhost');
define ('RT_PORT', 4443);
define ('RT_DIR', '/RPC2');
define ('RT_AUTH', false);
define ('RT_USER', 'torrent');
define ('RT_PASSWD', 'qazwsx');
define ('NO_MULTICALL', true);
define ('EFFECTS', true);
define ('DIR_TORRENTS', 'torrents/');
define ('DIR_EXEC', '/var/www/localhost/htdocs/wtorrent/');
define ('DIR_DOWNLOAD', '/mnt/trash');
?>
[/i]

все собиралось по этому мануалу http://passshok.ya.ru/replies.xml?item_no=1323&ncrnd=2688&nocookiesuppor....
В логах lighttpd дает
[b]2009-07-13 14:16:41: (http_auth.c.876) get_password failed
2009-07-13 14:16:41: (mod_scgi.c.2467) emergency exit: scgi: connection-fd: 8 fcgi-fd: -1
2009-07-13 14:16:41: (mod_fastcgi.c.2618) FastCGI-stderr: XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: HTTP/1.0 401 Unauthorized
[/b]
Дык куда копать?

<span class='smallblacktext'>[ Редактирование ]</span>

fullout (не проверено)

Заработало после выноса всего (emerge --depclean rtorrent lighttpd php) и переустановки. Правда upload торрент файлов все равно не работает.

cat /var/www/localhost/htdocs/wtorrent/conf/user.conf.php
[i]<?php
/* wTorrent autoconfiguration file. Created 14/7/2009 */
define ('LANGUAGE', 'ru_RU');
define ('DB_FILE', 'db/database.db');
define ('RT_HOST', 'localhost');
define ('RT_PORT', 80);
define ('RT_DIR', '/RPC2');
define ('RT_AUTH', false);
define ('RT_USER', '');
define ('RT_PASSWD', '');
define ('NO_MULTICALL', true);
define ('EFFECTS', true);
define ('DIR_TORRENTS', '/var/www/localhost/htdocs/wtorrent/torrent');
define ('DIR_EXEC', '/var/www/localhost/htdocs/wtorrent/');
define ('DIR_DOWNLOAD', '/mnt/trash/');
[/i]
Как я понимаю пишет он эти файлы в каталог /var/www/localhost/htdocs/wtorrent/torrent, и пишет под ползователем lighttpd:lighttpd. Разрешения стоят, почему не пишет?

AnViar
Аватар пользователя AnViar
Не в сети
Зарегистрирован: 21/09/2010

[quote=fullout]... почему не пишет?[/quote]
Логи !help

RSS-материал