How to install torrentflux on centos 5.5

by Ruchira on September 17, 2010

torrentflux How to install torrentflux on centos 5.5

 

This is a guide to install (torrent seedbox)torrentflux latest 2.4 on centos 5.5 from scratch! you dont need to know anything because all the steps are clearly provided so don’t hesitate to follow these steps.

First of all you need a dedicated server or vps for installing torrentflux. I recommend getting a vps from Germany hosting provider like www.keyweb.de or like that because most of providers in USA doesn’t like to run torrents on their servers due to copyright issues.

You need a bigger bandwidth at least 300GB, Disk Space and RAM of at least 512MB because this script consumes about 400MB of RAM in most basic configuration.

You need to have centos linux installed to continue these steps if not simply install centos from your provided vps control panel.

You need to download SSH client first like PUTTY http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

After installing run it and enter your ip address given by vps or dedicated provider to login to your box.

ssh putty How to install torrentflux on centos 5.5

When prompted enter your user name ( default user name after installing centos is-root) and your pass so it will log you on to the system.

ssh logged on How to install torrentflux on centos 5.5

 

You can see that now I have successfully logged on to the centos server and now follow these commands to install torrentflux. ( Type these codes and press enter inside putty)

You need to update to latest centos 5.5 first so the run the code below to update the centos operating system. After hit enter this will take time and after finished you will be able to type codes again so wait until it complete.
yum update

Then we need to install apache,mysql,php and curl so run this codes

yum install httpd python php mysql-server php-mysql php-common php-gd php-curl

 

Now we have installed all the scripts necessary so restart apache by using this code

/etc/init.d/httpd restart

Now we need to create my sql data base user. run this

mysql_install_db

And we need a apache and mysql to be automatically started if our server reboot. So run this

chkconfig --levels 235 httpd on
chkconfig --levels 235 mysqld on

Then type this to restart  mysql

/etc/init.d/mysqld restart
Then wee need to create mysql root password you can use any password for this simply replace YOURPASSHERE with your desired password.
mysqladmin -u root password YOURPASSHERE

Then you need to create a directory to run torrentflux because running on the main directory might give us some problems so please create a directory. Its like normal directory for ex- www.google.com/images ! In this guide I have set the directory as torrentflux you can see it below! Run this code

mkdir /var/www/html/torrentflux

Next you need to download torrentflux and install it so run this codes one by one,

cd /var/www/html/torrentflux/
wget http://softlayer.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.4.tar.gz

Default downloaded torrentflux installation files are compressed. So uncompress it by running following codes.

tar -xzf torrentflux_2.4.tar.gz
mv torrentflux_2.4/html/* /var/www/html/torrentflux/

Now lets create a mysql database for torrentflux just like you do for wordpress
run this codes

 

cd /var/www/html/torrentflux/torrentflux_2.4/sql/
And on this step put your mysql password as you set early in previous steps as YOURPASSHERE
Im creating a database named “torrents” run below codes one by one
mysql -u root -pPassword: YOURPASSHEREmysql>create database torrents;mysql>q
And run this too also replace YOURPASSHERE with your preset password when prompted after running first line of command
mysql torrentflux < mysql_torrentflux.sql -u root -pPassword: YOURPASSHERE

Then you need to create a directory to store downloaded files. Im making a directory called downloads. Also run these commands one by one

mkdir /downloads chmod 777 /downloadschown apache.apache /downloads

Now we need to edit torrentflux configuration file, (like we edit wordpress’s wp-config.php )

You need to install nano text editor so run this commands one by one

yum install nanonano /var/www/html/torrentflux/config.php

then nano text editor will display following sheet. Its your torrentflux config.php file! You can navigate by arrow keys and enter the database details on that. You can edit it just like you edit file in windows notepad.

/**************************************************************************/// 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/drivers/$cfg["db_host"] = "localhost";   // DB host computer name or IP$cfg["db_name"] = "torrents"; // Name of the Database$cfg["db_user"] = "root";        // username for your MySQL database$cfg["db_pass"] = "YOURPASSHERE";    // password for database/**************************************************************************/

After editing to correct database details. Press your keyboards Ctrl (Control key) and when holding Ctrl press O ( Not zero) then release the both keys (Ctrl+O) and it will ask you to save the edited file then press enter to confirm.

For exit press and hold Ctrl and then press X ( Ctrl+X)

Then tighten up your security little bit. Run these commands on ssh.

chmod -R 755 /var/www/chown -R apache.apache /var/www/

Then restart apache and mysql services

/etc/init.d/httpd restart/etc/init.d/mysqld restart

Yeah! Its 100% complete navigate to http://yourip/torrentflux/

Then it will ask for user name and password the default password and username is-

user:goombah

pass:iamah

 

yes its finished Now I think you can setup the basic things in torrentflux after you logged on! So enjoy and seed @ Piratebay! icon razz How to install torrentflux on centos 5.5

I'm Ruchira Sahan and all posts on this blog are completely my thoughts and writings. I love DIY and Technology. So feel free to contact me for anything about this blog and don't forget to add a comment if this blog helped you! Thanks
 How to install torrentflux on centos 5.5
Ruchira
View all posts by Ruchira

Last 5 posts by Ruchira

Random Posts

{ 21 comments… read them below or add one }

Anonymous September 20, 2010 at 3:15 PM

Really well written tutorial. But I’d like to suggest you to introduce each program(Eg: Shell) and why it’s used at the point. So they can get a better understanding.

Reply

Admin September 22, 2010 at 6:34 AM

Yes. but if people know whats a vps and own a vps. They should know whats Shell and SSH. I know its better to write “What is Shell” but in this situation its unnecessary. How ever thanks for your idea.

Reply

Anonymous September 22, 2010 at 7:19 AM

I know. :) But there are still people out there who don’t have knowledge in the shell even they use VPS from big time. Most of them just use cPanel to administrate the server.(I know it’s not advanced. But they still do.)

Reply

Zippee October 3, 2010 at 4:44 PM

I’m blocked to this step

mysql -u root -pPassword: YOURPASSHEREmysql>create database torrents;mysql>q

Keep saying : Access denied for user ‘root’@'localhost’ (using password: yes)

I try to change my password. Still don’t work… What else can I try ?

Thank you !

Reply

Ruchira October 4, 2010 at 1:38 AM

Hello Zippee,
Are you 100% sure that you are using correct password?

Reply

unruhe7 October 7, 2010 at 2:54 PM

I bave simular problem :(

mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@'localhost’ (using password: NO)’

Any solution ?

Reply

Ruchira October 7, 2010 at 9:52 PM

Hello,
Using password:NO means you didnt entered the password when prompting! Please use correct root password when prompted to do so!
Thanks

Reply

unruhe7 October 8, 2010 at 3:20 AM

Thx for fast response.
But I provide my root password…
I paste:
# mysqladmin -u root password myrootpassword

And after this i have that message.
Myrootpassword is for 100% correct…

Reply

lupetalo March 8, 2011 at 3:44 PM

I have same problem, 100% correct pass and stil error
Can you explain this line:
mysql -u root -pPassword: YOURPASSHEREmysql>create database torrents;mysql>q

no space or anything between “YOURPASSHERE” and “mysq”

Reply

tina November 13, 2010 at 3:10 PM

I’ve been exploring for some time for that solid view in respect to the following subject . Checking in Yahoo I now noticed this blog post. Seeing this post I’m just seriously happy to pronounce that I’ve got a great impression I stumbled upon just what I needed. I’ll ensure to remember this website and look it over consistently.

Reply

imithFaisaTus December 4, 2010 at 7:04 PM

Wow all I can say is that you are a great writer! Where can I contact you if I want to hire you?

Reply

Ruchira December 5, 2010 at 7:43 AM

there is a contact form if you want to contact me! But im not open to writing jobs :)

Reply

ranpha February 2, 2011 at 8:54 PM

This is a very good guide to set up a seedbox. Thanks :)
I have it up on my VPS now.

Reply

Chocolateshirt March 2, 2011 at 9:22 PM

thanks…

very good tutorials..

Reply

dominic May 15, 2011 at 10:01 AM

stuck at mysql -u root -pPassword: YOURPASSHEREmysql>create database torrents;mysql>q error 1045
please help

Reply

Ruchira May 15, 2011 at 7:43 PM

I think I have already answered this!

Reply

dominic May 15, 2011 at 10:18 AM

it shows access denied for user roo @localhost with password (yes) error1045

Reply

Ruchira May 15, 2011 at 7:44 PM

its root not roo

Reply

Passion May 26, 2011 at 10:55 AM

hey ruchira i am stucked @ mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@'localhost’ (using password: NO)’
please help me !

Reply

Unnikrishnan June 17, 2011 at 3:36 AM

Hello, Ruchira

Really nice work. I am going to try this in my centos VPS. I have already installed rutorrent, utorrent and transmission in same vpa, hope this too work on it..

Thanks again

Reply

cowboyup910 September 24, 2011 at 3:34 PM

Hello,

stuck here @
mysql -u root -pPassword: YOURPASSHEREmysql>create database torrents;mysql>q

I enter the password I created at this step:
mysqladmin -u root password YOURPASSHERE

Reply

Leave a Comment


Previous post:

Next post: