Page 5 of 44 FirstFirst ... 3456715 ... LastLast
Results 41 to 50 of 435

Thread: How-to: Installing Torrent-Flux

  1. #41
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: How-to: Installing Torrent-Flux

    It does indeed seem like php is not working, however you also said that the database did not exist. That sounds like the problem I had.

    When I installed in feisty using aptitude, It did not create a database in mysql. To fix, I downloaded torrentflux from torrentflux, I had to get the database file and the scripts as well. I think this is a bug in feisty.

  2. #42
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: How-to: Installing Torrent-Flux

    Quote Originally Posted by kebes View Post
    A clean install is certainly an option. Removing and re-installing apache2 and php5 is also worth a try. Did you install php using the repositories (apt-get or synaptic or whatever)?

    Check in the directory:
    /etc/apache2/mods-available
    Make sure you have:
    php5.conf
    php5.load

    On my system these files look like:
    php5.conf
    Code:
    <IfModule mod_php5.c>
      AddType application/x-httpd-php .php .phtml .php3
      AddType application/x-httpd-php-source .phps
    </IfModule>
    php5.load
    Code:
    LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
    Then check in:
    /etc/apache2/mods-enabled/
    And make sure there are symlinks to those two files.

    If those files exist, then I can't see why apache wouldn't be loading php (unless you changed the default search path apache uses...).
    All that is in my apache folder, seems very weird... I'll try a clean install and see if it fixes it. Thanks for the help, I will get back when I finish the re-install.

  3. #43
    Join Date
    Mar 2007
    Location
    Stockholm, Schweden
    Beans
    67
    Distro
    Edubuntu 6.10 Edgy

    Re: How-to: Installing Torrent-Flux

    First I wanna say: thank you all for this great guide!

    This is my first Linux server Im using and I got the tip to use torrentflux. I checked your guide so I could get the latest version instead of the version that comes with synaptic. I followed your guide and it all worked well, untill the hend. At the part 4. d first login and I go to "http://localhost/torrentflux/" nothing happens, no errors but there is no page, just a white page with nothing in it. Any idea what might be wrong?

  4. #44
    Join Date
    Aug 2006
    Beans
    923
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How-to: Installing Torrent-Flux

    Quote Originally Posted by hobs0n View Post
    At the part 4. d first login and I go to "http://localhost/torrentflux/" nothing happens, no errors but there is no page, just a white page with nothing in it.
    Hmm... That's strange. Normally there would be an error. What web browser are you using? When you get to that "white page," try looking at the source for the page. In Firefox, this would be View > Page Source (or do Ctrl+U). The source may hint at what's going on. Is the document empty? Does it contain any messages? If you don't know how to read HTML, you can post the source to this thread.

    My best guess is that you have PHP installed but it isn't working properly. A default PHP install will deliver error messages, but there is a flag that suppresses these errors, so if a page render encounters and error, it displays a blank page instead.

    When you were doing "Step 1: Get a LAMP Stack" did all the tests work? Did the simple PHP page show up properly?

    If so, modify that test page like so:

    Code:
    $ sudo nano /var/www/test.php
    And put this php code:
    Code:
    <html>
    <head>
      <title>Test Page</title>
    </head>
    <body>
    Test page<br />
    <?php 
    	echo 'If you can see this text, then PHP is working.';
            phpinfo();
    ?>
    </body>
    </html>
    Then go to http://localhost/test.php
    You should see the "...then PHP is working" message, plus a long listing of your PHP install. If this doesn't work, then your PHP is not working. If this listing does show up, you'll have all kinds of version information. See if it reports any errors.

    Also, look through that and make sure that it has the mysql module installed. Also look for a line that says "display_errors" and see if that is "On" or "Off"... if it's "Off" then you should change your PHP config file so that it displays errors. This will help alot with getting things working.


    Good luck! Let me know how it works out!

  5. #45
    Join Date
    Mar 2007
    Location
    Stockholm, Schweden
    Beans
    67
    Distro
    Edubuntu 6.10 Edgy

    Re: How-to: Installing Torrent-Flux

    I use Firefox. I right clicked and clicked on View Page Source and the only thing that the page showed was: "<html></html>"

    Yes, both the first and the test.php pages showed up correctly.

    The PHP info page from your PHP code all showed up normal I think, I dont know how errors would look tho.

    Display errors was ON in both the categories.


    Quote Originally Posted by kebes View Post
    Hmm... That's strange. Normally there would be an error. What web browser are you using? When you get to that "white page," try looking at the source for the page. In Firefox, this would be View > Page Source (or do Ctrl+U). The source may hint at what's going on. Is the document empty? Does it contain any messages? If you don't know how to read HTML, you can post the source to this thread.

    My best guess is that you have PHP installed but it isn't working properly. A default PHP install will deliver error messages, but there is a flag that suppresses these errors, so if a page render encounters and error, it displays a blank page instead.

    When you were doing "Step 1: Get a LAMP Stack" did all the tests work? Did the simple PHP page show up properly?

    If so, modify that test page like so:

    Code:
    $ sudo nano /var/www/test.php
    And put this php code:
    Code:
    <html>
    <head>
      <title>Test Page</title>
    </head>
    <body>
    Test page<br />
    <?php 
    	echo 'If you can see this text, then PHP is working.';
            phpinfo();
    ?>
    </body>
    </html>
    Then go to http://localhost/test.php
    You should see the "...then PHP is working" message, plus a long listing of your PHP install. If this doesn't work, then your PHP is not working. If this listing does show up, you'll have all kinds of version information. See if it reports any errors.

    Also, look through that and make sure that it has the mysql module installed. Also look for a line that says "display_errors" and see if that is "On" or "Off"... if it's "Off" then you should change your PHP config file so that it displays errors. This will help alot with getting things working.


    Good luck! Let me know how it works out!

  6. #46
    Join Date
    Aug 2006
    Beans
    923
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How-to: Installing Torrent-Flux

    Hmm... And you do indeed have the php-mysql module installed? (It should be listed on the php test page.)

    I assume you are using apache as your webserver (version 1 or 2?). Have you made any custom changes to your apache configuration? (e.g. changed the file /etc/apache2/sites-available/default ) The next test I would do is to put that test file into the torrentflux directory:
    Code:
    cp /var/www/test.php /var/www/torrentflux/
    Then go to that copy of the test page:
    http://localhost/torrentflux/test.php

    What happens then? Does the test page work? If it doesn't work, it means that apache is configured to ignore that directory, or maybe you didn't set permissions properly, so apache can't read the contents of that directory.

    If that test copy does work properly, try going to specific torrentflux php pages:
    http://localhost/torrentflux/index.php
    http://localhost/torrentflux/login.php
    http://localhost/torrentflux/admin.php

    What do you get in those cases? An error? A white page? Does it redirect you before giving a white page? (e.g. you try to go to admin.php, it redirects you to login.php which is blank?)



    As you can see, I really don't know what the problem is... but hopefully one of these tests will provide new insight into the problem.

  7. #47
    Join Date
    Mar 2007
    Location
    Stockholm, Schweden
    Beans
    67
    Distro
    Edubuntu 6.10 Edgy

    Re: How-to: Installing Torrent-Flux

    Copying the test.php to the torrentlux dir worked.

    http://localhost/torrentflux/index.php shows nothing.

    http://localhost/torrentflux/login.php and http://localhost/torrentflux/admin.php shows:

    "Warning: include_once(adodb/adodb.inc.php) [function.include-once]: failed to open stream: No such file or directory 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"


    Thank you for helping me so much

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

    Re: How-to: Installing Torrent-Flux

    That's a good clue...

    Check that those files exist:
    Code:
    cd /var/www/torrentflux/
    ls -laF
    should return a bunch of files... and one of them should be "config.php" Moreover "config.php" should be readable by the server (permissions should be something like -rwxr--r--). Then make sure that the directory "adodb" exists, and has read permissions. Then check what is inside that directory:
    Code:
    cd adodb
    ls -laF
    There should be ~36 files (and "adodb.inc.php" should be one of them), with permissions like "-rw-r--r--". If this directory is empty, probably means that when you did the copy operation, you didn't copy recursively. (In the instructions, step 4.a. did you put the "-r" switch on the copy operation?)


    If all of the files are present and have proper permissions, then it may mean that your PHP-mysql config is the problem. The most common problem is the mysql modules being installed but not activated. To do so you edit the file "/etc/php5/apache2/php.ini" (assuming you are using PHP 5.x and apache 2.x):
    Code:
    sudo nano /etc/php5/apache2/php.ini
    And make sure that you have lines that look like:
    Code:
    extension=mysql.so
    extension=mysqli.so
    (The lines may already have been added, so do a quick search. It is likely that they (also) appear in the file, commented out with a ; in front of them. If they don't appear elsewhere, you can remove the ; and save the file.) Remember you need to restart apache after making any change to that file. (Reboot computer or just do "sudo /etc/init.d/apache2 restart".)


    Quote Originally Posted by hobs0n View Post
    Thank you for helping me so much
    You're very welcome. Let me know whether those suggestions work out...

  9. #49
    Join Date
    Mar 2007
    Location
    Stockholm, Schweden
    Beans
    67
    Distro
    Edubuntu 6.10 Edgy

    Re: How-to: Installing Torrent-Flux

    Hm the directory adodb doesnt exist, I even searched the whole computer for it and it didnt exist. I guess this means that something went wrong with the installation of Torrentflux?

  10. #50
    Join Date
    Aug 2006
    Beans
    923
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How-to: Installing Torrent-Flux

    Quote Originally Posted by hobs0n View Post
    Hm the directory adodb doesnt exist, I even searched the whole computer for it and it didnt exist. I guess this means that something went wrong with the installation of Torrentflux?
    Indeed. I believe you said you manually downloaded the tarball from the torrentflux website? Then you presumably extracted it and copied the files to /var/www/torrentflux

    Is that correct?

    You should go back to those steps. Re-download the tarball, and extract it to a temporary directory. Make sure it contains all the subdirectories and files therein. Then copy all of that to your web directory. Maybe your download was corrupt or the extraction didn't work the first time around...?

Page 5 of 44 FirstFirst ... 3456715 ... 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
  •