rTorrent's user can't access.... and so on error

peshua19

Member
May 25, 2018
897
0
16
hi, i've installed rutorrent and almost all plugins and things is working almost good.
using apache2.

the problems i have is those "rTorrent's user can't access php interpreter" errors.
Code:
[21.05.2010 23:57:16] Autotools plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[21.05.2010 23:57:16] Retrackers plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[21.05.2010 23:57:16] Traffic plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[21.05.2010 23:57:16] RSS plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[21.05.2010 23:57:16] Scheduler plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[21.05.2010 23:57:16] RSS plugin: rTorrent's user can't access curl program. You will not be able to work with https feeds.
[21.05.2010 23:57:16] Unpack plugin: rTorrent's user can't access unzip program.
[21.05.2010 23:57:16] Unpack plugin: rTorrent's user can't access unrar program.
i've tried to set the path to php and curl by doing "which php" and set the path in ./conf/config.php
i've tried to run rtorrent under root by doing "sudo screen rtorrent".
i've done chmod 777 on all rutorrent files.

think i've googled and seached forum for like several days but no result.
am i the only one not understanding how to do? =)

regards kufra!
 

simur612

Member
May 25, 2018
879
0
16
which os do you have?


you need a command line version of php

for debian based linux this would be
Code:
apt-get install php5-cli
 

saroos1

Member
May 25, 2018
718
0
16
that was a quick reply! =)

i use ubuntu 9.10.
ohh so it's cli i need =) thought it was cgi or just php5....

Code:
apt-get install php5-clitells me
Code:
php5-cli is already latest version.
so i tried "which php5-cli" but no result. can't find php5-cli anywhere?
 

lisas4567

Member
May 25, 2018
773
0
16
that's because when you install php5-cli it installs the php binary.

try which php

then try php -v



i think your rutorrent config is bad.


post it.
 

saroos1

Member
May 25, 2018
718
0
16
Code: [Select]
php -v
PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 2010 22:41:56)
Copyright (c) 1997-2009 The PHP Group

so this means my php "includes" php-cli?

Code:
<?php
// configuration parameters

// for snoopy client
@define(&#39;HTTP_USER_AGENT&#39;, &#39;Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0&#39;, true);
@define(&#39;HTTP_TIME_OUT&#39;, 30, true); // in seconds
@define(&#39;HTTP_USE_GZIP&#39;, true, true);

@define(&#39;RPC_TIME_OUT&#39;, 5, true); // in seconds

@define(&#39;LOG_RPC_CALLS&#39;, false, true);
@define(&#39;LOG_RPC_FAULTS&#39;, true, true);

// for php
@define(&#39;PHP_USE_GZIP&#39;, false, true);
@define(&#39;PHP_GZIP_LEVEL&#39;, 2, true);

$do_diagnostic = true;
$log_file = &#39;/tmp/errors.log&#39;; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true;

$topDirectory = &#39;/&#39;; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;

$scgi_port = 5000;
$scgi_host = "127.0.0.1";

$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!

$pathToExternals = array(
"php" => &#39;/usr/bin/php5&#39;, // Something like /usr/bin/php. If empty, will be founded in PATH.
"curl" => &#39;/usr/bin/curl&#39;, // Something like /usr/bin/curl. If empty, will be founded in PATH.
"gzip" => &#39;/bin/gzip&#39;, // Something like /usr/bin/gzip. If empty, will be founded in PATH.
"id" => &#39;/usr/bin/id&#39;, // Something like /usr/bin/id. If empty, will be founded in PATH.
);

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";

?>

even if i try things like
Code:
"php" => '/usr/bin/php',
Code:
"php" => '',
Code:
"php" => '/usr/bin/php5',it does not work...

doesn't this mean that none of those is right?
 

lisas4567

Member
May 25, 2018
773
0
16
it should be /usr/bin/php

also, are you using any sort of authentication?

if you want, email me ssh info at [email protected] (and url + user/-password for rutorrent) and i will fix it for you
 

randac56

Member
May 25, 2018
915
0
16
also, make sure the files are readable by the rtorrent user

make sure share is owned by the webuser


chances are, you didn't do this....

if rutorrent is at /var/www/rutorrent

Code:
chown -R www-data:www-data /var/www/rutorrent/share
the reason this will cause issues is php can't save any user info.....the rest of rutorrent can be owned by any user you like (root even) so long as it is READABLE, but share must be WRITABLE

(so must share/settings share/torrents and share/users)
 

simur612

Member
May 25, 2018
879
0
16
i've done
Code:
chmod -R 777 ./www/rutorrent
and im starting rtorrent by doing
Code:
screen rtorrentand this means my mainuser that i loged on to ssh with is the user of rtorrent right?

and mainuser is also the owner of rutorrent folder.

and yeah im using authentication in my apache2 conf file.

//kufra
 

lisas4567

Member
May 25, 2018
773
0
16
you shouldn't need to do permissions like that...honestly, i don't know what is wrong with your system.

If you need me to try to fix it i will look at it.

do me a favor....post the output of:


ls -al /var/www/rutorrent/share

(or whatever the rutorrent/share dir is)

and

ls -al /var/www/rutorrent/share/users
 

randac56

Member
May 25, 2018
915
0
16
Code:
ls -al /var/www/rutorrent/share
Code:
drwxrwxrwx 6 kufra kufra 4096 2010-05-21 21:59 .
drwxrwxrwx 10 kufra kufra 4096 2010-05-21 21:59 ..
drwxrwxrwx 5 kufra kufra 4096 2010-05-21 21:59 settings
drwxrwxrwx 6 kufra kufra 4096 2010-05-21 21:52 .svn
drwxrwxrwx 3 kufra kufra 20480 2010-05-21 21:59 torrents
drwxrwxrwx 4 kufra kufra 4096 2010-05-21 21:59 users

Code:
ls -al /var/www/rutorrent/share/users
Code:
drwxrwxrwx 4 kufra kufra 4096 2010-05-21 21:59 .
drwxrwxrwx 6 kufra kufra 4096 2010-05-21 21:59 ..
drwxrwxrwx 4 kufra kufra 4096 2010-05-18 20:26 kufra
drwxrwxrwx 6 kufra kufra 4096 2010-05-21 21:52 .svn