Koozali.org: home of the SME Server

BitTorrent client

Malakai

BitTorrent client
« Reply #15 on: October 22, 2006, 08:34:07 AM »
Can somebody write step by step instructions please? I'm lost...

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
BitTorrent client
« Reply #16 on: October 22, 2006, 03:09:13 PM »
Quote from: "treydock"
$cfg["db_user"] = "root";        
$cfg["db_pass"] = "***********";



Where did you get a password for the MySQL user 'root'?
Regards,
William

IF I give advise.. It's only if it was me....

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #17 on: October 22, 2006, 05:33:25 PM »
mysql root password can be found in /root/.my.cnf but it shouldn't be used because root account shouldn't be used.

I'll try to explain all the necessary steps to install torrentflux (and it's the same for many other applications like SPIP or JOOMLA):

1) First, download the archive:
Code: [Select]
wget http://kent.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.1.tar.gz

2) Create an ibay, for exemple an ibay called torrent:
- owner: admin
- write: group, read: group
- Web access, local only or internet, as you want, without password (torrentlux has it own authentication system)
- enable dynamic pages

3) Remove the index.html from the html directory of the ibay
Code: [Select]
rm -f /home/e-smith/files/ibays/torrent/html/index.html

4) Extract the archive in the html directory of the ibay
Code: [Select]
tar xvzf torrentflux_2.1.tar.gz
mv torrentflux_2.1/* /home/e-smith/files/ibays/torrent/html/


5) make www the owner of all this files
Code: [Select]
chown -R www:www /home/e-smith/files/ibays/torrent/html

6) create a database and grant all permissions on it to a user of your choice, for example we will create a database called torrentflux_db, and we will grant permissions on it to user torrentflux with password torrent_pass
Code: [Select]
mysql
create database torrentflux_db;
grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
flush privileges;
exit


7) Open your web browser and go to the ibay you have created, for example http://yourserver/torrent.
You should arrived on a the installation page of the software, you just have to follow the instructions. When it asks for the mysql database parameters, enter the name of the database you have created the step before, server localhost and the user/password you have used
From my memory, you will also have to choose a directory to store the downloded file and give it 777 permissions, you can choose the directory you want. For example, I've created a directory download in the files directory of the ibay:
Code: [Select]
mkdir /home/e-smith/files/ibays/torrent/files/download
chown www:www /home/e-smith/files/ibays/torrent/files/download
chmod 777 /home/e-smith/files/ibays/torrent/files/download


That's all. I hope this were usefull, ask if you want more details

Cheers, daniel
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #18 on: October 22, 2006, 11:04:08 PM »
Something is not right, I get:


Forbidden

You don't have permission to access /torrent on this server.


When trying to access the ibay... Any idea why?

debiandog

Well I did a bit better than Malakai but...
« Reply #19 on: October 23, 2006, 12:37:37 AM »
When I try and upload a file I get

Quote

The connection was reset
       
The connection to the server was reset while the page was loading.
     
    *   The site could be temporarily unavailable or too busy. Try again in a few  moments.
    *   If you are unable to load any pages, check your computer's network
          connection.
    *   If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.


I am sure I am missing something painfully obvious!

Quote
Forbidden

You don't have permission to access /torrent on this server.


Malakai, You have the wrong address it should be something like: http://192.168.1.1/torrent/html/ the numbers being your internal network (I believe)  :wink:

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
BitTorrent client
« Reply #20 on: October 23, 2006, 01:36:33 AM »
Quote from: "VIP-ire"
mysql root password can be found in /root/.my.cnf but it shouldn't be used because root account shouldn't be used.

The question was for treydock.

Quote from: "VIP-ire"

I'll try to explain all the necessary steps to install torrentflux (and it's the same for many other applications like SPIP or JOOMLA):

dungog.net provides the easiest installation of Joomla.
http://dungog.net/sme/webapp.php#joomla
Regards,
William

IF I give advise.. It's only if it was me....

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #21 on: October 23, 2006, 09:37:52 AM »
Quote from: "Malakai"


Forbidden

You don't have permission to access /torrent on this server.


Can you please post the result of these commands, just after trying to access the page /torrent:

tail /var/log/messages
tail /var/log/httpd/error_log

Quote from: "debiandog"

Malakai, You have the wrong address it should be something like: http://192.168.1.1/torrent/html/ the numbers being your internal network (I believe)


No, if you create an ibay called torrent, then the alias /torrent point to the html directory of the ibay
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #22 on: October 23, 2006, 11:40:02 AM »
[root@qubit ~]# tail /var/log/messages
Oct 23 18:09:09 qubit dhcpd: DHCPNAK on 192.168.2.102 to 00:16:cb:07:13:66 via eth0
Oct 23 18:09:10 qubit dhcpd: DHCPDISCOVER from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:09:11 qubit dhcpd: DHCPOFFER on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:09:12 qubit dhcpd: Wrote 12 leases to leases file.
Oct 23 18:09:12 qubit dhcpd: DHCPREQUEST for 192.168.100.11 (192.168.100.1) from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:09:12 qubit dhcpd: DHCPACK on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:11 qubit dhcpd: DHCPDISCOVER from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:11 qubit dhcpd: DHCPOFFER on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:12 qubit dhcpd: DHCPREQUEST for 192.168.100.11 (192.168.100.1) from 00:16:cb:07:13:66 (Azalia) via eth0
Oct 23 18:10:12 qubit dhcpd: DHCPACK on 192.168.100.11 to 00:16:cb:07:13:66 (Azalia) via eth0


[root@qubit ~]# tail /var/log/httpd/error_log
[Mon Oct 23 16:08:36 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/html
[Mon Oct 23 16:10:36 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/html/
[Mon Oct 23 16:10:41 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/htm
[Mon Oct 23 16:10:47 2006] [error] [client 192.168.100.100] client denied by server configuration: /home/e-smith/files/ibays/torrent/html
[Mon Oct 23 18:12:03 2006] [error] [client 192.168.100.11] client denied by server configuration: /home/e-smith/files/ibays/torrent/html/html
[Mon Oct 23 18:12:03 2006] [error] [client 192.168.100.11] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Mon Oct 23 18:12:09 2006] [error] [client 192.168.100.11] client denied by server configuration: /home/e-smith/files/ibays/torrent/html
[Mon Oct 23 18:12:09 2006] [error] [client 192.168.100.11] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Mon Oct 23 19:34:55 2006] [error] [client 192.168.100.1] client denied by server configuration: /home/e-smith/files/ibays/torrent/html
[Mon Oct 23 19:34:55 2006] [error] [client 192.168.100.1] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico

Malakai

BitTorrent client
« Reply #23 on: October 23, 2006, 11:49:07 AM »
Also I accidentally ran this command while following the instructions above:

chmod 777 /home/e-smith/files/ibays

Is that bad?

The error stood before I did that though...

Offline raem

  • *
  • 3,972
  • +4/-0
BitTorrent client
« Reply #24 on: October 23, 2006, 12:06:38 PM »
Malakai

> chmod 777 /home/e-smith/files/ibays
> Is that bad?

It has enabled write access for group & other users.
Best to set it back to original which I believe is
chmod 755 /home/e-smith/files/ibays

When making changes it's good practice to check the before and after permissions using
ls -al
and that way if you make a mistake, you know what to revert it to.
...

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #25 on: October 23, 2006, 12:33:45 PM »
giving 777 access to all your ibays can be dangerous, but that's independant of your problem of torrentflux.
It looks like there's a problem with your web server configuration.
Did the installation went ok and then, you cannot access the page? or did the page were refused before the installation?
Have you allow dynamic page for this ibay?

make sure the directory torrent/html contains the correct files/permissions, what does ls -l /home/e-smith/files/ibays/torrent/html returns?
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #26 on: October 23, 2006, 12:42:04 PM »
Well all the steps went fine but I could not get anything when pointing to the ibay in my browser. Which is the installation you refer to I assume.

ls of the ibay

-rwxr--r--  1 www www  5475 Apr  6  2006 CHANGELOG
-rwxr--r--  1 www www 15237 Nov  5  2004 COPYING
drwxr-xr-x  9 www www  4096 Apr  6  2006 html
-rw-rw----  1 www www   263 Oct 23 06:57 index.html
-rwxr--r--  1 www www  9885 Apr  6  2006 INSTALL
-rwxr--r--  1 www www   822 Nov 14  2004 README
drwxr-xr-x  2 www www  4096 Mar 13  2006 sql
drwxr-xr-x  2 www www  4096 Feb 16  2006 upgrades

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
BitTorrent client
« Reply #27 on: October 23, 2006, 01:01:52 PM »
ok sorry, it's my fault. I wrote the how-to from my memory but torrentflux is just a bit different from most of LAMP applications

1) download the archive on your server, for example in /root:
Code: [Select]
cd /root
wget http://easynews.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.1.tar.gz


2) while it's downloading, create the ibay
- owner: admin
- write: group, read: group
- Web access, local only or internet, as you want, without password (torrentlux has it own authentication system)
- enable dynamic pages

3) Remove the index.html from the html directory of the ibay
Code: [Select]

rm -f /home/e-smith/files/ibays/torrent/html/index.html


4) extract the archive
Code: [Select]
tar xvzf torrentflux_2.1.tar.gz

5) move the content of the html directory of the extracted archive to the html directory of your ibay:
Code: [Select]
mv ./torrentflux_2.1/html/* /home/e-smith/files/ibays/torrent/html/

6) make www the owner of all this files
Code: [Select]
chown -R www:www /home/e-smith/files/ibays/torrent/html

7) create a database and grant all permissions on it to a user of your choice, for example we will create a database called torrentflux_db, and we will grant permissions on it to user torrentflux with password torrent_pass
Code: [Select]

mysql
create database torrentflux_db;
grant all privileges on torrentflux_db.* to 'torrentflux'@'localhost' identified by 'torrent_pass';
flush privileges;
exit


8) edit the file /home/e-smith/files/ibays/torrent/html/config.php to fit your configuration:
Code: [Select]
$cfg["db_type"] = "mysql";       // mysql, postgres7 view adodb/drivers/

$cfg["db_host"] = "localhost";   // DB host computer name or IP

$cfg["db_name"] = "torrentflux_db"; // Name of the Database

$cfg["db_user"] = "torrentflux";        // username for your MySQL database

$cfg["db_pass"] = "torrent_pass";            // password for database


9) Populate the database with the sql script provided in the archive:
Code: [Select]
mysql torrentflux_db < ./torrentflux_2.1/sql/mysql_torrentflux.sql

10) Open your web browser, go to http://yourserver/torrent and follow the instructions.

Now this should be ok
C'est la fin du monde !!! :lol:

Malakai

BitTorrent client
« Reply #28 on: October 23, 2006, 01:03:18 PM »
Ok it appears that I didn't choose to allow local network access (without password) when creating the ibay. I have fixed that.

Now if I go to http://server/torrent/html

I get this"

TorrentFlux Database/SQL Error
Database error: Access denied for user 'root'@'localhost' (using password: NO)

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


So close yet so far...

Malakai

BitTorrent client
« Reply #29 on: October 23, 2006, 01:36:31 PM »
Ok I started again with your updated steps and it works now.

It asks for a username and password so I'm off to the Flux Torrent site now to read about how to use the software.

Thanks for all your help.