spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


Installing on Linkstation (Debian) - 2006/03/25 13:24 Hello all,

I've had swisscenter running on this box before - streaming to a Linktheater, however, something failed (with apache2 I think) and I find myself having to reinstall.

So everyting is in place, but when I point my browser to myipaddress:8080 it shows my homepage - myipaddress:8080/swisscenter shows a blank screen with no errors as does myipaddress:8080/swisscenter/config.

I'm positive last time it was a case of just getting that config page up and creating database in mysql (that was still there, so I have dropped it).

PHP is working, put the script in and point to it and it shows up.

Can someone point me in a forwardish direction?
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/03/25 21:02 Which version of PHP are you using? Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/03/26 03:29 PHP Version 4.3.10-16

Linux LINKSTATION 2.4.17_mvl21-sandpoint #990 2004年 5月 21日 金曜日 13:39:00 JST ppc

Apache/2.0.54 (Debian GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e PHP/4.3.10-16
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/03/29 14:08 I have the same problem, only a blank screen.
I'm running Debian 3.1a with a hand rolled apache2: Apache/2.0.55 (Unix) PHP/5.0.5
mysql version 4.0.24_Debian-10sarge1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/03/31 09:30 Firstly, you might get this problem if you are running PHP5 as Swisscenter isn't yet compatible with PHP5 (although it's on the to-do list). If you are running PHP4 then I could try installing Debian on a virtual server and see if I can find out what's happening.

Could you please post thedetails I'd need to reproduce your environment as closely as possible. eg:

- Which version of Debian
- What install options/packages did you use during installation
- Versions of PHP/Apache/MySQL
- If you installed PHP, Apache or MySQL manually, then some instructions on what method you used (source install, binary distribution, etc) and configure options.

thanks,
Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/01 04:01 I'm having the same problem. Debian 3.1, PHP 4.3.10-16, Apache2, Kernel 2.6.8-2-686. Interestingly enough I installed a SUSE Linux 10 VM and had the same problem. Vi identified the source files as "dos" so I ran them through dos2unix just to be on the safe side but I'm still having the same problem.

The scripts seem to execute but return no value (from both the web interface and command line). Random PHP scripts dropped in for testing work fine.

This is killing me and has to be something really stupid that I am overlooking.

phpinfo output for each installation below:

Debian:

PHP Version 4.3.10-16

System Linux rubbermaid 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC 2005 i686
Build Date Aug 24 2005 19:47:03
Configure Command '../configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php4/apache2' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql' '--without-sybase-ct'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/apache2/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib

SUSE:

PHP Version 4.4.0

System Linux linux 2.6.13-15.8-default #1 Tue Feb 7 11:07:24 UTC 2006 i686
Build Date Sep 13 2005 02:16:37
Configure Command './configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli' '--without-pear' '--with-openssl' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/01 04:01 double post, sorry.
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/01 15:41 This drove me nuts - for a long, long time so I'm ashamed to say I gave up.

(Had some more important issues to deal with)

