Page 3 of 44 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 435

Thread: How-to: Installing Torrent-Flux

  1. #21
    Join Date
    Nov 2006
    Beans
    111

    Re: How-to: Installing Torrent-Flux

    Quote Originally Posted by kebes View Post
    First check the permissions on your files, and the directory containing them:
    Code:
    $ ls /var/www/ -laF
    $ ls /var/www/torrentflux/ -laF
    The files should have the world read bit set (the permissions should be something like -rwxr--r--). If they are not set right use:
    Code:
    $ sudo chmod 744 /var/www/torrentflux/ -R

    If that's not the problem, then post more information about your setup. Are you operating on a non-standard port? (In which case, don't forget to put it in the URL, like http://localhost:8000/torrentflux/html/ or whatever.) Also, does http://localhost/test.php work now? If so, does http://localhost/torrentflux/html/index.php work? (i.e.: explicitly go to the index.php file, instead of just going to the directory).
    I just tried to browse to http://localhost/torrentflux/html/index.php like you suggested and things worked...as does just browsing to http://localhost/torrentflux/html/. Weird. Well, whatever. Thanks though.

  2. #22
    Join Date
    Jan 2007
    Beans
    1

    Re: How-to: Installing Torrent-Flux

    Hey, I'm having a few issues. I tried to install torrentflux last night and it borked out during the installation at the process of setting up the SQL database. I hadn't really thuoght about it and I just did:
    sudo aptitude install torrentflux

    and let it run etc. But yeah, it didn't finish, gave me some error which I should have, but didn't copy. I thought I would have a look for a readme such as this one and I started doing the instructions to install apache:
    sudo aptitude install apache2

    and I get:
    The following packages have been automatically kept back:
    beryl-core beryl-manager beryl-plugins beryl-plugins-data beryl-settings
    emerald
    The following NEW packages will be automatically installed:
    apache2-common apache2-mpm-worker apache2-utils libapr0 libpcre3
    The following packages will be automatically REMOVED:
    torrentflux
    The following packages have been kept back:
    dbus dbus-1-utils libdbus-1-3 libglu1-mesa libwnck-common libwnck18
    libxss1 mesa-utils xserver-xgl
    The following NEW packages will be installed:
    apache2 apache2-common apache2-mpm-worker apache2-utils libapr0 libpcre3
    The following packages will be REMOVED:
    torrentflux
    0 packages upgraded, 6 newly installed, 1 to remove and 15 not upgraded.
    Need to get 0B/1457kB of archives. After unpacking 1962kB will be used.
    Do you want to continue? [Y/n/?] y
    Writing extended state information... Done
    (Reading database ... 91618 files and directories currently installed.)
    Removing torrentflux ...
    .: 7: Can't open /usr/share/dbconfig-common/dpkg/prerm.mysql
    dpkg: error processing torrentflux (--remove):
    subprocess pre-removal script returned error exit status 2
    .: 7: Can't open /usr/share/dbconfig-common/dpkg/config.mysql
    dpkg: error while cleaning up:
    subprocess post-installation script returned error exit status 2
    Errors were encountered while processing:
    torrentflux
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install. Trying to recover:


    So, I figured maybe I should manually remove torrentflux first:
    sudo aptitude remove torrentflux
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Building tag database... Done
    The following packages have been automatically kept back:
    beryl-core beryl-manager beryl-plugins beryl-plugins-data beryl-settings
    emerald
    The following packages have been kept back:
    dbus dbus-1-utils libdbus-1-3 libglu1-mesa libwnck-common libwnck18
    libxss1 mesa-utils xserver-xgl
    The following packages will be REMOVED:
    torrentflux
    0 packages upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
    Need to get 0B of archives. After unpacking 2753kB will be freed.
    Writing extended state information... Done
    (Reading database ... 91618 files and directories currently installed.)
    Removing torrentflux ...
    .: 7: Can't open /usr/share/dbconfig-common/dpkg/prerm.mysql
    dpkg: error processing torrentflux (--remove):
    subprocess pre-removal script returned error exit status 2
    .: 7: Can't open /usr/share/dbconfig-common/dpkg/config.mysql
    dpkg: error while cleaning up:
    subprocess post-installation script returned error exit status 2
    Errors were encountered while processing:
    torrentflux
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install. Trying to recover:

    and I get the same error . Any ideas?

  3. #23
    Join Date
    Aug 2006
    Beans
    923
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How-to: Installing Torrent-Flux

    Quote Originally Posted by det0r View Post
    and I get the same error . Any ideas?
    First thing to try:
    sudo dpkg --purge torrentflux
    sudo aptitude remove torrentflux

    You can also check on package status:
    dpkg -l torrentflux

    (might give a clue as to the state the package is in...)
    Last edited by kebes; January 6th, 2007 at 04:00 AM. Reason: added dpkg -l suggestion

  4. #24
    Join Date
    May 2005
    Beans
    47

    Re: How-to: Installing Torrent-Flux

    When I go to localhost/torrentflux, I get the following:

    "Database error: Access denied for user 'torrentflux'@'localhost' (using password: YES)

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

    However, in my config.php file:
    Code:
    $cfg["db_type"] = "mysql";       // mysql, postgres7 view adodb/drivers/
    $cfg["db_host"] = "localhost";   // DB host computer name or IP
    $cfg["db_name"] = "torrentflux"; // Name of the Database
    $cfg["db_user"] = "root";        // username for your MySQL database
    $cfg["db_pass"] = "root";            // password for database
    I know that the username/pass 'root'/'root' works for mysql.
    Code:
    $mysql -u root -p
    <enter 'root'>
    
    mysql> use torrentflux;
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A
    
    Database changed
    mysql> show tables;
    +-----------------------+
    | Tables_in_torrentflux |
    +-----------------------+
    | tf_cookies            | 
    | tf_links              | 
    | tf_log                | 
    | tf_messages           | 
    | tf_rss                | 
    | tf_settings           | 
    | tf_users              | 
    +-----------------------+
    7 rows in set (0.01 sec)
    
    mysql>
    So root/root can access the torrentflux database just fine, but it seems that torrentflux is trying to log in as database user torrentflux, instead of using database torrentflux?

    Any ideas?

  5. #25
    Join Date
    Aug 2006
    Beans
    923
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How-to: Installing Torrent-Flux

    Very strange. It looks to me like you're doing everything right... just to confirm, the file you are changing/viewing is:
    /var/www/torrentflux/config.php

    Right? (You are not viewing the copy of "config.php" in the untarred directory.... you are really editing the one in the web-server directory?)


    I can't understand why torrentflux wouldn't be seeing the changes you make in that file. If I were you, I would do a test and make sure that torrentflux is really accessing your "config.php" file. Like rename it to "x_config.php" so that torrentflux can't find it. Then when you go to the torrentflux page you should get a ton of weird errors. (You can change the name back to normal afterwards.)

    This test will tell you whether torrentflux is even loading the "config.php" file you think it is. Also I would try changing the lines in config.php to something wrong, like:
    $cfg["db_user"] = "wrong"; // username for your MySQL database
    $cfg["db_pass"] = "wrong"; // password for database

    What does the error look like then? Does it say "denied for user wrong" or does it still say "denied for user torrentflux" ?

  6. #26
    Join Date
    Dec 2005
    Beans
    5

    Re: How-to: Installing Torrent-Flux

    When I go to http://locahost/torrentfluxi I get error like this
    Warning: include_once(adodb/adodb.inc.php) [function.include-once]: failed to open stream: Permission denied in /var/www/torrentflux/db.php on line 5

    Warning: include_once() [function.include]: Failed opening 'adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/torrentflux/db.php on line 5

    Fatal error: Call to undefined function NewADOConnection() in /var/www/torrentflux/db.php on line 12

    please help me, Any ideas?

  7. #27
    Join Date
    Aug 2006
    Beans
    923
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How-to: Installing Torrent-Flux

    Quote Originally Posted by ubuman View Post
    Warning: include_once(adodb/adodb.inc.php) [function.include-once]: failed to open stream: Permission denied in /var/www/torrentflux/db.php on line 5
    It might be a permissions problem. Go to your torrentflux directory and check what the permissions are:

    Code:
    cd /var/www/torrentflux/
    ls -laF
    The files should be owned by some user and group (not root:root), and the files should be world readable. So it should look like this:
    Code:
    bob@computer:/var/www/torrentflux$ ls -laF
    total 568
    -rwxr--r--  1 bob bob 83995 2006-09-30 23:38 admin.php*
    drwxr-xr-x 11 bob bob 4096 2006-09-30 23:38 adodb/
    -rwxr--r--  1 bob bob 5471 2006-09-30 23:38 AliasFile.php*
    etc....
    If you instead see something like:
    Code:
    -rwx------  1 bob bob 83995 2006-09-30 23:38 admin.php*
    drwx------ 11 bob bob 4096 2006-09-30 23:38 adodb/
    -rwx------  1 bob bob 5471 2006-09-30 23:38 AliasFile.php*
    Notice the "-rwx------". The last three positions specify world-privileges. Then that means that the permissions are too strict (the web browser cannot read the files). You can change them by going:

    Code:
    chomod 744 * -R
    ...which will make all the files (and sub-dirs) world-readable.


    If that's not the problem, then maybe when you copied the torrentflux files over, you didn't copy sub-directories? Go check the directory "/var/www/torrentflux/adodb", by going:
    Code:
    cd /var/www/torrentflux/adodb/
    ls -laF
    Do you see any files? If not, then when you did the copy command to put the files there, you forgot the "-r" that makes it recursive! Go back a few steps and make sure you've copied everything!

    Good luck!

  8. #28
    Join Date
    Aug 2006
    Beans
    923
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How-to: Installing Torrent-Flux

    Important Note:
    This how-to was written for Ubuntu 6.06 (Dapper Drake), for manually installing torrentflux.

    However, torrentflux has since been added to the repositories. Thus, installation should now be much simpler. You can just go to the Synaptic package manager (Applications > Add/Remove) and install it. (Use Adept on Kubuntu.) On the commandline, you can go:

    sudo aptitude install torrentflux



    The guide might still be useful for troubleshooting or if you want to do a manual install for some reason.

  9. #29
    Join Date
    May 2005
    Beans
    47

    Re: How-to: Installing Torrent-Flux

    Quote Originally Posted by kebes View Post
    Important Note:
    This how-to was written for Ubuntu 6.06 (Dapper Drake), for manually installing torrentflux.

    However, torrentflux has since been added to the repositories. Thus, installation should now be much simpler. You can just go to the Synaptic package manager (Applications > Add/Remove) and install it. (Use Adept on Kubuntu.) On the commandline, you can go:

    sudo aptitude install torrentflux



    The guide might still be useful for troubleshooting or if you want to do a manual install for some reason.
    That was my first course of action, but apt did something horrible and completely wrecked my first try (maybe that's why I'm having problems now?). Basically, it didn't install mysql, php, or apache, but it tried to configure torrentflux just the same as if they were present. Fresh install of edgy.

    But thank you for your suggestion. It gave me an idea that seems to have solved the problem. Apparently apt created /etc/torrentflux that has its own config file, and that's what it was using. It tried to create the torrentflux user and database in mysql, but since it didn't install mysql it didn't work. After modifying that file I get a login/password prompt

  10. #30
    Join Date
    Jun 2006
    Beans
    9
    Distro
    Ubuntu 6.06

    Re: How-to: Installing Torrent-Flux

    torrentflux is amazing and this how to is very useful,
    but i was wondering if the author can expand this how to
    include how to install tf-b4rt http://tf-b4rt.berlios.de/

    This is based on torrentflux but with many more options e.g. supports azureus
    and transmission

    thanks in advance

Page 3 of 44 FirstFirst 1234513 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •