You are not logged in.

#1 2015-09-09 16:40:10

Swashy
Member
Registered: 2012-11-02
Posts: 22

Rutorrent won't connect to Nginx?

Hello all, I've been struggling to get Rutorrent and nginx working properly, and I could really use any insight this community may have.

I've followed the archwiki guide for this several times, all ending with failure:

    https://wiki.archlinux.org/index.php/RuTorrent#Nginx

I then tried following other guides on the internet for setting this up, but I slowly realized they *all* detailed different solutions to this, all of which are outdated.

So I tried archwiki's method again, and I'm still getting the same error message:
   

Torrent list not yet available, connection to rTorrent not established.

[09.09.2015 12:10:01] WebUI started.
[09.09.2015 12:10:01] Bad response from server: (200 [parsererror,getplugins]) <?php require_once( "util.php" ); require_once( "settings.php" ); function pluginsSort($a, $b) { $lvl1 = (float) $a["info"]["plugin.runlevel"]; $lvl2 = (float) $b["info"]["plugin.runlevel"]; if($lvl1>$lvl2) return(1); if($lvl1<$lvl2)	return(-1); return( strcmp($a["name"],$b["name"]) ); } function getFlag($permissions,$pname,$fname) { $ret = true; if(array_key_exists($pname,$permissions) &&....

Which goes on forever. Here's a pastebin with the full message: http://pastebin.com/C2Rn6RJp

And then this message after that:

[09.09.2015 12:10:01] Bad response from server: (405 [error,getuisettings]) <html>
 <head><title>405 Not Allowed</title></head>
 <body bgcolor="white">
 <center><h1>405 Not Allowed</h1></center>
 <hr><center>nginx/1.8.0</center>
 </body>
 </html>
 <!-- a padding to disable MSIE and Chrome friendly error page -->
 <!-- a padding to disable MSIE and Chrome friendly error page -->
 <!-- a padding to disable MSIE and Chrome friendly error page -->
 <!-- a padding to disable MSIE and Chrome friendly error page -->
 <!-- a padding to disable MSIE and Chrome friendly error page -->
 <!-- a padding to disable MSIE and Chrome friendly error page -->

The last one leads me to believe it is perhaps a file permissions error, but every source I've looked at gives me "oipinions" on what permissions should be set for what, and I'm also confused as to who should own what.

Since the first error message is a "bad response from server" I would guess I look at the server, but I don't know if the server is rutorrent's php, rtorrent, or xml-rpc-c. I'm guessing rutorrent, but the hiearchy of working parts with this setup is confusing, and I don't know php.

I greatly appreciate any help you guys may offer me. I'd really like to learn "how" one would find a solution to this, as I feel like a fucking idiot not being able to figure this out(apparently no one else on the internet has this problem).

Offline

#2 2015-09-21 23:40:09

Swashy
Member
Registered: 2012-11-02
Posts: 22

Re: Rutorrent won't connect to Nginx?

Welp, another day down the drain to this. I'm beginning to think I'm mentally retarded as I'm the only person in the planet who can't get a hello world php page running on nginx.

I know believe the rutorrent error is happening because nginx is not interpreting php. To isolate the problem I tried setting up a php hello world page, where instead of being interpreted, it would just download. 5 different drop-in "location" blocks into nginx.conf later I now get a 403 Forbidden nginx page and I cannot figure out why.

Pastebin of my nginx.conf: http://pastebin.com/fAGiiWQp

nginx's error log:

2015/09/21 19:03:00 [error] 23774#0: *1 directory index of "/etc/nginx/test/" is forbidden, client: 192.168.1.109, server: swerver, request: "GET / HTTP/1.1", host: "192.168.1.183:8000"

And I just moved it out of /etc/nginx (dumb I know but I get lazy when I'm sure nothing will work) to /srv/http/test/index.php and it still doesn't work. Heres my permissions, which should keep it from being denied.

drwxr-xr-x   4 http http  4096 Oct 25  2014 srv
drwxr-xr-x  3 http http 4096 Sep 21 19:28 http
drwxr-xr-x 2 http http 4096 Sep 21 19:27 test
-rwxr--r-- 1 http http  113 Sep 21 16:33 index.php

And in my /etc/php/php-fpm.conf file:

security.limit_extensions = .php

Any help would be greatly appreciated as I have no idea what I'm doing.

Offline

#3 2016-11-03 20:28:19

windozupdate
Banned
Registered: 2015-03-19
Posts: 25

Re: Rutorrent won't connect to Nginx?

Did you ever get this working?

Offline

Board footer

Powered by FluxBB