[solved] проблема с scgi? (rutorrent + lighttpd) + Opera
Beelzebubbie 26 октября, 2010 - 00:54
rtorrent+rutorrent работали. решил привести все это хозяйство в порядок (права, каталоги итд).
Теперь имею в вебморде:
[26.10.2010 02:48:09] WebUI started. [26.10.2010 02:48:14] Bad response from server: (500 [error,list]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>500 - Internal Server Error</title> </head> <body> <h1>500 - Internal Server Error</h1> </body> </html>
а вроде бы особо ничего не менял...
lighttpd.conf:
var.basedir = "/home/user/Torrents/www"
var.logdir = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
server.modules = (
"mod_access",
"mod_scgi",
)
server.username = "lighttpd"
server.groupname = "lighttpd"
server.document-root = var.basedir + "/rutorrent"
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = var.logdir + "/error.log"
....
по умолчанию
....
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable"
)
)
)
в логе httpd такое:
(mod_scgi.c.1813) Connection reset by peer 7 8 (mod_scgi.c.2579) response not sent, request sent: 4366 connection-fd: 7 fcgi-fd: 8
заранее спасибо )
»
- Для комментирования войдите или зарегистрируйтесь

конфиг mod_fastcgi
конфиг mod_fastcgi покажите.
И, кстати, все эти заморочки с /RPC2 нафиг не сдались - плагин rpc отлично работает.
Owl's are not what they seem...
mod_fastcgi.conf
mod_fastcgi.conf (дефолтный)
server.modules += ("mod_fastcgi") fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/var/run/lighttpd/lighttpd-fastcgi-php-" + PID + ".socket", "bin-path" => "/usr/bin/php-cgi" ) ) )Надеюсь, он подключен
Надеюсь, он подключен include'ом в основной конфиг %)
В настройках у rtorrent все в порядке в части RPC?
Owl's are not what they seem...
include "mod_fastcgi.conf"
include "mod_fastcgi.conf" присутствует:), клиент ntorrent работает.
попробовал поменять localhost:5000 на socket /tmp/rutorrent.socket (во всех 3х местах), ошибка осталась прежней.
какая-то мистика нехорошая )
Чтобы работало через socket
Чтобы работало через socket надо чтобы права на него были такие, которые позволяют пользователю lighttpd в него писать. У меня решено так:
gentoo ~ # cat /home/rtorrent/.rtorrent.rc
scgi_local = /tmp/rtorrent.socket
[skip]
schedule = chmod,0,0,"execute=chmod,777,/tmp/rtorrent.socket"
gentoo ~ # cat /var/www/localhost/htdocs/rutorrent/conf/config.php
[skip]
$scgi_port = 0;
$scgi_host = "unix:///tmp/rtorrent.socket";
Все это, соответственно, с плагином rpc (mod_scgi не нужен в таком случае).
Owl's are not what they seem...
все разрешилось, можно
все разрешилось, можно смеяться. проблема была связана с браузером (Опера). после чистки cookies, соответствующих хосту rtorrent, все заработало.
Сове спасибо за отзывчивость )