View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: HOWTO: Torrentflux on R6
PostPosted: Mon Mar 09, 2009 8:35 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
1. Install
Code:
$ sudo pacman -Sy torrentflux


2. You need to create a mysql database for torrentflux
Code:
$ mysqladmin -u root create torrentflux


3. Load the script that creates tables and such
Code:
$ mysql -u root torrentflux < /opt/torrentflux/sql/mysql_torrentflux.sql


4. Edit /opt/torrentflux/config.php
Code:
$ sudo nano /opt/torrentflux/config.php

Find this section and make it look like this:

Code:
/**************************************************************************/
// YOUR DATABASE CONNECTION INFORMATION
/**************************************************************************/
// Check the adodb/drivers/ directory for support for your database
// you may choose from many (mysql is the default)
$cfg["db_type"] = "mysql";       // mysql, postgres7, postgres8 view adodb/driv$
$cfg["db_host"] = "localhost";   // DB host computer name or IP
$cfg["db_name"] = "torrentflux"; // Name of the Database
$cfg["db_user"] = "mythtv";        // username for your MySQL database
$cfg["db_pass"] = "mythtv";            // password for database
/**************************************************************************/


5. Make needed directories and adjust permissions
Code:
$ sudo mkdir /data/srv/httpd/htdocs/tf && sudo cp -a /opt/torrentflux/* /data/srv/httpd/htdocs/tf && sudo chown -R http /data/srv/httpd/htdocs/tf && sudo mkdir -p /myth/torrents


6. Edit /etc/php/php.ini
Code:
$ sudo nano /etc/php/php.ini

At ~line 216 be sure safe_mode = Off. Then add the following to open_basedir= variable (~line 252)
Code:
:/myth/torrents/:/bin/:/usr/bin/:/proc/


7. Enter http://localhost/tf in your browser (Note: If you're accessing from somewhere other than the box you installed torrentflux on, enter the IP address of your box instead of 'localhost')

You're presented with a login page. Enter a username and password and this will create the administrator account for torrentflux. For ease, I used mythtv/mythtv.

After login, you're kicked to the settings page. Adjust the PATH to /myth/torrents/ and fixup your PORT RANGE to be sure people can reach you. All the PATHS should have a green circle next to them. If not, check the path and make sure it's readable by user http. Step through the remainder of the menus and adjust things as needed/desired. You shoud now have a functioning bittorrent setup.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 11, 2009 7:20 pm 
Offline
Joined: Fri Feb 11, 2005 9:51 am
Posts: 37
When I try to pull it up in the browser (Step 7) I get this error.

Code:
Notice: Undefined index: debug_sql in /data/srv/httpd/htdocs/tf/db.php on line 68
Database error: Access denied for user 'mythtv'@'localhost' to database 'torrentflux'

Always check your database variables in the config.php file.

_________________
Tag Scott

AMD 1800
MSI VIA KT-333
GF4 Ti4200
250 GB HHD
PVR-250
SB Live
DVD+/-RW


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 11, 2009 7:48 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
Tag_Scott wrote:
Code:
Notice: Undefined index: debug_sql in /data/srv/httpd/htdocs/tf/db.php on line 68
Database error: Access denied for user 'mythtv'@'localhost' to database 'torrentflux'

Always check your database variables in the config.php file.


Try changing the database host in config.php to the IP address of the machine hosting the db. If that fails, thy this:

Code:
$ mysql -u root mythconverg
mysql> grant all on torrentflux.* to mythtv@"%" identified by "mythtv";
mysql> flush privileges;


This is a very insecure way to allow access to your db. Basicly, anyone who can login as mythtv from anywhere can change anything. See this section (Modifying access to the MySQL database for multiple systems) of the mythtv docs for more info.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 07, 2009 1:57 pm 
Offline
Joined: Fri Oct 13, 2006 7:42 pm
Posts: 63
Thanks for these notes!

I think in practice that Azuerus is very annoying - but the compiled torrent clients work a magnitude faster than script based ones, which is no surprise, but you save a lot of time.

Isn't the development on torrentflux super slow? (it's certainly easy to mod if you know php)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 25, 2009 10:06 pm 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
I have torrentflux up and running, and everything appears to be working. However, I can't download files... I download a torrent file, set it to run, and the torrent is stuck at 0%. The "light" next to the file is Red.

Are there any logs to check? Any suggestions on why this isn't working?

Thanks!

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 26, 2009 11:57 am 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
kmkittre wrote:
I download a torrent file, set it to run, and the torrent is stuck at 0%. The "light" next to the file is Red.

Are there any logs to check? Any suggestions on why this isn't working?

Could be that there are no seeds for you to connect to. Could be that you have not opened any ports on your firewall/router to use with bit torrent... As far as logs go, try the "admin" link on the top right.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 26, 2009 12:44 pm 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
I found my error. My path had a space in it. I thought this wasn't an issue because TF was creating a folder in the path but apparently it was a problem because when I changed the path it started working...

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 28, 2010 11:31 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
So I tried this and have had little success. I'm getting the
Code:
Access denied for user 'mythtv'@'localhost' to database 'torrentflux'

I've tried running everything I can think of. I know this post is a year old, has anything changed since then? I am running a backend frontend system and the backend is a Master backend is that a complication?
I've peeked at the mysql settings in Webmin but I couldn't see anything out of the ordinary.

Help
I'm one more sleepless night away from Vuze.

_________________
My System


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu