FAQ  •  Register  •  Login

Web UI in PHP - support thread

<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Fri Jun 01, 2012 3:16 pm

Re: Web UI in PHP (revised)

Xmantium wrote:Mark im free next five day to test out anything we can do about the presentation save button bug QNAP NAS users are having.

qoolbox who has Thecus NAS somehow fixed the same bug issue somehow
He thinks just update PHP but QNAP does have a very close to the latest version of PHP part of the firmware

Excellent. This weekend I'll send you some test code to see if we can figure out what is going on. Thanks pal!
<<

mrmad1966

Streaming enthusiast

Posts: 25

Joined: Thu Jun 14, 2012 6:06 pm

Post Fri Jun 15, 2012 3:17 pm

Re: Web UI in PHP (revised)

Folks would appreciate some other brains to help me here
Installed Serviio & started both the server & console on my headless Ubuntu File Server. Downloaded and xtracted WebUI inside my /var/www folder

When I point my windows machine to http://myubuntuserver/index.php I get a server error & the page fails to be displayed, but a test.php in same dir reavelas all phpinfo() no problems..

Any ideas that could help me I'd REALLY appreciate, going a bit nuts now..
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Jun 15, 2012 3:51 pm

Re: Web UI in PHP (revised)

you should have /var/www/serviioweb/ and then should visit http://server/serviioweb/

otherwise post ls -l /var/www/
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

mrmad1966

Streaming enthusiast

Posts: 25

Joined: Thu Jun 14, 2012 6:06 pm

Post Fri Jun 15, 2012 4:02 pm

Re: Web UI in PHP (revised)

will wrote:you should have /var/www/serviioweb/ and then should visit http://server/serviioweb/

otherwise post ls -l /var/www/


Will, thanks for your reply & assistance..ls -l /var/www/ is listed below. NOTE: The serviio folder holds serviio server & console.

]0;john@Amybeth: ~john@Amybeth:~$ sudo ls -l /var/www/
[sudo] password for john:
total 108
drwxrwxrwx 2 john lxusers 4096 2012-06-15 16:05 code
-rwxrw---- 1 john lxusers 821 2012-05-27 14:24 config.php
-rwxrw---- 1 john lxusers 563 2012-05-27 14:24 content.php
drwxrwxrwx 2 john lxusers 4096 2012-06-15 16:05 css
drwxrwxrwx 2 john lxusers 4096 2012-06-15 16:05 i18n
drwxrwxrwx 2 john lxusers 4096 2012-06-15 16:05 images
-rwxrw---- 1 john lxusers 48029 2012-05-27 17:58 index.php
drwxrwxrwx 2 john lxusers 4096 2012-06-15 16:05 js
drwxrwxrwx 2 john lxusers 4096 2012-06-15 16:05 lib
-rwxrw---- 1 john lxusers 278 2012-05-27 14:24 monitor.php
drwxrwxrwx 3 john lxusers 4096 2012-06-15 16:05 nbproject
-rwxrw---- 1 john lxusers 671 2012-05-27 14:24 README.txt
drwxr-xr-x 9 root root 4096 2012-06-15 15:52 serviio
-rw-r--r-- 1 root root 21 2012-06-15 15:59 test.php
drwxrwxrwx 3 john lxusers 4096 2012-06-15 16:05 tree
drwxrwxrwx 2 john lxusers 4096 2012-06-15 16:05 view
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Jun 15, 2012 4:18 pm

Re: Web UI in PHP (revised)

Ok well firstly, I would move serviio out of /var/www e.g. /usr/local/serviio etc...

Next make www-data own the content
  Code:
cd /var/www
chown www-data:www-data * -R


Then try again
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

mrmad1966

Streaming enthusiast

Posts: 25

Joined: Thu Jun 14, 2012 6:06 pm

Post Fri Jun 15, 2012 4:36 pm

Re: Web UI in PHP (revised)

will wrote:Ok well firstly, I would move serviio out of /var/www e.g. /usr/local/serviio etc...

Next make www-data own the content
  Code:
cd /var/www
chown www-data:www-data * -R


Then try again


Will, you are the DLNA Master, thank you my friend....
<<

mrmad1966

Streaming enthusiast

Posts: 25

Joined: Thu Jun 14, 2012 6:06 pm

Post Fri Jun 15, 2012 5:02 pm

Re: Web UI adding files to library issue

OK, so Im so close thanks to Will & Zip but sadly I have another query. Will has just helped me sort out my webUI but when I add a folder (with only half dozen mp3s in) and force a refresh nothing seems to happen.. :roll: :roll: files at the top of the WebUI browser still say 0 added.. Could this be a permissions thing ?
Thank you
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Jun 15, 2012 5:11 pm

Re: Web UI in PHP (revised)

Could be. What user are you running Serviio as, what are the permissions of the directory you added?

Maybe make a new thread in the help section and post a detailed log (see my signature) showing you add the folder.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

nordge1

Serviio newbie

Posts: 5