However, remembering that when I had it installed I liked it alot (PCAST and Twonky aren't really the same) I want it back!!

It's not a fault with swisscenter I'm sure, as I had it running before and it installed pretty easily (followed redsolo's guide)
Any further suggestions? mazzo, freshmaker13 did you have any joy yet??

I too am sure its something ridiculously small and stupid I'm not doing.

Cheers all, please get back if you find the answer
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/06 18:07 Linux LINKSTATION 2.6.16.1-kurobox #13 Wed Apr 5 18:02:25 CEST 2006 ppc GNU/Linux

Debian 3.1 (sarge?)

simply did

apt-get install apache apache-common

apt-get install libapache-mod-php4 php4 php4-common

apt-get install mysql-client mysql-server mysql-admin

----------------------------------------------------------

admin, have you tried to replicate the prob?

still getting blank screen, and have tried this with different versions of everything.

This WAS working on my bloomin' system why won't it anymore?!?!?!?!?

error.log

PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of preg_match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/abc/docs/swisscenter/base/utils.php on line 139

PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of preg_match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/abc/docs/swisscenter/base/utils.php on line 153

PHP Warning: fopen() has been disabled for security reasons in /var/www/abc/docs/swisscenter/base/utils.php on line 165

PHP Warning: fopen() has been disabled for security reasons in /var/www/abc/docs/swisscenter/base/file.php on line 75

PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 28164 bytes) in /var/www/abc/docs/swisscenter/base/language.php on line 21


  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/08 17:42 I quickly installed Debian 3.1 on a virtual machine and tried a basic install - and got a blank screen. However, as far as I can tell from the quick look I've had it seems to be failing on the mysql_pconnect() function.

My guess is that PHP isn't configured with mysql support.

Right, a few simple tests for you to try (in the examples below, I've assumed you've installed swisscenter into /srv/www/swissenter - obviously you may need to modify the paths accordingly):

Test 1

Create the file /srv/www/swisscenter/config/test_php.php with the following text:
Code:

 <? phpinfo(); ?>



Then try to access http://127.0.0.1:8080/config/test_php.php

You should see a screen outputting all the details of your current PHP installation. If MySQL support is enabled, then there will be a section with a title of "MySQL" somewhere on the page.

If you don't see the page, then apache is not executing PHP scripts correctly, or PHP is not installed properly.

Test 2

Create the file /srv/www/swisscenter/config/test_mysql.php with the following text:
Code:

 <? echo mysql_pconnect('swiss','swisscenter','swisscenter'); ?>



Then try to access http://127.0.0.1:8080/config/test_mysql.php

If you get a warning or error message, then MySQL support is not enabled in PHP.

I hope this helps.

regards,
Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/10 16:24 I also get this error on a Kurobox (converted linkstation) running debain. It was working fine hard disk crash, replaced hard disk, rebuilt, blank screen !!!!

ran tests :

test_php.php

mysql section

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

ran test_mysql.php

blank screen !!!
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/21 05:49 Hi - is there any resolution to this issue? And does it affect everyone with a Linkstation or just some of you?

I'm trying to decide whether to go with a Linkstation or NSLU2 for my NAS. I'm currently leaning towards the former - but don't want to if SwissCentre isn't going to work. It seems to the only media server which will work with my DVD player (liteon 2010) on linux.
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/04/22 14:05 Enhancing the memory limit (to e.g. "memory_limit = 50M") in php.ini allowed SwissCenter to run on my Linkstation LS1.
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/06/27 06:00 It's working!!

Well.....almost Now I've managed to to get the config screen up (which doesn't always come up??) point my Buffalo Linktheater to the right address and it tells me that gd module is not installed into php - maybe I need to recompile php with that module. This solves it.


apt-get install php4-gd

Works now!
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/07/12 06:05 It's been working fine for a while -

BUT - now I have this problem :

after about 1.5 mins trying to access on my pc I get

Warning: fopen(/var/www/log/support.log): failed to open stream: No such file or directory in /var/www/swisscenter/base/file.php on line 75

Any ideas
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/08 12:33 Hello-

I'm just getting started trying to install Swisscenter on my Linkstation as well. I was planning on streaming to my Linktheater, and was wondering if this issue had been resolved.

Thanks.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/14 08:26 propman,

If you haven't got too much stuff installed on your Linkstation then I'd say re-flash with freelink and follow <the installation instructions>. You don't need ppc tools

I know this works as I've just upgraded my LS2 to the new freelink and I simply copy&pasted the instructions and it worked.

Basically:

Code:

 apt-get install apache apache-common


Code:

 apt-get install libapache-mod-php4 php4 php4-common


Code:

 cp /usr/share/doc/php4-common/examples/php.ini-recommended /etc/php4/apache/php.ini


Code:

 apt-get install mysql-server


Code:

 apt-get install php4-mysql libapache-mod-auth-mysql


Code:

 cp /usr/share/doc/mysql-server/examples/my-small.cnf /etc/mysql/my.cnf


Code:

 apt-get install php4-gd


Code:

 apt-get php4-cli



Code:

 mkdir /var/www/swisscenter && cd /var/www/swisscenter


Code:

 wget http://www.swisscenter.co.uk/downloads/swisscenter.zip


Code:

 unzip swisscenter.zip


Code:

 chown -R www-data:www-data /var/www/swisscenter



Code:

 pico /etc/apache/conf.d/swisscenter.conf



Add this:

Code:

 # SwissCenter Apache Virtual Host Configuration file Listen 8080 <VirtualHost _default_:8080>        DocumentRoot "/var/www/swisscenter"        <Directory "/var/www/swisscenter">                Options Indexes FollowSymLinks MultiViews                AllowOverride None                Order allow,deny                Allow from all        </Directory>        <IfModule mod_dir.c>                DirectoryIndex index.html index.php        </IfModule> </VirtualHost>



