News:

RAID is not a replacement for a backup! Here's why.

Main Menu

lighttpd.webui from the LS-WXL firmware 1.74

Started by eugrus, January 11, 2019, 08:33:51 AM

Previous topic - Next topic

eugrus

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


1000001101000

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

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.

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

Copied /etc/init.d/lighttpd.webui from the image, but it looks like something else is also messed up:

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

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!

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 5: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default), StopForumSpam.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 222 (show)
Files included: 35 - 1354KB. (show)
Memory used: 1035KB.
Tokens: post-login.
Queries used: 19.

[Show Queries]