bit-tech.net

Build your own server

Comments 501 to 525 of 586

Reply
Glider 31st July 2008, 20:58 Quote
Quote:
Originally Posted by bgalfond
going to http://localhost/tf gives me:
Code:
Parse error: syntax error, unexpected T_VARIABLE in /var/www/tf/config.php on line 56
Well, can you post the contents of /var/www/tf/config.php around line 56 (from 50 to 60 or so)

EDIT: I read somewhere some distro's changed their default Apache2 install, is there an index.htm or index.html inside /var/www/ ? if so, try renaming it
Code:
mv /var/www/index.htm(l) /var/www/index2.htm(l)
bgalfond 31st July 2008, 21:18 Quote
HA! changed it to index2.html and now I have my tree listing index2.html and tf/

I still have the parse error though, here is that code, and thanks again!
Code:
// ***************************************************************************
// ***************************************************************************
// DO NOT Edit below this line unless you know what you're doing.
// ***************************************************************************
// ***************************************************************************

$cfg["pagetitle"] = "TorrentFlux";

// TorrentFlux Version
$cfg["version"] = "2.4";

// CONSTANTS
$cfg["constants"] = array();
$cfg["constants"]["url_upload"] = "URL Upload";
$cfg["constants"]["reset_owner"] = "Reset Owner";
$cfg["constants"]["start_torrent"] = "Started Torrent";
$cfg["constants"]["queued_torrent"] = "Queued Torrent";
$cfg["constants"]["unqueued_torrent"] = "Removed from Queue";
$cfg["constants"]["QManager"] = "QManager";
$cfg["constants"]["access_denied"] = "ACCESS DENIED";
$cfg["constants"]["delete_torrent"] = "Delete Torrent";
$cfg["constants"]["fm_delete"] = "File Manager Delete";
$cfg["constants"]["fm_download"] = "File Download";
$cfg["constants"]["kill_torrent"] = "Kill Torrent";
$cfg["constants"]["file_upload"] = "File Upload";
$cfg["constants"]["error"] = "ERROR";
$cfg["constants"]["hit"] = "HIT";
$cfg["constants"]["update"] = "UPDATE";
$cfg["constants"]["admin"] = "ADMIN";

asort($cfg["constants"]);

// Add file extensions here that you will allow to be uploaded
$cfg["file_types_array"] = array("torrent");

// Capture username
$cfg["user"] = "";
// Capture ip
$cfg["ip"] = $_SERVER['REMOTE_ADDR'];

?>
Timmy_the_tortoise 31st July 2008, 21:25 Quote
I've got a couple of old PCs hanging about now.. Been thinking about possibly setting up a home server..

I might check this out later when I have the time and money for a new "project". *bookmarked*
Glider 31st July 2008, 21:27 Quote
Hmm, that all looks good, can you post the entire config? (blank out the passwd;))

(guess you made an syntax error over there)
bgalfond 31st July 2008, 22:00 Quote
Code:
/**************************************************************************/
// 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"] = "torrentflux"; // Name of the Database
$cfg["db_user"] = "ben";        // username for your MySQL database
$cfg["db_pass"] = "thanksforthehelp";            // password for 
database
/**************************************************************************/
DougEdey 31st July 2008, 22:11 Quote
Looks like there's an extra line break, put the word "database" back to the end of the line above it (where it says "password for"), but it may just be a formatting error.
bgalfond 31st July 2008, 22:21 Quote
yup, that line break was the problem. changed name back to root and all is well now. Thanks!
Glider 31st July 2008, 22:30 Quote
That name should be the same as the one which set up the database, probably root :D
jaxinabox 2nd August 2008, 21:20 Quote
Hi
This guide has been awesome. Thanks.
Now my problem. While setting up the VNC password I get "Couldn't open /root/.vnc/passwd for writing".
I've tried logging in as root and i get the same error. Did i miss something somewhere?
thanks again
Glider 3rd August 2008, 10:46 Quote
Yes, VNC needs to be run as user, NOT as root...

So make sure you aren't root when you try to set the password.
jaxinabox 3rd August 2008, 19:15 Quote
props again on this guide.

