PDA

Bekijk de volledige versie : Lighttpd with authorization: mod_auth.so not loaded



Pim Borst
05-06-2007, 08:40
Hello,

When I install lighttpd (lighttpd-1.4.15 (ssl), Build-Date: May 22 2007 14:01:18) and enable authorization I get the following error:


Starting web server: lighttpd
2007-06-05 09:26:22: (plugin.c.165) dlopen() failed for: /opt/lib/lighttpd/mod_auth.so File not found
2007-06-05 09:26:22: (server.c.594) loading plugins finally failed

Does anybody know what's wrong?
The only things I changed in the stock lighttpd.conf are enabling the module and adding:


auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/opt/etc/lighttpd/lighttpd.user"
auth.require = ( "/" =>
(
"method" => "digest",
"realm" => "ABC",
"require" => "valid-user"
)
)

Thanks,
Pim.

greengreen
05-06-2007, 16:44
Try this ;)
http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,456.msg2660/#msg2660

Pim Borst
07-06-2007, 08:13
Try this ;)
http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,456.msg2660/#msg2660

Thanks Greengreen, but I found out the problem was not in the .conf file.

It turned out that the authorization module mod_auth.so depends on openldap-libs, even when you don't enable LDAP authorization.
After installing that package everything worked fine.

Regards,
Pim Borst.

bigphantom
27-07-2008, 22:53
Thanks Greengreen, but I found out the problem was not in the .conf file.

It turned out that the authorization module mod_auth.so depends on openldap-libs, even when you don't enable LDAP authorization.
After installing that package everything worked fine.

Regards,
Pim Borst.

thanks for the name of the missing part
it solved my problem, bu t i had to force the install



## to solve the error
ipkg install openldap-libs

Installing openldap-libs (2.3.43-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/openldap-libs_2.3.43-1_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
openldap-libs_2.3.43 100% |************************************************* ***************************| 247 KB 00:00 ETA
Installing libdb (4.2.52-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libdb_4.2.52-3_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
libdb_4.2.52-3_mipse 100% |************************************************* ***************************| 383 KB 00:00 ETA
ipkg: interrupted. writing out status database
Nothing to be done
ipkg: gzip aborted

##retry
[admin@asusbox root]$ ipkg install -force-depends openldap-libs
Installing openldap-libs (2.3.43-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/openldap-libs_2.3.43-1_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
openldap-libs_2.3.43 100% |************************************************* ***************************| 247 KB 00:00 ETA
Installing libdb (4.2.52-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libdb_4.2.52-3_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
libdb_4.2.52-3_mipse 100% |************************************************* ***************************| 383 KB 00:00 ETA
Installing gdbm (1.8.3-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/gdbm_1.8.3-2_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
gdbm_1.8.3-2_mipsel. 100% |************************************************* ***************************| 15867 00:00 ETA
Installing cyrus-sasl-libs (2.1.22-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/cyrus-sasl-libs_2.1.22-2_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
cyrus-sasl-libs_2.1. 100% |************************************************* ***************************| 111 KB 00:00 ETA
Configuring cyrus-sasl-libs
Configuring gdbm
Configuring libdb
Configuring openldap-libs
Successfully terminated.