termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

[Bug]: Lighttpd -webserver fails to start, with its authentication-module

Open 2f2a opened this issue 6 months ago • 0 comments

Problem description

Hi.

The Lighttpd -webserver fails to start, if its authentication-module ("mod_authn_file") are requested.

And for another package (another webserver), "busybox httpd -m" (to make encrypted keys) doesn't work (and to make use copies from other system doesn't work neither -just plane-text in this case, and none for "Lighttpd". Dono how Apache or Nginx with similar modules work with Termux, but saw in this Issue-tracking system, there was alot of issues?

Also, there exist a package called "lighttpd-static", what it does, I dono. Cant be installed, because it depends on a version of a none existing "lighttpd".

What steps will reproduce the bug?

Ehm, just try, to add (to config):

server.modules += ("mod_auth", "mod_authn_file")
auth.backend` = "plain"
auth.backend.plain.userfile` = "/data/data/com.termux/files/home/light_http/lighttpd.user"  # insecure location; temporary; FIX

Then Lighttpd fails with message:

2024-08-19 01:53:15: (../src/src/plugin.c.221) dlopen() failed for: /data/data/com.termux/files/usr/lib/lighttpd/mod_authn_file.so dlopen failed: cannot locate symbol "http_auth_backend_set" referenced by "/data/data/com.termux/files/usr/lib/lighttpd/mod_authn_file.so"...
2024-08-19 01:53:15: (../src/src/server.c.1649) loading plugins finally failed

What is the expected behavior?

To not crash.

System information

LinageOS 18 -a11, on an old Nexus7, output of "termux-info":

Termux Variables:
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=2262
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://ftp.agdsn.de/termux/termux-main stable main
Updatable packages:
command-not-found/stable 2.4.0-38 arm [upgradable from: 2.4.0-37]
nano/stable 8.1 arm [upgradable from: 8.0]
termux-tools version:
1.43.3
Android version:
11
Kernel build information:
Linux localhost 3.4.113-g13a3a4aba5b #1 SMP PREEMPT Wed Mar 6 18:55:39 UTC 2024 armv7l Android
Device manufacturer:
asus
Device model:
Nexus 7
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

2f2a avatar Aug 19 '24 00:08 2f2a