btw, after such diagnosis efforts, I really feel the logs need to be improved. It's so misleading right now. Look at the *only* error message,

[Thu May 05 18:12:29.915467 2016] [authn_dbm:error] [pid 9107:tid 140031532377856] (20019)DSO load failed: [client] AH01754: could not open dbm (type DB) auth file: /home/tixu/httpd-2.4.20-bin/dbm-auth-file

It tells that the auth file cannot be opened. That's all the confusion...

But it has nothing to do with the auth file. The error is caused by the failure of loading the DSO... At least, httpd should print out the DSO file it tried to load!


On Fri, May 13, 2016 at 4:22 PM, Tianyin Xu <> wrote:
Hi Yann and Luca, 

Yes, that fixes the problem...!!..

$ ls lib/apr-util-1/  apr_dbm_db.a

It's hard to believe --with-berkeley-db is even not present in "./configure --help"! 

@Luca, you are the maintainer of the httpd docs? The page of mod_authn_dbm really needs some more work.:-p


On Fri, May 13, 2016 at 3:41 PM, Luca Toscano <> wrote:
Hi Yann,

2016-05-13 22:35 GMT+02:00 Yann Ylavic <>:
On Thu, May 12, 2016 at 10:22 PM, Tianyin Xu <> wrote:
> I'm using all the latest versions of httpd, apr, and apr-util:
> httpd-2.4.20
> apr-1.5.2
> apr-util-1.5.4
> and I build the binaries using,
> $ ./configure --with-included-apr --enable-load-all-modules
> It seems I failed to build "apr-util-1/"? Actually I don't
> have the "apr-util-1" directory at all.

You may need to install the package libdb-dev (or libdb-devel) on your
system and then use --with-berkeley-db in the ./configure above.

Quick question: I didn't find the --with-berkeley-db option executing httpd's ./configure --help, but I found it only with the APR's one. How does the configure work when you use "--with-included-apr" ? Just to have an idea about how to fix the docs :)




Tianyin XU,