ubuntu 8.04 (hardy) + rtorrent + rutorrent + RPC2

jith45

Member
May 25, 2018
960
0
16
Hi everybody!

I am having some problems with ubuntu 8.04 (hardy) + rtorrent + rutorrent + RPC2.

Everything except RPC2 is working perfectly.
When browsing to localhost/RPC2 I get an Internal Server Error 500.

Strangely enough I can add torrents without problem in rutorrent.

My config looks like this:

rtorrent.rc
scgi_port = 127.0.0.1:5000

httpd.conf
SCGIMount /RPC2 127.0.0.1:5000
servername localhost

config.php
$scgi_port = 5000;
$scgi_host = "127.0.0.1";
$XMLRPCMountPoint = "/RPC2";

www-logs
[Mon Aug 01 10:28:40 2011] [error] [client 10.8.0.6] Premature end of script headers: RPC2
[Mon Aug 01 10:28:40 2011] [error] [client 10.8.0.6] (500)Unknown error 500: scgi: Unknown error 500: error reading response headers

I would really appreciate if someone could help me solve this problem.

My problem is identical to the following thread, but I do not want to install and use the RPC plugin:
http://forums.rutorrent.org/index.php?action=printpage;topic=680.0

PS: I'm a beginner in the ubuntu world so please keep this in mind.
 

jith45

Member
May 25, 2018
960
0
16
I understand that I am not normaly supposed to go to http://url/RPC2 in a web browser, but the reason I did it was because Rutorrent give me the following error in the Rutorrent log:

[10.08.2011 19:23:55] WebUI started.
[10.08.2011 19:23:56] Bad response from server: (500 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p>
<address>Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch mod_scgi/1.12 Server at 172.16.1.12 Port 80</address> </body></html>

Apache log:

[error] [client 172.16.1.2] Premature end of script headers: RPC2, referer: http://172.16.1.12/rutorrent/
[error] [client 172.16.1.2] (500)Unknown error 500: scgi: Unknown error 500: error reading response headers, referer: http://172.16.1.12/rutorrent/

Any suggestions or ideas how I can debug this?