Joined: Mon Jun 18, 2012 9:28 pm

Post Mon Jun 18, 2012 9:59 pm

Re: Web UI in PHP (revised)

Hey Guys
I am having the same issue as mrmad1966. I have followed Will's instructions but it did not resolve the "HTTP Error 500" for me. I spent all day on this and I still can't figure this one out. Any help would be greatly appreciated.

I have posted my permissions below.

/var/www
-rw-r--r-- 1 www-data www-data 177 2012-05-16 15:04 index.html
-rw-r--r-- 1 www-data www-data 20 2012-05-16 15:08 info.php
drwxr-xr-x 11 www-data www-data 4096 2012-05-27 14:24 serviioweb
-rw-r--r-- 1 www-data www-data 20 2012-06-18 12:48 test.php

/var/www/serviioweb
drwxr-xr-x 2 www-data www-data 4096 2012-05-27 14:24 code
-rw-r--r-- 1 www-data www-data 821 2012-05-27 14:24 config.php
-rw-r--r-- 1 www-data www-data 563 2012-05-27 14:24 content.php
drwxr-xr-x 2 www-data www-data 4096 2012-05-27 14:24 css
drwxr-xr-x 2 www-data www-data 4096 2012-05-27 14:24 i18n
drwxr-xr-x 2 www-data www-data 4096 2012-05-27 14:24 images
-rw-r--r-- 1 www-data www-data 48029 2012-05-27 17:58 index.php
drwxr-xr-x 2 www-data www-data 4096 2012-05-27 14:24 js
drwxr-xr-x 2 www-data www-data 4096 2012-05-27 14:24 lib
-rw-r--r-- 1 www-data www-data 278 2012-05-27 14:24 monitor.php
drwxr-xr-x 3 www-data www-data 4096 2012-05-27 14:24 nbproject
-rw-r--r-- 1 www-data www-data 671 2012-05-27 14:24 README.txt
drwxr-xr-x 3 www-data www-data 4096 2012-05-27 14:24 tree
drwxr-xr-x 2 www-data www-data 4096 2012-05-27 14:24 view
<<

mrmad1966

Streaming enthusiast

Posts: 25

Joined: Thu Jun 14, 2012 6:06 pm

Post Tue Jun 19, 2012 6:25 am

Re: Web UI in PHP (revised)

Hi m8
FWIW Only difference I see between your setup & mine thats obviuos is (as suggested by Will) I have ALL my WebUI files sitting in /var/www and serviio is in the location (again as suggested by Will) /usr/local/serviio
HTH
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Jun 19, 2012 7:39 am

Re: Web UI in PHP (revised)

Can you confirm you have the curl and xml for php modules installed (browse to test.php assuming it contains <?php phpinfo(); ?>).
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

nordge1

Serviio newbie

Posts: 5

Joined: Mon Jun 18, 2012 9:28 pm

Post Tue Jun 19, 2012 1:02 pm

Re: Web UI in PHP (revised)

My serviio files are located in my user home and the webui files r in /var/www/serviioweb. I will move my serviio files to the location u suggest and report back.
<<

nordge1

Serviio newbie

Posts: 5

Joined: Mon Jun 18, 2012 9:28 pm

Post Tue Jun 19, 2012 1:11 pm

Re: Web UI in PHP (revised)

will wrote:Can you confirm you have the curl and xml for php modules installed (browse to test.php assuming it contains <?php phpinfo(); ?>).

I do have a test.php with that line. I check quickly at the start of my investigation and the answer was yes to both. I am on my phone now but I will confirm when i get to work and report back.
<<

nordge1

Serviio newbie

Posts: 5

Joined: Mon Jun 18, 2012 9:28 pm

Post Thu Jun 21, 2012 6:55 pm

Re: Web UI in PHP (revised)

nordge1 wrote:
will wrote:Can you confirm you have the curl and xml for php modules installed (browse to test.php assuming it contains <?php phpinfo(); ?>).

I do have a test.php with that line. I check quickly at the start of my investigation and the answer was yes to both. I am on my phone now but I will confirm when i get to work and report back.


You were correct, I did have curl installed but not curl for PHP. For all you Ubuntu users out there see below to install it.
  Code:
apt-get install php5-curl
/etc/init.d/apache2 restart


Now my problem is "WARNING: There is a version mismatch between Serviio and Web UI. There may be a loss of functionality." in the Web UI. My about says "Serviio v 0.6.2 - WebUI v 1.0 " Is this made to work with a previous version?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Jun 21, 2012 7:29 pm

Re: Web UI in PHP (revised)

nordge1 wrote:Now my problem is "WARNING: There is a version mismatch between Serviio and Web UI. There may be a loss of functionality." in the Web UI. My about says "Serviio v 0.6.2 - WebUI v 1.0 " Is this made to work with a previous version?


Hmm, can you post the contents of the config.php file.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

nordge1

Serviio newbie

Posts: 5

Joined: Mon Jun 18, 2012 9:28 pm

Post Thu Jun 21, 2012 7:53 pm

Re: Web UI in PHP (revised)

will wrote:
nordge1 wrote:Now my problem is "WARNING: There is a version mismatch between Serviio and Web UI. There may be a loss of functionality." in the Web UI. My about says "Serviio v 0.6.2 - WebUI v 1.0 " Is this made to work with a previous version?


Hmm, can you post the contents of the config.php file.

  Code:
<?php
$language = "en";
$webUIver = "1.0";
$debugLevel = "none"; // none, debug
$debugLoc = "none"; // none, screen
$serviio_host = "127.0.0.1";
$serviio_port = "23423";
$version_req = "0.6.2";

if ($debugLevel == "debug") {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
}

# Available console languages (bundled)
$languages = array(
'bg' => 'ÐÑлгаÑÑки',
'ca' => 'Català',
'cs' => 'ÄeÅ¡tina',
'da' => 'Dansk',
'de' => 'Deutsch',
'en' => 'English',
'es' => 'Español',
'fr' => 'Français',
'hu' => 'Magyar',
'it' => 'Italiano',
'nl' => 'Nederlands',
'no' => 'Norsk',
'pl' => 'Polski',
'pt_BR' => 'Português (Brasil)',
'ro' => 'RomânÄ',
'ru' => 'РÑÑÑкиina',
'sk' => 'SlovenÅ¡Ä
'sv' => 'Svenska',
'zh_CN' => '中æ (Simplified)',
'zh_HK' => '中æ (Traditional)'
);

?>
<<

mrmad1966

Streaming enthusiast

Posts: 25

Joined: Thu Jun 14, 2012 6:06 pm

Post Fri Jun 22, 2012 5:29 pm

Re: Web UI in PHP (revised)

nordge1 wrote:
will wrote:
nordge1 wrote:Now my problem is "WARNING: There is a version mismatch between Serviio and Web UI. There may be a loss of functionality." in the Web UI. My about says "Serviio v 0.6.2 - WebUI v 1.0 " Is this made to work with a previous version?


Hmm, can you post the contents of the config.php file.

  Code:
<?php
$language = "en";
$webUIver = "1.0";
$debugLevel = "none"; // none, debug
$debugLoc = "none"; // none, screen
$serviio_host = "127.0.0.1";
$serviio_port = "23423";
$version_req = "0.6.2";

if ($debugLevel == "debug") {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
}

# Available console languages (bundled)
$languages = array(
'bg' => 'ÐÑлгаÑÑки',
'ca' => 'Català',
'cs' => 'ÄeÅ¡tina',
'da' => 'Dansk',
'de' => 'Deutsch',
'en' => 'English',
'es' => 'Español',
'fr' => 'Français',
'hu' => 'Magyar',
'it' => 'Italiano',
'nl' => 'Nederlands',
'no' => 'Norsk',
'pl' => 'Polski',
'pt_BR' => 'Português (Brasil)',
'ro' => 'RomânÄ',
'ru' => 'РÑÑÑкиina',
'sk' => 'SlovenÅ¡Ä
'sv' => 'Svenska',
'zh_CN' => '中æ (Simplified)',
'zh_HK' => '中æ (Traditional)'
);

?>


Norge, I had this problem too. For me it was resolved by ensuring that Serviio WAS actually running as a service BEFORE using the console !
HTH
Mrmad1966
<<

dcbserviio

Serviio newbie

Posts: 1

Joined: Sun Jun 24, 2012 5:13 pm

Post Sun Jun 24, 2012 5:17 pm

Re: Web UI in PHP (revised)

Problem could also be the issue I found on my Fedora 17 machine. SELinux was preveting httpd from accessing port 23423. Here are commands I used to resolve my issue:

sudo semanage port -a -t PORT_TYPE -p tcp 23423

sudo semodule -i mypol.pp
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Mon Jul 09, 2012 12:09 am

Re: Web UI in PHP (revised)

qoolbox wrote:I resolved all the main problem, it was due to PHP version embedded in Thecus ...
I upgrade to PHP 5.3.9 and use it as dependency .. and all run fine (not yet tested the UTF-8 problem)

The QNAP admins finally upgraded PHP to 5.3.9 in its latest NAS firmware and still get the same presentation save issue :( Not sure why QNAP users still get this bug
I did check im running the correct version
  Code:
/root$ /mnt/ext/opt/apache/bin/php --version
PHP 5.3.9 (cli) (built: Jun 15 2012 02:32:36)
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Jul 09, 2012 7:11 am

Re: Web UI in PHP (revised)

Just tried your latest changes from git. One problem is that shared folders/online sources can have multiple access groups which is not really clear in your UI. They always have access group 1 (No restriction/full access), but they can additionally have 2 (limited access). And in the future once user defined ones/extra ones are allowed, they could have 3 or 4. Because of this a drop down box is not really the best way to convey that information for the library tab. Maybe a multi-select dropdown box, with a special summary? Not really sure what the ideal solution is.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 12 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.