But that's the thing, i tried first as user but it didn't work, so i tried as root, hoping that what is was. Regardless i started from scratch and got pass that part. Now when I try and VNC in i get a "Local loop-back connection disabled" error.
Thanks
Glider 4th August 2008, 15:52 Quote
Care to elaborate where you get the error? On the VNC server or what?
bigc90210 7th August 2008, 11:55 Quote
excellent guide, thanks for making it!
hartigan 10th August 2008, 03:20 Quote
Love this thread!! Thank you glider!!

I've copied the code from the instructions into the proftpd.conf file and when I restart the ftpserver I get:
Code:
* Starting ftp server proftpd                                                     
- warning: the DisplayFirstChdir directive is deprecated and will be removed in a future release.  Please use the DisplayChdir directive.
- warning: the DisplayFirstChdir directive is deprecated and will be removed in a future release.  Please use the DisplayChdir directive.
- Fatal: <Directory>: missing arguments on line 98 of '/etc/proftpd/proftpd.conf'
                                                                           [fail]

I'm not sure what I need to do to fix this. Any help would be appreciated!!
Mattasp 11th August 2008, 10:06 Quote
Deam i cant change directory to samba? anyone why know why? it seems that i cant find the install package for "samba package server" i have tried too install all the samba's available at synaptic but when i go to terminal all i get when i got to root is :

root@ubuntu:/home/mattis# cd/etc/samba
bash: cd/etc/samba: No such file or directory

anyone able to help?
Glider 11th August 2008, 11:17 Quote
Quote:
Originally Posted by Mattasp
Code:
root@ubuntu:/home/mattis# cd /etc/samba
Fixed that for you (there's a space between the command [cd] and the argument [/etc/samba])
Mattasp 11th August 2008, 12:40 Quote
tnx allot ;)
hartigan 12th August 2008, 22:03 Quote
n/m

I have to read through the thread for a config file, I guess.
blaise 20th August 2008, 01:37 Quote
Hi all! Glider, amazing job with this guide. It's really opened my eyes to linux.

I've gone through the entire guide and had a few problems over the last week or so but I used the comments in this thread to troubleshoot them all.
I was going to stop after I was done installing putty and UVNC but then I thought, "What the heck...might as well setup the web-based torrenting"

I got up to the point where I entered a "chown 777 torrent" in the CLI. (After reading through the comments, I realize it should've been chmod instead of chown).
Anyway, I entered "chown 777 torrent" and the error message I got was "chown: changing ownership of 'torrent': Operation not permitted"
So immediately after that, I threw a "sudo chown 777 torrent" and I assumed it worked.
After I realized I should have used a chmod, I went ahead and ran "chmod 777 torrent" in the CLI.

At this point, I was able to login after clicking on the tf folder and changing/updating the path variable.
However, I am now unable to remotely view the contents of the linux box in my clients windows explorer via "\\my.ip.address\homes" and I am also unable to login remotely through ssh and UVNC viewer even though I had no problem before I did the "chmod" and "chown" commands.

I also tried pinging my IP but the request times out.

I've tried my best to google solutions as well as scavenge this amazing thread...but now I'm definitely stuck and any help would be appreciated.

Many thanks go out to glider, brett thomas (editor), and everyone else that has responded to this thread with valuable information!!!!!!
Kebra 20th August 2008, 01:44 Quote
Maybe a stupid question but do we need to use Xubuntu 7.04 "Feisty Fawn" or can we use a newer version to follow this guide?

Nice work btw :)

Grtz
blaise 20th August 2008, 02:15 Quote
Kebra, version 8.04 "Hardy Heron" will work as well. =)
Glider 20th August 2008, 09:00 Quote
Ubuntu releases aren't quite like Windows versions... So no worries on breaking stuff
Kebra 20th August 2008, 10:40 Quote
Ok thnx ^^
Woodstock 20th August 2008, 10:58 Quote
kinda scary that this guide was released for ubuntu 7.04 (time wise)
Glider 20th August 2008, 11:02 Quote
Quote:
Originally Posted by Woodstock
kinda scary that this guide was released for ubuntu 7.04 (time wise)
Quote:
Originally Posted by article
Published: 5th June 2007
And still being used now ;)
Log in

You are not logged in, please login with your forum account below. If you don't already have an account please register to start contributing.



Discuss in the forums