NSLU2-Linux
view · edit · print · history

Applications.SwissCenter History

Hide minor edits - Show changes to markup

January 27, 2009, at 11:24 PM by avgjoemomma -- Help with Mysql5
Added lines 96-100:

`Questions:

avgjoemomma: I have the SC 1.22 running on lighttpd (php, fastcgi, php-mysql, php=gd, eaccelerator), but my problem is with the MySQL database. I have MySQL version 5 preinstalled, but the ipkg install is for 4.1.22. I've tried replacing the libraries with the MySQL5? versions but the php-mysql .so files error out if I do so. Any ideas?

September 01, 2007, at 12:08 AM by fcarolo -- undid spam
Changed lines 1-3 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

Changed lines 85-86 from:

DS101 UPDATE

to:

DS101 UPDATE

Changed line 98 from:

The password is "swissr". Let's see if that stops the automated wiki spam.

to:

The password is "swiss". Let's see if that stops the automated wiki spam.

September 01, 2007, at 12:08 AM by fcarolo -- undid spam
Changed lines 1-98 from:

<a href="http://revolution1848-1849.de ">Great sie</a> url:http://www.nslu2-linux.org/wiki/Applications/SwissCenter?action=edit(841342259):)</br></br>name:Medved</br>url:http://google.com</br>email:none@none.com</br>message:<a href="http://revolution1848-1849.de ">Great sie</a>

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

This page is password protected.

The password is "swissr". Let's see if that stops the automated wiki spam.

August 31, 2007, at 10:40 PM by Medved --
Changed lines 1-94 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

to:

<a href="http://revolution1848-1849.de ">Great sie</a> url:http://www.nslu2-linux.org/wiki/Applications/SwissCenter?action=edit(841342259):)</br></br>name:Medved</br>url:http://google.com</br>email:none@none.com</br>message:<a href="http://revolution1848-1849.de ">Great sie</a>

August 31, 2007, at 08:25 PM by fcarolo -- undid spam
Changed lines 1-94 from:

<a href="http://revolution1848-1849.de ">Great sie</a> url:http://www.nslu2-linux.org/wiki/Applications/SwissCenter?action=edit(841342259):)</br></br>name:Medved</br>url:http://google.com</br>email:none@none.com</br>message:<a href="http://revolution1848-1849.de ">Great sie</a>

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

August 31, 2007, at 06:26 PM by Medved --
Changed lines 1-94 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

to:

<a href="http://revolution1848-1849.de ">Great sie</a> url:http://www.nslu2-linux.org/wiki/Applications/SwissCenter?action=edit(841342259):)</br></br>name:Medved</br>url:http://google.com</br>email:none@none.com</br>message:<a href="http://revolution1848-1849.de ">Great sie</a>

August 31, 2007, at 02:14 PM by marceln -- Remove spam
Changed lines 1-94 from:

<a href="http://revolution1848-1849.de ">Great sie</a> url:http://www.nslu2-linux.org/wiki/Applications/SwissCenter?action=edit(841342259):)</br></br>name:Medved</br>url:http://google.com</br>email:none@none.com</br>message:<a href="http://revolution1848-1849.de ">Great sie</a>

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

August 31, 2007, at 02:07 PM by Medved --
August 31, 2007, at 09:45 AM by Medved --
Changed lines 1-94 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

to:

<a href="http://revolution1848-1849.de ">Great sie</a> url:http://www.nslu2-linux.org/wiki/Applications/SwissCenter?action=edit(841342259):)</br></br>name:Medved</br>url:http://google.com</br>email:none@none.com</br>message:<a href="http://revolution1848-1849.de ">Great sie</a>

August 26, 2007, at 08:46 PM by marceln -- Recovered from spam
Changed lines 1-94 from:

<a href="http://revolution1848-1849.de ">Great sie</a>

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

August 26, 2007, at 01:04 AM by Medved --
Changed lines 1-94 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
  2. Install the swisscenter files under /opt/share/www/swisscenter
  3. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
  4. You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Also add this at the bottom of the file:
    <ifModule mod_dir.c>
    DirectoryIndex index.html index.php
    </ifModule>
    ErrorLog /var/log/swisscentererror.log
    LogLevel debug
    CustomLog /var/log/swisscenteraccess.log combined
    Alias /root/ "/"
  5. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
    instead of: error_reporting = E_ALL

Part 2

  1. Then make some code changes in the swisscenter php files:
    In ./ext/getid3/getid3.php edit comment out the following section as below:
    #if ($this->option_tag_apetag) {
    #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {
    #return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
    #}
    #$tag = new getid3_apetag($fp, $this->info);
    #}
  2. In .\config\index.php and ./do_refresh.php change:
    # run_background('media_search.php');
    require_once('media_search.php');
  3. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory: // Where is the SwissCenter installed?
    // if (!empty($_SERVER['DOCUMENT_ROOT']))
    // define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
    // elseif (!empty($_SERVER['PHP_SELF']))
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
    // else
    // define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
    define ('SC_LOCATION','/opt/share/www/swisscenter/');
  4. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):
    //if (is_server_iis())
    //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    //else
    //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
    return 'http://192.168.1.77:8000/';
  5. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  6. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
  7. Edit the thttpd config file (it's in /opt/etc):
    dir=/opt/share/www/swisscenter
    port=8080
    user=nobody
    nochroot
    nosymlinks
    "leave the rest as it is"
  8. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
  9. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
  10. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  11. Add the server to your server list in your Showcenter or similar equipment.

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751


DS101 UPDATE

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

jonATNOSPAMkolbeinsen.com

to:

<a href="http://revolution1848-1849.de ">Great sie</a>

October 22, 2006, at 07:34 AM by Jon --
Deleted line 80:
Added lines 82-83:

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751

Added lines 85-86:

DS101 UPDATE

Changed lines 94-95 from:

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751

to:

jonATNOSPAMkolbeinsen.com

October 22, 2006, at 07:33 AM by Jon -- DS101 Swisscenter
Added lines 37-39:

Part 2

Changed lines 83-85 from:
to:

The latest version of Swisscenter seem to work nicely on the latest DS101 firmware from synology. You will have to add some of the packages manually (use the nslu versions) - like eaccellerator, php, libstdc++ and other dependencies. download them here: http://ipkgfind.nslu2-linux.org/ and install with 'ipkg install <filename>. MySQL and Apache is already installed, and you dont have to use thttpd for the configuration screens anymore.

You should stop at part 2 using this guide, do not modify the swisscenter php-files (They will be overwritten the minute you do an update)

Note: Swisscenter runs fairly slow on the DS101, but looks good. Oxylbox is better for speed.

December 27, 2005, at 10:28 AM by Willard Korfhage -- need to install php-thttpd, not thttpd
Changed line 64 from:
  1. The config menu of swisscenter does not work under apache, yet. So, ipkg thttpd.
to:
  1. The config menu of swisscenter does not work under apache, yet. So, ipkg php-thttpd.
November 16, 2005, at 01:37 PM by Ken -- Added correct relative location for server.php
Changed line 57 from:
  1. Edit server.php to hard code the server address (addapt it if your ip-address and port are different):\\
to:
  1. Edit ./base/server.php to hard code the server address (addapt it if your ip-address and port are different):\\
November 16, 2005, at 01:32 PM by Ken -- include correct relative location of settings.php
Changed line 48 from:
  1. Edit the settings.php and commented out most of the log-file things and defined the variable to my directory:\
to:
  1. Edit the ./base/settings.php and commented out most of the log-file things and defined the variable to my directory:\
November 16, 2005, at 01:29 PM by Ken -- slash missing before file do_refresh.php
Changed line 45 from:
  1. In .\config\index.php and .do_refresh.php change:\\
to:
  1. In .\config\index.php and ./do_refresh.php change:\\
November 16, 2005, at 01:20 PM by Ken -- The directory for getid3.php was incorrect
Changed line 38 from:

In .\ext\getid3.php edit comment out the following section as below:\\

to:

In ./ext/getid3/getid3.php edit comment out the following section as below:\\

August 16, 2005, at 02:22 PM by rwhitby --
Changed line 40 from:
 #if (!@include_once(GETID3?_INCLUDEPATH.'module.tag.apetag.php')) {\\
to:
 #if (!@include_once(GETID3_INCLUDEPATH.'module.tag.apetag.php')) {\\
Changed line 59 from:
 //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/'; \\
to:
 //return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/'; \\
Changed line 61 from:
 //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/'; \\
to:
 //return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/'; \\
August 16, 2005, at 02:21 PM by rwhitby --
Changed line 19 from:
 DocumentRoot? "/opt/share/www/swisscenter"\\
to:
 DocumentRoot "/opt/share/www/swisscenter"\\
Changed lines 21-22 from:
 Options Indexes FollowSymLinks? Multiviews
AllowOverride? None\\
to:
 Options Indexes FollowSymLinks Multiviews
AllowOverride None\\
Changed line 29 from:
 DirectoryIndex? index.html index.php\\
to:
 DirectoryIndex index.html index.php\\
Changed lines 31-33 from:
 ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined\\
to:
 ErrorLog /var/log/swisscentererror.log
LogLevel debug
CustomLog /var/log/swisscenteraccess.log combined\\
August 16, 2005, at 02:20 PM by rwhitby --
Changed lines 13-16 from:

find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter

to:
 find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter
Changed lines 18-25 from:

Listen 8000
DocumentRoot? "/opt/share/www/swisscenter"
<Directory "/opt/share/www/swisscenter">
Options Indexes FollowSymLinks? Multiviews
AllowOverride? None
Order allow,deny
Allow from all
</Directory>\\

to:
 Listen 8000
DocumentRoot? "/opt/share/www/swisscenter"
<Directory "/opt/share/www/swisscenter">
Options Indexes FollowSymLinks? Multiviews
AllowOverride? None
Order allow,deny
Allow from all
</Directory>\\
Changed lines 28-34 from:

<ifModule mod_dir.c>
DirectoryIndex? index.html index.php
</ifModule>
ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined
Alias /root/ "/"

to:
 <ifModule mod_dir.c>
DirectoryIndex? index.html index.php
</ifModule>
ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined
Alias /root/ "/"
Changed lines 66-71 from:

dir=/opt/share/www/swisscenter
port=8080
user=nobody
nochroot
nosymlinks
"leave the rest as it is"

to:
 dir=/opt/share/www/swisscenter
port=8080
user=nobody
nochroot
nosymlinks
"leave the rest as it is"
Changed line 74 from:

http://192.168.1.77:8080/media_search.php

to:
 http://192.168.1.77:8080/media_search.php
August 16, 2005, at 02:19 PM by rwhitby --
Changed lines 5-10 from:

mysql
apache
eaccelerator
php-apache
php-mysql
php-gd

to:
 mysql
apache
eaccelerator
php-apache
php-mysql
php-gd
August 16, 2005, at 02:09 PM by bART --
Changed lines 1-4 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. It does not quite work because of php4 and php5 incompatibilities.

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. Most functions now work. See below how to install it.

Changed lines 79-83 from:

Thanks to Mark and Rudi!

to:

Thanks to Mark and Rudi!

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751

August 16, 2005, at 02:08 PM by bART --
Changed line 67 from:

dir=/opt/share/www/swisscenter (was my swisscenter-Installation under Apache)\\

to:

dir=/opt/share/www/swisscenter\\

Added line 73:
  1. Configure Swisscenter in your web brouwser. Go to 192.168.1.77:8080/config/ or your own ip-address.
Changed lines 76-77 from:
to:
  1. Test Swisscenter in a browser. Go to 192.168.1.77:8000 or your own ip-address.
  2. Add the server to your server list in your Showcenter or similar equipment.
August 16, 2005, at 01:54 PM by bART --
Changed line 35 from:

Alias /root/ "/" \\

to:

Alias /root/ "/"

Changed line 37 from:

instead of: error_reporting = E_ALL\\

to:

instead of: error_reporting = E_ALL

Changed line 45 from:
 #}\\
to:
 #}
Changed line 48 from:
 require_once('media_search.php');\\
to:
 require_once('media_search.php');
Changed line 57 from:
 define ('SC_LOCATION','/opt/share/www/swisscenter/'); \\
to:
 define ('SC_LOCATION','/opt/share/www/swisscenter/'); 
Changed lines 74-75 from:

http://192.168.1.77:8080/media_search.php

to:

http://192.168.1.77:8080/media_search.php

August 16, 2005, at 01:53 PM by bART --
Changed line 17 from:

chown nobody /opt/share/www/swisscenter\\

to:

chown nobody /opt/share/www/swisscenter

Changed lines 27-36 from:

Also add this at the bottom of the file:

<ifModule mod_dir.c>
DirectoryIndex? index.html index.php
</ifModule>
ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined
Alias /root/ "/"
to:


Also add this at the bottom of the file:
<ifModule mod_dir.c>
DirectoryIndex? index.html index.php
</ifModule>
ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined
Alias /root/ "/" \\

Changed lines 38-43 from:
  1. Then make some code changes in the swisscenter php files:

In .\ext\getid3.php edit comment out the following section as below

to:
  1. Then make some code changes in the swisscenter php files:
    In .\ext\getid3.php edit comment out the following section as below:\\
Changed lines 46-48 from:

in .\config\index.php and .do_refresh.php change:

to:
  1. In .\config\index.php and .do_refresh.php change:\\
Changed lines 48-51 from:

require_once('media_search.php');
Edit the settings.php and commented out most of the log-file things and defined the variable to my directory:.

to:
 require_once('media_search.php');
#Edit the settings.php and commented out most of the log-file things and defined the variable to my directory:\
Changed lines 58-60 from:
  1. Edit server.php to hard code the server address (addapt it if your ip-address and port are different):
to:
  1. Edit server.php to hard code the server address (addapt it if your ip-address and port are different):\\
Changed lines 63-64 from:
 return 'http://192.168.1.77:8000/'; 
to:
 return 'http://192.168.1.77:8000/'; 
Deleted line 64:
Changed lines 66-68 from:
  1. Edit the thttpd config file (it's in /opt/etc):
to:
  1. Edit the thttpd config file (it's in /opt/etc):\\
Deleted line 72:
August 16, 2005, at 01:48 PM by bART --
Changed lines 5-11 from:
  1. Install the following ipkgs:
  • mysql
  • apache
  • eaccelerator
  • php-apache
  • php-mysql
  • php-gd
to:
  1. Install the following ipkgs:
    mysql
    apache
    eaccelerator
    php-apache
    php-mysql
    php-gd
Changed lines 13-27 from:
  1. Then need to change the permissions of the files:
find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter
  1. You will need to edit httpd.conf that get installed with apache to include the following:
Listen 8000
DocumentRoot? "/opt/share/www/swisscenter"
<Directory "/opt/share/www/swisscenter">
Options Indexes FollowSymLinks? Multiviews
Order allow,deny
Allow from all
</Directory>
to:
  1. Then change the permissions of the files:
    find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
    find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
    chown -R nobody /opt/share/www/swisscenter
    chown nobody /opt/share/www/swisscenter
    #You will need to edit httpd.conf that get installed with apache to include the following:
    Listen 8000
    DocumentRoot? "/opt/share/www/swisscenter"
    <Directory "/opt/share/www/swisscenter">
    Options Indexes FollowSymLinks? Multiviews
    AllowOverride? None
    Order allow,deny
    Allow from all
    </Directory>
August 16, 2005, at 01:43 PM by bART --
Changed lines 14-18 from:
find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter
to:
find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter
Changed lines 19-28 from:

Listen 8000
DocumentRoot? "/opt/share/www/swisscenter"
<Directory "/opt/share/www/swisscenter">
Options Indexes FollowSymLinks? Multiviews
AllowOverride? None
Order allow,deny
Allow from all
</Directory>

to:
Listen 8000
DocumentRoot? "/opt/share/www/swisscenter"
<Directory "/opt/share/www/swisscenter">
Options Indexes FollowSymLinks? Multiviews
Order allow,deny
Allow from all
</Directory>
Changed lines 30-38 from:

<ifModule mod_dir.c>
DirectoryIndex? index.html index.php
</ifModule>
ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined
Alias /root/ "/"

to:
<ifModule mod_dir.c>
DirectoryIndex? index.html index.php
</ifModule>
ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined
Alias /root/ "/"
August 16, 2005, at 01:42 PM by bART --
Changed lines 17-18 from:

chown nobody /opt/share/www/swisscenter

to:

chown nobody /opt/share/www/swisscenter

August 16, 2005, at 01:41 PM by bART --
Added line 18:
August 16, 2005, at 01:41 PM by bART --
Changed lines 15-17 from:
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
->chown -R nobody /opt/share/www/swisscenter
->chown nobody /opt/share/www/swisscenter\\
to:

find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter\\

August 16, 2005, at 01:40 PM by bART --
Deleted lines 11-12:
Changed lines 14-21 from:

find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter

to:
find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
->find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
->chown -R nobody /opt/share/www/swisscenter
->chown nobody /opt/share/www/swisscenter\\
August 16, 2005, at 01:40 PM by bART --
Changed lines 5-16 from:

Install the following ipkgs:

  1. mysql
  2. apache
  3. eaccelerator
  4. php-apache
  5. php-mysql
  6. php-gd

Install the swisscenter files under /opt/share/www/swisscenter Then need to change the permissions of the files:

to:
  1. Install the following ipkgs:
  • mysql
  • apache
  • eaccelerator
  • php-apache
  • php-mysql
  • php-gd
  1. Install the swisscenter files under /opt/share/www/swisscenter
  2. Then need to change the permissions of the files:
Changed lines 24-25 from:

You will need to edit httpd.conf that get installed with apache to include the following:

to:
  1. You will need to edit httpd.conf that get installed with apache to include the following:
Changed line 46 from:

Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE\\

to:
  1. Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE\\
Changed lines 50-51 from:

Then make some code changes in the swisscenter php files:

to:
  1. Then make some code changes in the swisscenter php files:
August 16, 2005, at 01:38 PM by bART --
Changed lines 77-78 from:

Edit server.php to hard code the server address (addapt it if your ip-address and port are different):

to:
  1. Edit server.php to hard code the server address (addapt it if your ip-address and port are different):
Changed lines 85-87 from:

Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.

to:
  1. Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.
  2. The config menu of swisscenter does not work under apache, yet. So, ipkg thttpd.
  3. Edit the thttpd config file (it's in /opt/etc):

dir=/opt/share/www/swisscenter (was my swisscenter-Installation under Apache)
port=8080
user=nobody
nochroot
nosymlinks
"leave the rest as it is"

  1. The auto search for new files does not work, so manually populate the database with:
    http://192.168.1.77:8080/media_search.php
August 16, 2005, at 01:34 PM by bART --
Added line 26:

Listen 8000\\

Changed lines 77-87 from:
to:

Edit server.php to hard code the server address (addapt it if your ip-address and port are different):

 //if (is_server_iis()) 
//return 'http://'.$_SERVER['LOCAL_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
//else
//return 'http://'.$_SERVER['SERVER_ADDR'].":".$_SERVER['SERVER_PORT'].'/';
return 'http://192.168.1.77:8000/';

Furthermore, you could replace the ./ext/getid3 by a newer one from www.getid3.org.

August 16, 2005, at 01:16 PM by bART --
Changed lines 45-50 from:

Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
instead of
error_reporting = E_ALL

to:

Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
instead of: error_reporting = E_ALL

August 16, 2005, at 01:14 PM by bART --
Added line 13:
Changed lines 17-19 from:

find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644 find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755

to:

find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644
find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755
chown -R nobody /opt/share/www/swisscenter
chown nobody /opt/share/www/swisscenter

Changed lines 55-78 from:
  1. if ($this->option_tag_apetag) {
  2. if (!@include_once(GETID3?_INCLUDEPATH.'module.tag.apetag.php')) {
  3. return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
  4. }
  5. $tag = new getid3_apetag($fp, $this->info);
  6. }

in .\config\index.php and .do_refresh.php change...

  1. run_background('media_search.php');

require_once('media_search.php');

in .\base\settings.php I had to hard code the path to php, but if you ipkg which this might work without the change.

  1. define ('PHP_LOCATION', trim(syscall('which php')));

define ('PHP_LOCATION', "/opt/bin/php");

Also trick it to think that a media search has been done, otherwise I found I couldn't start the config app.

  1. Mod MF

$_SESSION["media_check"] = 'YES';

  1. EndMod? MF

if (!isset($_SESSION["media_check"]))

to:
 #if ($this->option_tag_apetag) {
#if (!@include_once(GETID3?_INCLUDEPATH.'module.tag.apetag.php')) {
#return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
#}
#$tag = new getid3_apetag($fp, $this->info);
#}

in .\config\index.php and .do_refresh.php change:

 # run_background('media_search.php');
require_once('media_search.php');

Edit the settings.php and commented out most of the log-file things and defined the variable to my directory:.

 // Where is the SwissCenter installed? 
// if (!empty($_SERVER['DOCUMENT_ROOT']))
// define //('SC_LOCATION',str_replace('\\','/',os_path($_SERVER["DOCUMENT_ROOT"],true)));
// elseif (!empty($_SERVER['PHP_SELF']))
// define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER['PHP_SELF']).'/'));
// else
// define ('SC_LOCATION', //str_replace('\\','/',dirname($_SERVER["argv"][0]).'/'));
define ('SC_LOCATION','/opt/share/www/swisscenter/');
August 16, 2005, at 01:03 PM by bART --
Changed lines 21-45 from:

"DocumentRoot? "/opt/share/www/swisscenter" <Directory "/opt/share/www/swisscenter"> Options Indexes FollowSymLinks? Multiviews AllowOverride? None Order allow,deny Allow from all </Directory>"

Also add this at the bottom of the file (Note: }=> and {=< )...

<ifModule mod_dir.c> DirectoryIndex? index.html index.php </ifModule> ErrorLog? /var/log/swisscentererror.log LogLevel? debug CustomLog? /var/log/swisscenteraccess.log combined Alias /root/ "/"

Helps also change the error level in php.ini to error_reporting = E_ALL & ~E_NOTICE instead of error_reporting = E_ALL

Code changes...

to:

DocumentRoot? "/opt/share/www/swisscenter"
<Directory "/opt/share/www/swisscenter">
Options Indexes FollowSymLinks? Multiviews
AllowOverride? None
Order allow,deny
Allow from all
</Directory>

Also add this at the bottom of the file:

<ifModule mod_dir.c>
DirectoryIndex? index.html index.php
</ifModule>
ErrorLog? /var/log/swisscentererror.log
LogLevel? debug
CustomLog? /var/log/swisscenteraccess.log combined
Alias /root/ "/"

Change the error level in php.ini to: error_reporting = E_ALL & ~E_NOTICE
instead of
error_reporting = E_ALL

Then make some code changes in the swisscenter php files:

August 16, 2005, at 12:59 PM by bART --
Changed lines 3-72 from:

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751

to:

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751

Install the following ipkgs:

  1. mysql
  2. apache
  3. eaccelerator
  4. php-apache
  5. php-mysql
  6. php-gd

Install the swisscenter files under /opt/share/www/swisscenter Then need to change the permissions of the files:

find /opt/share/www/swisscenter -type f -print0 | xargs -0 chmod 644 find /opt/share/www/swisscenter -type d -print0 | xargs -0 chmod 755

You will need to edit httpd.conf that get installed with apache to include the following:

"DocumentRoot? "/opt/share/www/swisscenter" <Directory "/opt/share/www/swisscenter"> Options Indexes FollowSymLinks? Multiviews AllowOverride? None Order allow,deny Allow from all </Directory>"

Also add this at the bottom of the file (Note: }=> and {=< )...

<ifModule mod_dir.c> DirectoryIndex? index.html index.php </ifModule> ErrorLog? /var/log/swisscentererror.log LogLevel? debug CustomLog? /var/log/swisscenteraccess.log combined Alias /root/ "/"

Helps also change the error level in php.ini to error_reporting = E_ALL & ~E_NOTICE instead of error_reporting = E_ALL

Code changes...

In .\ext\getid3.php edit comment out the following section as below

  1. if ($this->option_tag_apetag) {
  2. if (!@include_once(GETID3?_INCLUDEPATH.'module.tag.apetag.php')) {
  3. return $this->error('module.tag.apetag.php is missing - you may disable option_tag_apetag.');
  4. }
  5. $tag = new getid3_apetag($fp, $this->info);
  6. }

in .\config\index.php and .do_refresh.php change...

  1. run_background('media_search.php');

require_once('media_search.php');

in .\base\settings.php I had to hard code the path to php, but if you ipkg which this might work without the change.

  1. define ('PHP_LOCATION', trim(syscall('which php')));

define ('PHP_LOCATION', "/opt/bin/php");

Also trick it to think that a media search has been done, otherwise I found I couldn't start the config app.

  1. Mod MF

$_SESSION["media_check"] = 'YES';

  1. EndMod? MF

if (!isset($_SESSION["media_check"]))

Thanks to Mark and Rudi!

August 10, 2005, at 01:49 PM by bART --
Changed lines 1-2 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. It does not quite work beacsue of php3 and php4 incompatibilities.

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. It does not quite work because of php4 and php5 incompatibilities.

August 10, 2005, at 01:48 PM by bART --
Changed lines 1-2 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso [MC500?]. It does not quite work beacsue of php3 and php4 incompatibilities.

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC-500. It does not quite work beacsue of php3 and php4 incompatibilities.

August 10, 2005, at 01:45 PM by bART --
Changed lines 1-2 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC500?. It does not quite work beacsue of php3 and php4 incompatibilities.

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso [MC500?]. It does not quite work beacsue of php3 and php4 incompatibilities.

August 10, 2005, at 01:42 PM by bART --
Changed lines 1-2 from:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC500?. It does not quite work beacsue of php3 and php4 incompatibilities.

to:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC500?. It does not quite work beacsue of php3 and php4 incompatibilities.

August 10, 2005, at 01:42 PM by bART --
Added lines 1-3:

SwissCenter is a great application for the Pinnacle Showcenter and Neuston Virtuoso MC500?. It does not quite work beacsue of php3 and php4 incompatibilities.

See: http://www.swisscenter.co.uk/index.php?option=com_simpleboard&Itemid=42&func=view&catid=12&id=751

view · edit · print · history · Last edited by avgjoemomma.
Based on work by fcarolo, Medved, marceln, Jon, Willard Korfhage, Ken, rwhitby, and bART.
Originally by bART.
Page last modified on January 27, 2009, at 11:24 PM