Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Jul 21, 2018 3:18 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Thu Feb 26, 2009 1:26 am 
Offline
Newbie

Joined: Wed Feb 11, 2009 1:03 am
Posts: 13
Not sure if this has been covered in any previous posts but having some real issues getting torrentflux to work, any help much appreciated.

My problem is when I start the initial setup of torrentflux from http://localhost:8090/setup.php I get to the Write Database Configuration File step & keep receiving this error.

***Database - Config-File
The installation will now attempt to write the database configuration file to /var/www/torrentflux-b4rt_1.0-beta2/html/inc/config/config.db.php.

Error: Cannot open configuration file /var/www/torrentflux-b4rt_1.0-beta2/html/inc/config/config.db.php for writing. Please check permissions and try again***

I have checked the permissions on config/config.db.php & they are
rwxrwxr-x 1 mysql root 1497 Feb 25 23:37 config.db.php, which I think is ok so I've reached a brick wall & cant progress any further.

I have an LS2 which I've installed LAMP on from this guide http://buffalo.nas-central.org/wiki/Apa ... installing, which went ok so not sure if I'm missing something simple as I have never setup Mysql on Debian before so could just be missing something.

Thanks for any help/advice.

Paul.


Top
   
PostPosted: Thu Feb 26, 2009 3:16 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
It needs to be owned by www-data ?

Are you following this guide http://buffalo.nas-central.org/wiki/Tor ... missioncli ?


Top
   
PostPosted: Thu Feb 26, 2009 3:38 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 1:03 am
Posts: 13
Thanks for the response & yes that is the guide that I have followed & ran chown -R www-data:www-data /var/www/torrentflux-b4rt_1.0-beta2/html but still receive the same error every time, not sure where I went wrong? Thanks for any advice in advance.

Paul.


Top
   
PostPosted: Thu Feb 26, 2009 3:53 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
Clearly it hasn't changed the owner.... You didn't copy & paste from the guide ? guide is outdated (beta1) your error says beta2? If permissions have changed then try clearing cookies?


Top
   
PostPosted: Thu Feb 26, 2009 4:23 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 1:03 am
Posts: 13
Thanks for the response, I have tried clearing the cookies & checked that the correct path is being owned by www:data as follows, /var/www/torrentflux-b4rt_1.0-beta2/html & have then restarted apache2 but still receive the error.

Not sure if this is relevant but on the page before I receive the error it says,

Please ensure this script can write to the directory /var/www/torrentflux-b4rt_1.0-beta2/html/inc/config/ before continuing.

I have also made www:data the owner of this directory (shown below) but it has made no difference, also should the config.db.php file already exist as there was only a config.db.php.dist file int the config directory? Thanks in advance

-rwxrwxr-x 1 www-data www-data 1499 Feb 26 15:03 config.db.php
-rw-r--r-- 1 www-data www-data 1494 Oct 13 2006 config.db.php.dist
-rwxrwxrwx 1 www-data www-data 1398 Feb 25 18:16 config.db.phpOLD
-rwxrwxr-x 1 www-data www-data 1389 Feb 25 20:05 config.db.phpOLD2
-rw-r--r-- 1 www-data www-data 916 Apr 9 2007 config.fluxd.php
-rw-r--r-- 1 www-data www-data 1592 Mar 21 2007 config.profile.php


Top
   
PostPosted: Thu Feb 26, 2009 4:51 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
Show us
cat config.db.php

I think you may need to populate the database manually

You're using apache2 mysql php?


Top
   
PostPosted: Thu Feb 26, 2009 4:59 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 1:03 am
Posts: 13
Thanks again Bauldrick, here's my cat & yes I'm using apache2 php & mysql, thanks.

/var/www/torrentflux-b4rt_1.0-beta2/html/inc/config# cat config.db.php <?php

/* $Id: config.db.php 1098 2006-10-12 23:08:56Z b4rt $ */

/*******************************************************************************

LICENSE

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/

/******************************************************************************/
// YOUR DATABASE CONNECTION INFORMATION
/******************************************************************************/
$cfg["db_type"] = "mysql"; // Database-Type : mysql/sqlite/postgres
$cfg["db_host"] = "localhost"; // Database host computer name or IP
$cfg["db_name"] = "flux"; // Name of the Database
$cfg["db_user"] = "mysqluser"; // Username for Database
$cfg["db_pass"] = "password"; // Password for Database
$cfg["db_pcon"] = true; // Persistent Connection enabled : true/false
/******************************************************************************/

?>


Top
   
PostPosted: Thu Feb 26, 2009 5:23 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
Try doing this, if you set a passwd for mysql root

Code:
cd /var/www/torrentflux-b4rt_1.0-beta2/sql/mysql

mysqladmin -p create torrentflux

mysql -p torrentflux < mysql_torrentflux-b4rt-1.0.sql

cd ../../html

mv config.db.php.dist config.db.php

pico config.db.php


and change

Code:
$cfg["db_pass"] = "<your passwd>";             // Password for Database


If you didn't set root passwd for mysql then forget the -p option and don't bother with pico config.db.php


Top
   
PostPosted: Thu Feb 26, 2009 5:28 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 1:03 am
Posts: 13
Thanks, ill try it & report back, thanks again Bauldrick.

Paul.


Top
   
PostPosted: Thu Feb 26, 2009 7:55 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 1:03 am
Posts: 13
Looks like my problem is related to apache2 as I’ve uninstalled it & tried lighttpd instead & have got a little further in the setup, I now receive this error when at the login screen.

clients-config-file config.clients.php is missing

Not sure where the config.clients.php is or if I need to create it myself, any help appreciated as I think I have nearly fixed it, thanks.

Paul.


Top
   
PostPosted: Thu Feb 26, 2009 8:37 pm 
Offline
Newbie

Joined: Wed Feb 11, 2009 1:03 am
Posts: 13
Ok, I can now login to torrentflux & have selected transmisson as my client but a lot of the icons don’t display & when I try to search for a torrent it just hangs, also if I manually add a .torrent file it also just hangs, maybe I should head over to the torrentflux forums for some assistance, thanks for the help.

Paul.


Top
   
PostPosted: Thu Feb 26, 2009 9:05 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
You may be better off trying there, sorry :(

Are you sure every directory/file in /var/www/torrentflux-b4rt_1.0-beta2/html is owned by www-data


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited