Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Linux > Other Tips, Tricks and Tutorials

December 7th, 2006, 10:03 GMT · By Mihai Marinof

Installing TorrentFlux and XAAMP

SHARE:

Adjust text size:


TorrentFlux is a PHP based torrent client that runs on a web server, allowing you to manage your downloads through a web interface from anywhere. It's based on BitTornado and requires a functional LAMP server in order to run properly. Once having it installed, you'll be able to add, remove and/or manage torrents and their settings through a web browser. NOTE! If your Linux system already has a functional Apache + MySQL suite already installed, you can skip this step. Otherwise, this guide will allow you to have TorrentFlux installed with XAMPP.


Install XAMPP

XAMPP is a very easy to install Apache distribution containing MySQL, PHP, Perl and ProFTPD. To install it, you have to:

- Download the latest version of XAMPP from Softpedia - click HERE.

- Extract the packages and move them to the appropriate directories:
CODE
# tar xfz xampp-linux-1.5.5a.tar.gz -C /opt/

- Secure your XAMPP installation. Type:
CODE
# /opt/lampp/lampp security

- Answers you'll need to type:
CODE
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? NO

XAMPP: MySQL is accessible via network.
XAMPP: Normally, that's not recommended.
Do you want me to turn it off? YES.

XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? YES
Enter your password

XAMPP: MySQL has no root password set!!!
XAMPP: Do you want to set a password? YES
Enter your password

XAMPP: The FTP password is still set to 'lampp'.
XAMPP: Do you want to change the password? NO

- Start Apache and MySQL:
CODE
# /opt/lampp/lampp startapache
# /opt/lampp/lampp startmysql

Install TorrentFlux

NOTE1: If you already have Apache, PHP and MySQL installed and skipped the "Install XAMPP" step, you should remove the /opt/lampp/bin/ target from ALL the commands. For instance:
# /opt/lampp/bin/mysqladmin -uroot -p create torrentflux
becomes:
# mysqladmin -uroot -p create torrentflux

NOTE2: If you already have Apache, PHP and MySQL installed, the PHP configuration file could be unsuitable for TorrentFlux. Check the /etc/php.ini file if the following directives are correctly set:
CODE
safe_mode = Off
allow_url_fopen = On

NOTE3: If you're running FEDORA CORE, you must disable SELinux: Open /etc/selinux/config and replace the line:

SELINUX=enforcing
with
SELINUX=disabled

and reboot your computer.

- Download the latest version of TorrentFlux from Softpedia - click HERE.

- Extract and move it to the appropriate directory:
CODE
# tar xfz torrentflux_2.2.tar.gz -C /opt/
# mv /opt/torrentflux_2.2/html /opt/lampp/htdocs/tf

(If you already have Apache installed, you should use the proper document root, usually /var/www/html so the command will be:

# mv /opt/torrentflux_2.2/html /var/www/html/tf )

- Create a database for torrentflux and load the sql script in it.
CODE
# /opt/lampp/bin/mysqladmin -uroot -p create torrentflux
(Enter the MySQL root password you've set using XAMPP security script)

# cd /opt/torrentflux_2.2/sql
# /opt/lampp/bin/mysql -uroot -p torrentflux < mysql_torrentflux.sql
(Enter the same MySQL root password)

- Edit /opt/lampp/htdocs/tf/config.php file and specify the MySQL ROOT password in the db_pass directive. The rest shouldn't need to be edited.

- Open a browser and go to http://your.linux.ip.address/tf. The first time you access TorrentFlux, you will be prompted for a user and password, this will be used to set the SUPERADMIN user and password by what you enter. If you enter username "admin" and password "nimda", you will be able to access the application later by using this login information. Enjoy!
Review imageReview imageReview imageReview image

TELL US WHAT YOU THINK:

23,339 hits · 1 comment · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Grant Root Privileges to Regular Users

Installing NTFS Write Support on Fedora/Ubuntu

Setting Up a SHOUTcast Server + DSP Plug-In

Apache VirtualHosting Guide

Building Your Own IRC Server with Services

READER COMMENTS:


Comment #1 by: lefko on 16 Jan 2011, 14:33 UTC reply to this comment

Great tutorial. The only place there was a slight wrinkle was at the end before opening the browser I needed to change httpd-xamp.conf and add the line
Alias /tf "/opt/lampp/htdocs/tf"

Copyright © 2001-2012 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM