Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dynamix - Web Server

Featured Replies

  • Author

tried that they break each other, great work but won't work for me unless I can figure it out.

 

thanks

 

Yeah, package management is another challenge  ::)

  • Replies 92
  • Views 26.3k
  • Created
  • Last Reply

I ended going back to simple features in which I modified the webserver plugin to work with xbmcsalud. Would it be possible to do the same thing with your plugin?

  • Author

I ended going back to simple features in which I modified the webserver plugin to work with xbmcsalud. Would it be possible to do the same thing with your plugin?

 

One caution don't run Dynamix and SF together...

 

... and what did you change to make it work ?

I can't remember what packages I changed, but I can post the plugin for you to see what is installed

  • Author

I can't remember what packages I changed, but I can post the plugin for you to see what is installed

 

Yes, do so.

bonienl,

 

been trying to get the web server plugin to work with my newznab install. Essentially I'm replacing the simple features server plugin with dynamix.

 

It's all installed but if I try to enable/ disable it from the gui settings page nothing happens and I get the following showing in the php errors file...

 

[06-Jan-2014 13:58:15 Europe/London] PHP Notice: Undefined variable: enable in /usr/local/emhttp/update.web.php on line 39

  • Author

Here is the one I modified.

 

What I noticed is that I used packages from different versions of slackware

 

To make a comparison, can you also attach the XBMC plg file which you install.

  • Author

bonienl,

 

been trying to get the web server plugin to work with my newznab install. Essentially I'm replacing the simple features server plugin with dynamix.

 

It's all installed but if I try to enable/ disable it from the gui settings page nothing happens and I get the following showing in the php errors file...

 

[06-Jan-2014 13:58:15 Europe/London] PHP Notice: Undefined variable: enable in /usr/local/emhttp/update.web.php on line 39

 

Likely a conflict. Can you attach the newznab plg file which you are using.

  • Author

Here you go

 

Your PLG is different from the one published in the wiki. Since none of these have a version control, what is supposed to be the latest version ?

 

I am not sure, I believe this should be version 1.2. I don't remember changing a lot on this plugin. If I modified your web plugin to use the same packages as this would it work?

  • Author

I am not sure, I believe this should be version 1.2. I don't remember changing a lot on this plugin. If I modified your web plugin to use the same packages as this would it work?

 

XBMC uses most packages from slackware 13.1, though in the version you've sent it appears a couple of 'prepared' packages are included in the XBMC install.

 

It is unclear to me what is causing things to fail when the web server is installed with slackware 13.1 selected.

 

bonienl,

 

How can the php included in your web server plugin be configured to the same level as the one included with the simple features web server plugin?

 

Out of the box, when trying to host my newznab install under your web server plugin I kept seeing errors in the php error log regarding undefined functions - some to do with ctype others with zlib.

 

To try and fix them I enabled some of the extensions listed in the dynamix.php.cfg file. That got me past some of them but not the zlib related ones, they still persist even with the zlib extension enabled.

 

I've exhausted my php fixing skills and so, for the time being, I've gone back to simplefeatures (not even the latest one) which works for me.

  • Author

bonienl,

 

How can the php included in your web server plugin be configured to the same level as the one included with the simple features web server plugin?

 

Out of the box, when trying to host my newznab install under your web server plugin I kept seeing errors in the php error log regarding undefined functions - some to do with ctype others with zlib.

 

To try and fix them I enabled some of the extensions listed in the dynamix.php.cfg file. That got me past some of them but not the zlib related ones, they still persist even with the zlib extension enabled.

 

I've exhausted my php fixing skills and so, for the time being, I've gone back to simplefeatures (not even the latest one) which works for me.

 

When you enable the optional extensions in the PHP configuration file (/boot/config/plugins/dynamix/dynamix.php.cfg), you need to install the associated system libraries as well, if they are not installed already. This you can do by removing or commenting the "no-install" word in the PLG file (/boot/config/plugins/dynamix.web.server-2.0.2-noarch-bergware.plg). You need to run a new installation using 'installplg' or reboot your system after your changes.

 

When you enable the optional extensions in the PHP configuration file (/boot/config/plugins/dynamix/dynamix.php.cfg), you need to install the associated system libraries as well, if they are not installed already. This you can do by removing or commenting the "no-install" word in the PLG file (/boot/config/plugins/dynamix.web.server-2.0.2-noarch-bergware.plg). You need to run a new installation using 'installplg' or reboot your system after your changes.

I figured that was the case - but there were no libraries listed that matched the extensions that I had to enable.

 

As I said I've hit a wall with my knowledge of php tinkering.

  • Author

When you enable the optional extensions in the PHP configuration file (/boot/config/plugins/dynamix/dynamix.php.cfg), you need to install the associated system libraries as well, if they are not installed already. This you can do by removing or commenting the "no-install" word in the PLG file (/boot/config/plugins/dynamix.web.server-2.0.2-noarch-bergware.plg). You need to run a new installation using 'installplg' or reboot your system after your changes.

I figured that was the case - but there were no libraries listed that matched the extensions that I had to enable.

 

As I said I've hit a wall with my knowledge of php tinkering.

 

It could be that newznab is also installing libraries which may conflict with the ones used by Dynamix.

 

One interesting point to keep in mind is the sequence in which plugins are installed, this is in alphabetic order ... so

 

dynamix - newznab

 

or

 

newznab - simplefeatures

 

This may make a difference, since the last installation overwrites the first one!

I think what I'll have to do is try a completely clean install - starting with dynamics and then add other plugins one at a time and see if that makes any difference.

 

Not sure it will help the zlib issue though - zlib was definitely installed, but running a simple php page with phpInfo said that it wasn't

Hi Bonienl, I have found a problem with the webserver. My first two shares disappear from the Shares administration page when the plug-in is installed. They work fine with the stock GUI or with your webgui with the stock webserver.

 

The issue is probably caused by the fact that my first share has an apostrophe (') in it. It is called Aaaaaa's storage. The next one is called Apps and it is also not displayed. The third one is called Jjjjjj's storage and it is displayed, but the link doesn't work properly. I am just guessing but I think the stock webserver must handle apostrophes differently to your webserver. I think all of the first three shares get garbled together in the page source because of the 's... the first one breaks it and the second one fixes it. I can probably fix it by changing the names of my shares... no problem really. I thought you would like to know about it though.

 

I say "probably fix it" because I don't want to try right now as I am in the middle of repairing a drive and just want to let my server do its thing.

 

Cheers,

 

Jason

  • Author

Hi Bonienl, I have found a problem with the webserver. My first two shares disappear from the Shares administration page when the plug-in is installed. They work fine with the stock GUI or with your webgui with the stock webserver.

 

The issue is probably caused by the fact that my first share has an apostrophe (') in it. It is called Aaaaaa's storage. The next one is called Apps and it is also not displayed. The third one is called Jjjjjj's storage and it is displayed, but the link doesn't work properly. I am just guessing but I think the stock webserver must handle apostrophes differently to your webserver. I think all of the first three shares get garbled together in the page source because of the 's... the first one breaks it and the second one fixes it. I can probably fix it by changing the names of my shares... no problem really. I thought you would like to know about it though.

 

I say "probably fix it" because I don't want to try right now as I am in the middle of repairing a drive and just want to let my server do its thing.

 

Cheers,

 

Jason

 

Do you have the web server plugin installed or only the webGui ?

 

Thanks for testing.

Both. After it happened I started in safe mode and added plugins manually. Dynamix webgui didn't cause the problem. The webserver did, once installed.

 

However... setting webserver to disabled did NOT restore visibility to the shares.

 

I can't reboot right now to test more as the NAS is streaming Dora the Explorer to my kids ;)

NAS is streaming Dora the Explorer to my kids ;)

 

Mine too!

  • Author

Both. After it happened I started in safe mode and added plugins manually. Dynamix webgui didn't cause the problem. The webserver did, once installed.

 

However... setting webserver to disabled did NOT restore visibility to the shares.

 

I can't reboot right now to test more as the NAS is streaming Dora the Explorer to my kids ;)

 

Together with the web server plugin a newer version of PHP is installed. Stock installation uses version 5.2 (obsolete) while web server installs 5.3.27 (the latest which can run on the system).

 

I suspect the issue is coming from here, the newer version is much stricter in programming syntax (i.e. sloppy programming is punished).

 

Can you go to settings -> network services -> web server -> log files

 

Do you have any PHP errors ?

 

That is a blank file. Empty. As Dora would say, nada.

 

What may be interesting is the page source of the Shares page. The page source itself actually includes references to the "missing" shares, but they do not display. I assume PHP is mishandling apostrophes, but in a way that generates unintended HTML output rather than generating a PHP error. Anyway it will make more sense to you.

 

Here is the segment of page source:

 

<tr class="tr_row1">
  <td><a href='#' class='info' onClick='return false'>
  <img src='/plugins/webGui/images/green-on.png' class='icon'><span>
  <img src='/plugins/webGui/images/green-on.png' class='icon'>All files on array<br>
  <img src='/plugins/webGui/images/yellow-on.png' class='icon'>Cache contains files<br>
  </span></a><a href="Shares/Share?name=Anas+storage%5D%0Aname%3D%22Anas+storage%0AnameOrig%3DAnas+storage%22%0Acomment%3D%22%22%0Aallocator%3D%22highwater%22%0AsplitLevel%3D%22%22%0Afloor%3D%220%22%0Ainclude%3D%22disk5%22%0Aexclude%3D%22%22%0AuseCache%3D%22no%22%0Acolor%3D%22green-on%22%0Afree%3D%22518238736%22%0Asize%3D%220%22%0A%5BApps%5D%0Aname%3D%22Apps%22%0AnameOrig%3D%22Apps%22%0Acomment%3D%22%22%0Aallocator%3D%22highwater%22%0AsplitLevel%3D%22%22%0Afloor%3D%220%22%0Ainclude%3D%22%22%0Aexclude%3D%22%22%0AuseCache%3D%22only%22%0Acolor%3D%22yellow-on%22%0Afree%3D%22680026208%22%0Asize%3D%220%22%0A%5BJasons+storage">Jason's storage</a></td>
  <td></td>
<td><a href="/update.htm?cmd=/usr/local/emhttp/plugins/webGui/scripts/share_size 'Anas storage]
name="Anas storage
nameOrig=Anas storage"
comment=""
allocator="highwater"
splitLevel=""
floor="0"
include="disk5"
exclude=""
useCache="no"
color="green-on"
free="518238736"
size="0"
[Apps]
name="Apps"
nameOrig="Apps"
comment=""
allocator="highwater"
splitLevel=""
floor="0"
include=""
exclude=""
useCache="only"
color="yellow-on"
free="680026208"
size="0"
[Jasons storage' /var/local/emhttp/plugins/webGui/'Anas storage]
name="Anas storage
nameOrig=Anas storage"
comment=""
allocator="highwater"
splitLevel=""
floor="0"
include="disk5"
exclude=""
useCache="no"
color="green-on"
free="518238736"
size="0"
[Apps]
name="Apps"
nameOrig="Apps"
comment=""
allocator="highwater"
splitLevel=""
floor="0"
include=""
exclude=""
useCache="only"
color="yellow-on"
free="680026208"
size="0"
[Jasons storage.ssz'&runCmd=Start" target="progressFrame">Compute...</a></td>
  <td>1.15 TB</td>
  <td><a href="Shares/Browse?dir=/mnt/user/Jason%27s+storage"><img src="/plugins/webGui/images/explore.png" title="Browse /mnt/user/Jason%27s+storage"></a></td>
  </tr>
<tr class="tr_row0">
  <td><a href='#' class='info' onClick='return false'>
  <img src='/plugins/webGui/images/green-on.png' class='icon'><span>
  <img src='/plugins/webGui/images/green-on.png' class='icon'>All files on array<br>
  <img src='/plugins/webGui/images/yellow-on.png' class='icon'>Cache contains files<br>
  </span></a><a href="Shares/Share?name=Media">Media</a></td>

 

Let me know if you want the whole page source instead. Where it refers to "Anas storage"... that is a share called "Ana's storage". Same for "Jason's storage". "Jason's storage" is displayed but it links to "Ana's storage" settings. "Media" works as it should.

 

I suspect your PHP is picking up "Ana's storage" and processing the ' at the line where it outputs

 

<a href="/update.htm?cmd=/usr/local/emhttp/plugins/webGui/scripts/share_size

 

Then when it hits the same line again for "Jason's storage", it closes it up again and continues on.

 

I would guess that if you created three new shares, called AAA'A, AAAB, and AAB'A you could reproduce the problem.

  • Author

Thanks for the in-depth info  :)

 

With the new PHP version installed, it is not even possible to create a share which has an apostrophe in its name. The edit page isn't updated properly, but in the background the share config file is created.

 

Definitely PHP related, this requires some digging !

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.