Author Topic: lighttpd.webui from the LS-WXL firmware 1.74  (Read 2069 times)

eugrus

  • Calf
  • *
  • Posts: 9
lighttpd.webui from the LS-WXL firmware 1.74
« on: January 11, 2019, 08:33:51 AM »
Would someone please share the lighttpd.webui script file from the LS-WXL firmware 1.74!

/root/lighttpd.webui
/lighttpd.webui
/etc/lighttpd/conf.d/lighttpd.webui
/etc/init.d/lighttpd.webui

It got messed up in my file system: I am getting the "Too many levels of symbolic links" error when trying to access it, hence the web interface is not working.

oxygen8

  • The Oxy-genuine article
  • El Toro
  • ****
  • Posts: 417
  • Giving you some breathing space.
Re: lighttpd.webui from the LS-WXL firmware 1.74
« Reply #1 on: January 11, 2019, 09:29:55 AM »
flashing the firmware will repair this files

1000001101000

  • Debian Wizard
  • Big Bull
  • *****
  • Posts: 1128
  • There's no problem so bad you cannot make it worse
Re: lighttpd.webui from the LS-WXL firmware 1.74
« Reply #2 on: January 11, 2019, 09:36:03 AM »
100% agree with re-installing firmware to fix.

That said, you can unpack the rootfs from the firmware updater using the process outlined here:
https://buffalonas.miraheze.org/wiki/Extract_Boot_Files_from_Stock_Firmware

Specifically you can unzip hddrootfs.img and untar the archive inside (or just browse it with 7zip). /usr/sbin/lighttpd.webui could be what you're after.


eugrus

  • Calf
  • *
  • Posts: 9
Re: lighttpd.webui from the LS-WXL firmware 1.74
« Reply #3 on: January 15, 2019, 05:39:43 AM »
Ok, thanks! It looks like now I have the executable file (extracted from the fw image).

But it looks like I am also missing the config.

Code: [Select]
root@LS-WXLBB0:~# /etc/init.d/lighttpd.webui
2019-01-15 12:35:46: (server.c.614) No configuration available. Try using -f option.
root@LS-WXLBB0:~# /etc/init.d/lighttpd.webui -f /etc/lighttpd/conf.d/webaxs_mobile.conf
2019-01-15 12:36:04: (configfile.c.1240) a default document-root has to be set
2019-01-15 12:36:04: (server.c.646) setting default values failed

What is the right config file for the web interface and what should be in there?

eugrus

  • Calf
  • *
  • Posts: 9
Re: lighttpd.webui from the LS-WXL firmware 1.74
« Reply #4 on: January 15, 2019, 05:51:57 AM »
Copied /etc/init.d/lighttpd.webui from the image, but it looks like something else is also messed up:

Code: [Select]
root@LS-WXLBB0:~# /etc/init.d/lighttpd.webui
Terminated
root@LS-WXLBB0:~# /etc/init.d/lighttpd.webui start
2019-01-15 12:47:37: (server.c.614) No configuration available. Try using -f option.
root@LS-WXLBB0:~# /etc/init.d/lighttpd.webui start -f /etc/lighttpd/buffalo-web.conf
2019-01-15 12:48:18: (plugin.c.169) dlopen() failed for: /usr/lib/lighttpd/mod_indexfile.so /usr/lib/lighttpd/mod_indexfile.so: cannot open shared object file: No such file or directory
2019-01-15 12:48:18: (server.c.676) loading plugins finally failed
root@LS-WXLBB0:~# /etc/init.d/lighttpd.webui start -f /etc/lighttpd/lighttpd.conf
cat: can't open '/etc/melco/lighttpd.d/*.conf': No such file or directory
2019-01-15 12:48:49: (configfile.c.1248) base-docroot doesn't exist: /htdocs
2019-01-15 12:48:49: (server.c.646) setting default values failed

Still not willing to reinstall the firmware as long the actual SMB shares are functioning, but will try copying some more stuff from the image.

1000001101000

  • Debian Wizard
  • Big Bull
  • *****
  • Posts: 1128
  • There's no problem so bad you cannot make it worse
Re: lighttpd.webui from the LS-WXL firmware 1.74
« Reply #5 on: January 15, 2019, 12:43:32 PM »
You can try to find any other missing files the same way though some may be generated on the fly by the firmware which could complicate things.

You seem to be past the point of just undoing whatever you did to get to this point, reinstalling the firmware will doubtlessly a less painful way to fix it.

That said, I learned a lot doing the same time of thing once upon a time. You probably won’t find much help but if you’re having fun go for it!