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
/**************************************************************************/
// 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
/**************************************************************************/
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.
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
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
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!!
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
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!!!!!!
Comments 501 to 526 of 584
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
I still have the parse error though, here is that code, and thanks again!
// *************************************************************************** // *************************************************************************** // 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']; ?>I might check this out later when I have the time and money for a new "project". *bookmarked*
(guess you made an syntax error over there)
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
So make sure you aren't root when you try to set the password.
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
I've copied the code from the instructions into the proftpd.conf file and when I restart the ftpserver I get:
* 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!!
root@ubuntu:/home/mattis# cd/etc/samba
bash: cd/etc/samba: No such file or directory
anyone able to help?
I have to read through the thread for a config file, I guess.
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!!!!!!
Nice work btw :)
Grtz