create and geoip plugin not working

jith45

Member
May 25, 2018
960
0
16
i have ubuntu 9.10 server 32 bit installed running PHP 5.2.10-2ubuntu6.5 with Suhosin-Patch 0.9.7 (cli) the problem is when i try to add or create torrent the [...] option is not there and geoip when i click peers it says unknown ? also i installed buildtorrent as a wise man told me to do so

/var/www/rutorrent/conf/config.php
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;/home/user/downloads/&#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/php&#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.
"stat" => &#39;/usr/bin/stat&#39;, // Something like /usr/bin/stat. 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";

?>

/var/www/rutorrent/plugins/create/conf.php
Code:
<?php
// configuration parameters

define(&#39;MAX_CONSOLE_SIZE&#39;,25,true);

$useExternal = "buildtorrent"; // Valid choices:
// false - use internal realization (may be too slow for large files)
// "transmissioncli" - use program transmissioncli (see http://www.transmissionbt.com/)
// "createtorrent" - use program createtorrent (see http://www.createtorrent.com)
// "mktorrent" - use program createtorrent (see http://mktorrent.sourceforge.net)
// "buildtorrent" - use program buildtorrent (see http://claudiusmaximus.goto10.org/cm/torrent.html)
$pathToCreatetorrent = &#39;/usr/bin/buildtorrent&#39;; // Something like /bin/createtorrent, or /bin/transmissioncli. If empty, program will be founded in PATH.
$pathToExternals["pgrep"] = &#39;/usr/bin/pgrep&#39;; // Something like /usr/bin/pgrep. If empty, will be founded in PATH.

?>
 

jith45

Member
May 25, 2018
960
0
16
not sure how to check permissions but i ran this command thinking it would give full permissions
Code:
sudo chmod -R 777 /home/user/downloads
 

das329717

Member
May 25, 2018
928
0
16
i edited the above code but it is /home/user/downloads/ in /var/www/rutorrent/conf/config.php because it said absolute path with trail slash but in my rtorrrent.rc it is /home/user/downloads
 

dsouvik215

Member
May 25, 2018
896
0
16
yah, i am not sure what's wrong with your system. my guess would be it's something in the php.ini


I know when i build everything myself it works fine. I could probably write a guide for it but i don't have time right now.
 

shwetha17

Member
May 24, 2018
785
0
16
ok thanks when you get time (no rush) let me know i done a fresh install again with ubuntu 9.10 32bit and same results its no big deal i can just manually type in the directory and all works well and the geoip just makes it look pretty anyway thanks wonslung
 

jith45

Member
May 25, 2018
960
0
16
Got it working create plugin working the whole time. It was get_dir plugin that was not working and it was not working bc i didnt have it installed and got geoip working by following installation directions missed this part
Code:
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip GeoLiteCity.dat.gz
sudo mkdir -v /usr/share/GeoIP
sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.datnoob error thanks for the help wonslung smiley.gif