RSS plugin: Web server user can't access curl program

saroos1

Member
May 25, 2018
718
0
16
hi, im running the latest 32bit debian lenny with rtorrent+rutorrent and this is what i get:

rss plugin: web server user can't access curl program. you will not be able to work with https feeds.

and

rss plugin: rTorrent's user can't access curl program. you will not be able to work with https feeds.

Iv'e read some of the other threads wich are about the same problem but i still havnt got it to work.

i think i dont have curl innstalled since i cant fint it under /usr/local/bin . can anyone explain me how to install it? (apt-get... but what?)

Also, i need help with how to define the curl path when i have gotten it installed ..

greets from norway, sorry for my bad English.
 

randac56

Member
May 25, 2018
915
0
16
on debian, it's as simple as doing:
Code:
apt-get install curl

Then setting the proper path in your config.php file (which would be /usr/bin/curl )

or you can do as nicobubulle says, and compile curl from source.

If you did this, you could set the path to anything you like by using the --prefix option. The default, however, would be /usr/local/bin/curl

so to recap

Easy way:
apt-get

Hard way:
download and compile source.
 

peshua19

Member
May 25, 2018
897
0
16
i just did a apt-get install curl and found that curl is now located in /usr/curl

Is this correct?
and again, i need help with exactly what to add to my config file smiley.gif

Thanks alot so far btw wink.gif

Edit: Nevermind, i reloaded the webui and now everything works just fine, thanks alot! smiley.gif
 

lisas4567

Member
May 25, 2018
773
0
16
You need to edit the conf file located here : ../rutorrent/conf/config.php
Find :
Code:
$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be founded in PATH.
"curl" => '', // Something like /usr/bin/curl. If empty, will be founded in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be founded in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be founded in PATH.
);

And change to :
Code:
$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be founded in PATH.
"curl" => '/usr/curl', // Something like /usr/bin/curl. If empty, will be founded in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be founded in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be founded in PATH.
);
 

randac56

Member
May 25, 2018
915
0
16
/usr/curl doesn't sound right.

/usr/bin/curl sounds right.

either way, unix gives you many ways to locate things. If it's a binary, in your PATH you can use which
Code:
which curl
If it's a file and you don't know where it might be, you can use FIND
Code:
find . -name "curl"(this will probably find more than just the curl binary

another tool, is locate. This uses a database which is updated periodically.
Code:
locate curl