Need help configuring rtgui

293 views
Skip to first unread message

ghost...@gmail.com

unread,
Sep 9, 2011, 6:26:58 AM9/9/11
to rtGui
Hi Guys

I have recently upgraded my server and reinstalled rtorrent.
Unfortunately I can't seem to get rtgui working properly this time.

I keep getting a 500 internal error.

I am using an unmodified php.ini (originally named php.ini-production)
for php5


This is what rtorrent shows when it starts in console:
-----
(10:12:15) XMLRPC initialized with 897 functions.
(10:12:15) The SCGI socket is bound to a specific network device yet
may still pose a security risk, consider using 'scgi_local'.
----


Here are some relevant parts of info.php:
-------
Loaded Modules

core prefork http_core mod_so mod_authn_file mod_authn_dbm
mod_authn_anon mod_authn_default mod_authn_alias mod_authz_host
mod_authz_groupfile mod_authz_user mod_authz_dbm mod_authz_owner
mod_authz_default mod_auth_basic mod_auth_digest mod_file_cache
mod_cache mod_disk_cache mod_dumpio mod_reqtimeout mod_include
mod_filter mod_charset_lite mod_deflate mod_log_config mod_logio
mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers
mod_usertrack mod_unique_id mod_setenvif mod_version mod_ssl mod_mime
mod_dav mod_status mod_autoindex mod_asis mod_info mod_cgi mod_dav_fs
mod_vhost_alias mod_negotiation mod_dir mod_imagemap mod_actions
mod_speling mod_userdir mod_alias mod_rewrite mod_php5 mod_scgi


SERVER_SOFTWARE

Apache/2.2.17 (FreeBSD) mod_ssl/2.2.20 OpenSSL/0.9.8q DAV/2 PHP/5.3.8
with Suhosin-Patch mod_scgi/1.12


xmlrpc

core library version xmlrpc-epi v. 0.51
php extension version 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com
-------

/usr/local/etc/apache22/httpd.conf

LoadModule php5_module libexec/apache22/libphp5.so
LoadModule scgi_module libexec/apache22/mod_scgi.so


<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>


<IfModule mime_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>

--------

/usr/local/etc/apache22/extra/httpd-vhosts



<VirtualHost *:80>
ServerAdmin webm...@dummy-host.example.com
DocumentRoot "/usr/local/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "/var/log/dummy-host.example.com-error_log"
CustomLog "/var/log/dummy-host.example.com-access_log" common

LoadModule scgi_module /usr/local/libexec/apache22/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000

</VirtualHost>

nb. the path to mod_scgi.so needed to be changed.


Otherwise it is almost a base OS.



Thanks for your time :)





Patrick Conwell

unread,
Sep 9, 2011, 11:17:27 AM9/9/11
to rtGui
what happens if you go to 127.0.0.1:80? Do you get the standard apache
"it's working!" message?

And - dumb question - you are going to 127.0.0.1:5000 for rtgui,
right?

On Sep 9, 5:26 am, "ghostco...@gmail.com" <ghostco...@gmail.com>
wrote:
>     ServerAdmin webmas...@dummy-host.example.com
>     DocumentRoot "/usr/local/docs/dummy-host.example.com"
>     ServerName dummy-host.example.com
>     ServerAliaswww.dummy-host.example.com

ghost...@gmail.com

unread,
Sep 9, 2011, 9:31:56 PM9/9/11
to rtGui
Turns out I had to manually install the session support module this
time.

I am now getting the 'can't connect to rtorrent' error. Which should
be easy enough to figure out :D
Message has been deleted

ghost...@gmail.com

unread,
Sep 9, 2011, 9:37:59 PM9/9/11
to rtGui
For the records httpd-error.log now shows this:

[Sat Sep 10 01:37:01 2011] [error] [client 127.0.0.1] File does not
exist: /usr/local/www/apache22/data/RPC2


I am looking into it :)



On Sep 10, 1:17 am, Patrick Conwell <patrick.conw...@gmail.com> wrote:

ghost...@gmail.com

unread,
Sep 9, 2011, 7:36:41 PM9/9/11
to rtGui
Thanks Patrick

Yes 'It works' :p

Locally I use localhost/rtgui but I don't install X so I can only use
a commandline web browser. Remotely it has always been accessible at
host.domain.com/rtgui. Neither are working. I have just tried
127.0.0.1:500 just to check it says 'error reading socket', which is
something new :)

If you are talking about the scgi port it has not changed from
localhost:5000

I have copied my old config.php and .rtorrent.rc across and re-checked
all the paths. I have also tried the default configs to no avail :(





On Sep 10, 1:17 am, Patrick Conwell <patrick.conw...@gmail.com> wrote:

ghost...@gmail.com

unread,
Sep 10, 2011, 8:57:07 AM9/10/11
to rtGui
The last three posts have been approved in reverse chronological
order.

Also there is a double post which I cant figure out how to remove yet.




On Sep 10, 9:36 am, "ghostco...@gmail.com" <ghostco...@gmail.com>
wrote:

ghost...@gmail.com

unread,
Sep 12, 2011, 11:56:17 PM9/12/11
to rtGui
Hello again,

I am still getting this error in httpd-error.log



[Tue Sep 13 03:45:53 2011] [error] [client 127.0.0.1] File does not
exist: /usr/local/www/apache22/data/RPC2



Surely it has to be a simple oversight on my behalf, but what is it?




Here are the relevant sections of my configs:

[.rtorrent.rc]

port_range = 50003-51000
scgi_port = 127.0.0.1:5000
---------------------

[httpd-vhosts.conf]

NameVirtualHost *:80


LoadModule scgi_module /usr/local/libexec/apache22/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000
---------------------

[~/data/rtgui/config.php]

$rpc_connect="http://127.0.0.1/RPC2";
--------------------


Thanks again :)





Patrick Conwell

unread,
Sep 13, 2011, 1:35:08 PM9/13/11
to rtGui
Have you looked here: http://forums.freebsd.org/showthread.php?t=19645

I'm not very familiar with BSD. Sorry. (BTW, why are you running BSD?)

On Sep 12, 10:56 pm, "ghostco...@gmail.com" <ghostco...@gmail.com>
wrote:

Patrick Conwell

unread,
Sep 13, 2011, 1:50:17 PM9/13/11
to rtGui
Also, here are my relevant config files:

apache2.conf:
http://pastebin.com/NYxS8Yir

info.php:
http://pastebin.com/NNLHT5GV

rtorrent.rc:
http://pastebin.com/vwwVxU5a

rtgui config.php:
http://pastebin.com/4t23qp1r

apache2/sites-enabled:
http://pastebin.com/kuSt34pN


On Sep 12, 10:56 pm, "ghostco...@gmail.com" <ghostco...@gmail.com>
wrote:

ghost...@gmail.com

unread,
Sep 15, 2011, 7:53:18 PM9/15/11
to rtGui
Thanks!!! The link back to the FreeBSD forums worked a treat.

DutchDemon is a god among gods. He is one of the reasons I use BSD
lol Seriously, the support at FreeBSD.org is amazing. Sure you need
to be very pedantic and know a few things when you post but these are
practices that only benefit everyone. The fact that people like DD can
give very specific advice and know that your system will almost
certainly behave exactly as he expects is a major plus. It means that
I could jump onto any other well maintained BSD system and not have to
learn all the nuances of that particular system all over again.

FreeBSD also gives me exposure to an actual UNIX environment, rather
than a reverse engineered clone. Plus its development method means
that if I use 8.2 RELEASE for example, I can know that all the ports,
patches and other bug fixes marked 8.2 RELEASE are built and tested on
my exact system. No need to hack things together, leaving me time to
better use the system rather than putting out spot fires all day.


I could keep ranting, but my problem is fixed thanks to you and DD :)
Reply all
Reply to author
Forward
0 new messages