Code:

 pico /var/www/swisscenter/base/server.php



change this line:

Code:

 if ( $sock = @fsockopen('66.249.87.99'80$temp$temp0.5)) // www.google.com



to:

Code:

 if ( $sock = @fsockopen('google.com'80$temp$temp0.5)) // www.google.com



Code:

 /etc/init.d/apache restart




Code:

 http://<IPAdddress>:8080/config

  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/14 12:59 Bauldrick-

Thanks for your reply. I've already flashed with freelink, so I think that I'm going to see if I can get it to work following your instructions. The only thing that I see that I know I didn't do is the apt-get for the command line php stuff. (apt-get php4-cli) I'll try that, and see what happens.

Thanks for all of your help.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/14 19:31 Bauldrick-

I gave it another shot, but still no luck. I installed php4-cli with the following:

apt-get install php4-cli

All of the other modules are installed. I restarted apache, and tried to point the browser to the specified url. I ended up with a blank screen (been blank for 5 minutes now). Here is what I have in the apache error.log file:

[Mon Aug 14 16:13:43 2006] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Aug 14 16:23:09 2006] [error] [client 192.168.1.102] File does not exist: /var/www/favicon.ico
[Mon Aug 14 16:23:15 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 113
[Mon Aug 14 16:23:15 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 127
[Mon Aug 14 16:23:16 2006] [error] PHP Warning: fopen(/var/www/log/support.log): failed to open str
eam: No such file or directory in /mnt/var/www/swisscenter/base/file.php on line 75
[Mon Aug 14 16:23:16 2006] [error] PHP Notice: Use of undefined constant DB_DATABASE - assumed 'DB_
DATABASE' in /mnt/var/www/swisscenter/base/mysql.php on line 307
[Mon Aug 14 16:24:57 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 113
[Mon Aug 14 16:24:57 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 127
[Mon Aug 14 16:24:57 2006] [error] PHP Notice: Use of undefined constant DB_HOST - assumed 'DB_HOST
' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:24:57 2006] [error] PHP Notice: Use of undefined constant DB_USERNAME - assumed 'DB_
USERNAME' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:24:57 2006] [error] PHP Notice: Use of undefined constant DB_PASSWORD - assumed 'DB_
PASSWORD' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:24:57 2006] [error] PHP Notice: Use of undefined constant DB_DATABASE - assumed 'DB_
DATABASE' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:24:57 2006] [error] [client 192.168.1.102] File does not exist: /var/www/swisscenter/
favicon.ico
[Mon Aug 14 16:25:04 2006] [error] [client 192.168.1.102] File does not exist: /var/www/swisscenter/
favicon.ico
[Mon Aug 14 16:25:09 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 113
[Mon Aug 14 16:25:09 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 127
[Mon Aug 14 16:25:09 2006] [error] PHP Notice: Use of undefined constant DB_HOST - assumed 'DB_HOST
' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:25:09 2006] [error] PHP Notice: Use of undefined constant DB_USERNAME - assumed 'DB_
USERNAME' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:25:09 2006] [error] PHP Notice: Use of undefined constant DB_PASSWORD - assumed 'DB_
PASSWORD' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:25:09 2006] [error] PHP Notice: Use of undefined constant DB_DATABASE - assumed 'DB_
DATABASE' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:25:15 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 113
[Mon Aug 14 16:25:15 2006] [error] PHP Warning: Call-time pass-by-reference has been deprecated - a
rgument passed by value; If you would like to pass it by reference, modify the declaration of preg_
match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_p
ass_reference to true in your INI file. However, future versions may not support this any longer.
in /mnt/var/www/swisscenter/base/utils.php on line 127
[Mon Aug 14 16:25:15 2006] [error] PHP Notice: Use of undefined constant DB_HOST - assumed 'DB_HOST
' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:25:15 2006] [error] PHP Notice: Use of undefined constant DB_USERNAME - assumed 'DB_
USERNAME' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:25:15 2006] [error] PHP Notice: Use of undefined constant DB_PASSWORD - assumed 'DB_
PASSWORD' in /mnt/var/www/swisscenter/base/mysql.php on line 46
[Mon Aug 14 16:25:15 2006] [error] PHP Notice: Use of undefined constant DB_DATABASE - assumed 'DB_
DATABASE' in /mnt/var/www/swisscenter/base/mysql.php on line 46
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/14 21:34 Okay....

I've got all of the errors out of the apache log file, except for the following:

DB_HOST
DB_USERNAME
DB_PASSWORD
DB_DATABASE

error log says that they are all undefined constants.

I'll assume that these are mysql related. How do I check to see if I've got mysql installed correctly? I created the test_mysql.php file that Bauldrick suggested, but when I point the browser to that page, I get a blank page. I do get output when I use the test_php.php file that he suggested.

Any thoughts?
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/15 09:33 Do you have a file /called "mnt/var/www/swisscenter/config/swisscenter.ini"? It *should* look something like this (it defines the details needed to connect to the database in MySQL):

Code:

 ;*********************  ; SwissCenter Configuration                                                 ;**********************  DB_HOST=localhost  DB_USERNAME=swisscenter  DB_PASSWORD=swisscenter  DB_DATABASE=swiss 



This file is created after you select the option to "Create Database" in the configuration screens (http://localhost:8080/config ). If the file cannot be created, then it might be a permissions problem.
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/19 10:37 admin wrote:
Do you have a file /called "mnt/var/www/swisscenter/config/swisscenter.ini"? It *should* look something like this (it defines the details needed to connect to the database in MySQL):

Code:

 ;*********************  ; SwissCenter Configuration                                                 ;**********************  DB_HOST=localhost  DB_USERNAME=swisscenter  DB_PASSWORD=swisscenter  DB_DATABASE=swiss 



This file is created after you select the option to "Create Database" in the configuration screens (http://localhost:8080/config ). If the file cannot be created, then it might be a permissions problem.


admin-

Thanks for the reply. I'll check to see if I have the ini file, and double check permissions. I didn't read anything in the installation instructions, but do I need to create a Mysql - and/or - UNIX account for swisscenter?

Thanks.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/19 23:35 Okay...I've checked permissions, and everything in the swisscenter directory (and all other directories) has user/group settings set to www-data. I noticed an entry added to the swisscenter.ini file:

LOGFILE=/var/www/swisscenter/log/support.log

I checked this file, and it is owned by root, and has nothing in it. When I go to the config screen, it is still blank.

For anyone with swisscenter working, if you have the webmin module installed, could you tell me what happens when you go to the server section, and check the my sql database server icon.

Thanks...still troubleshooting & open to suggestions.

New error in log file:

[Sat Aug 19 20:51:58 2006] [error] PHP Warning: fopen(/var/www/log/support.log): failed to open str
eam: No such file or directory in /mnt/var/www/swisscenter/base/file.php on line 75

Any ideas?
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/21 06:06 If you'd like me to, I could ssh into your machine (if you forward the port on your router) and poke around to try to work out why it's not happening. Send me an email at Robert @swisscenter.co.uk Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/21 06:16 I would say that you should change the user/group settings on the file to www-data and change the file to 777 if it is a single user machine. If it is a multiuser machine you may want to start with 775.
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/21 12:35 DeViLbOi-

Thanks. I confirmed the user/group settings, as well as permissions. All are set per installation instructions.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/22 12:55 admin wrote:
If you'd like me to, I could ssh into your machine (if you forward the port on your router) and poke around to try to work out why it's not happening. Send me an email at Robert @swisscenter.co.uk

e-mail sent. Thanks for the offer.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/23 05:07 Hi Propman,

I'm by no means an expert, but this looks like it has something to do with the symlink you've created from hda1>hda3.

You did something like this? (mv /var /mnt > ln -s /mnt/var /var) to make space in root?


failed to open stream: No such file or directory in /mnt/var/www/swisscenter/base/file.php on line 75

file.php - everything in there is looking $var


[error] PHP Warning: fopen(/var/www/log/support.log)

this should surely be /var/www/swisscenterlog/support.log ??

Just trying to throw some things in to maybe look at, I know I was originally stuck with this problem for a long time, but have since re-installed it a few times without a glitch (apart from getting the movie ratings script to work (admin?!))

By the way - I think instead of moving /var etc... you might get away with just doing:

Code:

 mv /usr /mnt/ ln -/mnt/usr /usr



Most things get installed in usr/local?
Would give you lots of space to play with and maybe you wouldn't have this problem with /mnt/var - /var ?

Hope you get this solved
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/23 21:04 Bauldrick-

Thanks for the reply. I did create the symlinks for /home, /usr, and /var. I don't think that I can move /var back to hda1 because du -h -c is telling me that it's 345M in size. df -h is telling me that hda1 only has 319M available. I never got fdisk to re-create the partitions the way that I wanted them to, so I probably should have corrected that in the first place. As it stands right now, I've got over 130GB of data, photos, etc. on the box, so doing the firmware upgrade again (or using fdisk to reconfigure the partitions) near the end on the list of things to try. Robert is going to take a look at my setup, and see if he can figure it out....(fingers crossed)
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/25 07:04 Hi,

it's 345M in size. df -h is telling me that hda1 only has 319M available

Thats a huge % left!!

Re-flashing will not touch your data etc.. on hda3 it just wipes hda1 and reinstalls the system there

I just read through this again and noticed I had your exact message

Code:

 Warningfopen(/var/www/log/support.log): failed to open streamNo such file or directory in /var/www/swisscenter/base/file.php on line 75



I know for a fact I got that message after swisscenter was up and running and I messed with things in apache in order to get something else running (jinzora I think).

Maybe check /etc/apache/conf.d/swisscenter.conf (or whatever you called it) , and make sure Doc root and <Directory point to where your swisscenter dirrectory is (should be /var/www/swisscenter)
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/25 23:53 Bauldrick wrote:
Thats a huge % left!!

Hey Bauldrick-

Yeah, I realize that 319M is quite a bit, but if I were to move the /var directory back to hda1, it wouldn't fit. I need 345M, and I only have 319M available.

On another note, Robert has taken a look at my setup, and has noted that I need to have apache2 installed, instead of apache. I'm trying to get back to where I was before, but this time, with apache2 running, but I'm having difficulties. I assume that your guide was written for a MIPS linkstation, and not a PPC, correct? At first, I thought that I would be able to use apt-get to remove apache, and install apache2, but it didn't seem to work. I'm trying to start over again, so we'll see how it goes.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/26 05:05 apt-get remove --purge apache*

I currently run Swisscenter on my LS2 (mips) and I followed this guide here

It's running fine.

I also have an LS1 (ppc) that is now more or less used for testing things on. I have just reflashed it from openlink to freelink and copy&pasted the instructions above, and I had it installed on there in around 5-7 mins.

The only difference I can see is that I resized the partitions on the LS1 (ppc) and do not need to create links from /usr etc..., but on the LS2 (mips) I have created such link from /usr.

I originally ran it with apache2, so it will work, but I fear thats not the problem here.

I assume that your guide was written for a MIPS linkstation, and not a PPC, correct?

The guide above doesn't matter what you're running, there are guides for ppc and mips, but they are for openlink users.

I'm trying to start over again

Are you reflashing?? (I would suggest this) Because if you :

a) only create a link from /usr
b) copy&paste the guide (follow only steps 1, 3 & 4 on apache - php page)
c) pray!!

Seriously though, months I spent trying to get this running, and I know that method works for me everytime now - without fail

Good Luck
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/26 10:06 propman07 wrote:
Yeah, I realize that 319M is quite a bit, but if I were to move the /var directory back to hda1, it wouldn't fit. I need 345M, and I only have 319M available.

So you are running a machine with a 350M and 320M HD? If not you could always use something like FIPS or partition magic to move the partitions back together as you probably shouldn't have made the seperate partitions to begin with. Stupid crappy Linux install instructions always do that and it is dumb for single user machines.
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/26 22:05 Bauldrick wrote:
Are you reflashing?? (I would suggest this) Because if you :

a) only create a link from /usr
b) copy&paste the guide (follow only steps 1, 3 & 4 on apache - php page)
c) pray!!

Seriously though, months I spent trying to get this running, and I know that method works for me everytime now - without fail

Good Luck


Bauldrick-

Yeah, I guess that reflashing would probably give me the best chance for success. I did try to reflash, but I had trouble. Do you think that I can reflash? If I remember correctly, the last time I tried, it said that I was already at the latest firmware, and would not reflash.

Thanks
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/26 22:07 DeViLbOi wrote:
So you are running a machine with a 350M and 320M HD? If not you could always use something like FIPS or partition magic to move the partitions back together as you probably shouldn't have made the seperate partitions to begin with. Stupid crappy Linux install instructions always do that and it is dumb for single user machines.

DeViLBOi-

Thanks for your reply. I'm running a Linkstation with a 250GB drive. The original firmware created the partitions, not me, so I'm not sure what you are talking about. If I can (safely) reflash hda1 without losing the data that I have on hda3, then I will give that a try. I think that I will start copying over my data, just in case.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/27 12:34 In the folder where HD-HLAN FWUpdate.exe (the updater)is, there is a "linkstation_version.txt" change that from VERSION=1.52 (if thats what it is) to something higher say VERSION=1.99, then it should be OK

You will not lose any data on HDA3 (I never have)

EDIT:

when you've flashed it look in /mnt you will still have a usr, var and home in there remove them and then just

mv /usr /mnt
ln -s /mnt/usr /usr

any problems with that side of things, get hold of us on the wiki
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/27 18:47 Bauldrick wrote:
In the folder where HD-HLAN FWUpdate.exe (the updater)is, there is a "linkstation_version.txt" change that from VERSION=1.52 (if thats what it is) to something higher say VERSION=1.99, then it should be OK

You will not lose any data on HDA3 (I never have)

EDIT:

when you've flashed it look in /mnt you will still have a usr, var and home in there remove them and then just

mv /usr /mnt
ln -s /mnt/usr /usr

any problems with that side of things, get hold of us on the wiki


Bauldrick-

Thanks for the reply. I'm in the process right now of baking up critical data on the LS, just in case.

It looks like you are recommending moving the /usr directory to /mnt, but leaving the /home and /var directories. Is that correct?

Also, in an e-mail that I got from Robert (swisscenter) he indicated that I needed to be running apache2 for swisscenter. In the instructions that you suggested, it looks like they are installing apache, and not apache2. Did you try this on your ppc LS, and if so, which version of apache worked for you?

Thanks a lot for your help.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/27 19:11 It looks like you are recommending moving the /usr directory to /mnt, but leaving the /home and /var directories. Is that correct?


Yep, that should give you plenty of room - it has me

Did you try this on your ppc LS, and if so, which version of apache worked for you?

I installed it as per the instructions, so it is fine with plain old apache.

I would like to get it running with

Lighttpd
PHP
Sqlite

as our little boxes get a bit bogged down, but hey - it took me forever to get to here!!

Good luck
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/27 19:18 oooops


-------doobler posted----------

sorry
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/27 20:28 Bauldrick wrote:
It looks like you are recommending moving the /usr directory to /mnt, but leaving the /home and /var directories. Is that correct?


Yep, that should give you plenty of room - it has me

Did you try this on your ppc LS, and if so, which version of apache worked for you?

I installed it as per the instructions, so it is fine with plain old apache.

I would like to get it running with

Lighttpd
PHP
Sqlite

as our little boxes get a bit bogged down, but hey - it took me forever to get to here!!

Good luck


Bauldrick-

Okay, I'll be giving it a try in a few hours, after I finish backing up the data.

Thanks.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/08/29 12:37 Update:

I was able to flash the LS again. I have gone through and moved the /usr and /home directories off of hda1, but left /var per the suggestions in this thread. I haven't gone through the steps to install swisscenter yet, but I am going to try to get to it later this week. From what Bauldrick is saying, it does not look like I need to install apache2, although Robert (swisscenter admin) indicated that I did. The plan is to go with apache, following the steps, and cross my fingers.

Thanks for all of the help.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/09/03 01:22 UPDATE:

Well, quite a bit has happened since my last message. My router took a dive, so I had to pick up a new one. Once I got all of that configured, I went ahead and followed Bauldrick's installation "steps" a few post back.

Long story short....it FINALLY worked!

I was able to get to the configuration screen, and I have started to map swisscenter to my media directories. Next step is to see if it actually works on my Linktheater.

Thanks again for all of your help.
David

Player: LinkTheater PC-P3LWG/DVD (wired)
NAS: LinkStation Network Storage Center 250GB (wired)
OS: Debian GNU/Linux 3.1
  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/09/03 15:42 Good stuff!! I'm having a drink for you

I want to know how to get film info from lovefilm.com or whatever - have replaced the script with a more recent one - any one that reads this and knows please let me know - hiccup



  | | The administrator has disabled public write access.
Re:Installing on Linkstation (Debian) - 2006/09/03 16:00 Try this...LINK
  | | The administrator has disabled public write access.
spacer
 

Screenshots

www.flickr.com
This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


 

Mambo is Free Software released under the GNU/GPL License.
spacer