problems with db185 authentication for apr 1.4.5 and apache 2.2.19 ?

Philip M. Gollucci pgollucci at
Tue Jul 26 22:19:33 UTC 2011

run httpd -X
and then use ktrace -i / kdump
then grep for NAMI and the name of your file

On 07/26/11 09:35, Jo Rhett wrote:
> I have a 6.3 system which I just upgraded to 8.2, and obviously recompiled all ports from scratch. I cleared out the ports DB entirely, cleared out /usr/local entirely except for etc/config files.  Every other port on the system recompiled fine, except for apache.  It works for everything except reading authentication files. I'd deeply appreciate any assistance you can give to solving this.
> For some reason I can't figure out, BDB authentication using the built-in db 1.85 no longer works.
> 	dbmmanage /path/to/file view/adduser/delete/etc works fine
> 	file /path/to/file
> 		/path/to/file: Berkeley DB 1.85 (Hash, version 2, native byte-order)
> Accessing from the web server always returns a 500 error with the following in the error log:
> 	(2)No such file or directory: could not open dbm (type default) auth file: /path/to/passwd.dat
> I've recompiled apr and apache with a variety of different options, and nothing works.  apr without any databases doesn't work. apr with BDB doesn't work, etc.  My options for apache have remained the same:
> 	APACHE_PORT=www/apache22
> 	WITH_DBM=bdb
> apr1$ make showconfig
> ===> The following configuration options are available for apr-ipv6-devrandom-db48-
>      THREADS=on "Enable Threads in apr"
>      IPV6=on "Enable IPV6 Support in apr"
>      BDB=off "Enable Berkley BDB support in apr-util"
>      GDBM=off "Enable GNU dbm support in apr-util"
>      LDAP=off "Enable LDAP support in apr-util"
>      MYSQL=off "Enable MySQL suport in apr-util"
>      NDBM=off "Enable NDBM support in apr-util"
>      PGSQL=off "Enable Postgresql suport in apr-util"
>      SQLITE=off "Enable SQLite3 support in apr-util"
>      DEVRANDOM=on "Use /dev/random or compatible in apr"
> ===> Use 'make config' to modify these settings
> apache22$ make showconfig
> ===> The following configuration options are available for apache-2.2.19:
>      THREADS=off "Enable threads support in APR"
>      MYSQL=off "Enable MySQL support for apr-dbd"
>      PGSQL=off "Enable PostgreSQL support for apr-dbd"
>      SQLITE=off "Enable SQLite support for apr-dbd"
>      IPV6=on "Enable IPv6 support"
>      BDB=on "Enable BerkeleyDB dbm"
>      AUTH_BASIC=on "Enable mod_auth_basic"
>      AUTH_DIGEST=on "Enable mod_auth_digest"
>      AUTHN_FILE=on "Enable mod_authn_file"
>      AUTHN_DBD=off "Enable mod_authn_dbd"
>      AUTHN_DBM=on "Enable mod_authn_dbm"
>      AUTHN_ANON=on "Enable mod_authn_anon"
>      AUTHN_DEFAULT=on "Enable mod_authn_default"
>      AUTHN_ALIAS=on "Enable mod_authn_alias"
>      AUTHZ_HOST=on "Enable mod_authz_host"
>      AUTHZ_GROUPFILE=on "Enable mod_authz_groupfile"
>      AUTHZ_USER=on "Enable mod_authz_user"
>      AUTHZ_DBM=on "Enable mod_authz_dbm"
>      AUTHZ_OWNER=on "Enable mod_authz_owner"
>      AUTHZ_DEFAULT=on "Enable mod_authz_default"
>      CACHE=on "Enable mod_cache"
>      DISK_CACHE=on "Enable mod_disk_cache"
>      FILE_CACHE=on "Enable mod_file_cache"
>      MEM_CACHE=off "Enable mod_mem_cache"
>      DAV=on "Enable mod_dav"
>      DAV_FS=on "Enable mod_dav_fs"
>      BUCKETEER=off "Enable mod_bucketeer"
>      CASE_FILTER=off "Enable mod_case_filter"
>      CASE_FILTER_IN=off "Enable mod_case_filter_in"
>      EXT_FILTER=off "Enable mod_ext_filter"
>      LOG_FORENSIC=off "Enable mod_log_forensic"
>      OPTIONAL_HOOK_EXPORT=off "Enable mod_optional_hook_export"
>      OPTIONAL_HOOK_IMPORT=off "Enable mod_optional_hook_import"
>      OPTIONAL_FN_IMPORT=off "Enable mod_optional_fn_import"
>      OPTIONAL_FN_EXPORT=off "Enable mod_optional_fn_export"
>      LDAP=off "Enable mod_ldap"
>      AUTHNZ_LDAP=off "Enable mod_authnz_ldap"
>      ACTIONS=on "Enable mod_actions"
>      ALIAS=on "Enable mod_alias"
>      ASIS=on "Enable mod_asis"
>      AUTOINDEX=on "Enable mod_autoindex"
>      CERN_META=on "Enable mod_cern_meta"
>      CGI=on "Enable mod_cgi"
>      CHARSET_LITE=on "Enable mod_charset_lite"
>      DBD=off "Enable mod_dbd"
>      DEFLATE=on "Enable mod_deflate"
>      DIR=on "Enable mod_dir"
>      DUMPIO=on "Enable mod_dumpio"
>      ENV=on "Enable mod_env"
>      EXPIRES=on "Enable mod_expires"
>      HEADERS=on "Enable mod_headers"
>      IMAGEMAP=on "Enable mod_imagemap"
>      INCLUDE=on "Enable mod_include"
>      INFO=on "Enable mod_info"
>      LOG_CONFIG=on "Enable mod_log_config"
>      LOGIO=on "Enable mod_logio"
>      MIME=on "Enable mod_mime"
>      MIME_MAGIC=on "Enable mod_mime_magic"
>      NEGOTIATION=on "Enable mod_negotiation"
>      REWRITE=on "Enable mod_rewrite"
>      SETENVIF=on "Enable mod_setenvif"
>      SPELING=on "Enable mod_speling"
>      STATUS=on "Enable mod_status"
>      UNIQUE_ID=on "Enable mod_unique_id"
>      USERDIR=on "Enable mod_userdir"
>      USERTRACK=on "Enable mod_usertrack"
>      VHOST_ALIAS=on "Enable mod_vhost_alias"
>      FILTER=on "Enable mod_filter"
>      SUBSTITUTE=off "Enable mod_substitute"
>      VERSION=on "Enable mod_version"
>      PROXY=off "Enable mod_proxy"
>      PROXY_CONNECT=off "Enable mod_proxy_connect"
>      PATCH_PROXY_CONNECT=off "Patch proxy_connect SSL support"
>      PROXY_FTP=off "Enable mod_proxy_ftp"
>      PROXY_HTTP=off "Enable mod_proxy_http"
>      PROXY_AJP=off "Enable mod_proxy_ajp"
>      PROXY_BALANCER=off "Enable mod_proxy_balancer"
>      PROXY_SCGI=off "Enable mod_proxy_scgi"
>      SSL=on "Enable mod_ssl"
>      SUEXEC=off "Enable mod_suexec"
>      SUEXEC_RSRCLIMIT=off "SuEXEC rlimits based on login class"
>      REQTIMEOUT=on "Enable mod_reqtimeout"
>      CGID=off "Enable mod_cgid"
> ===> Use 'make config' to modify these settings
> As said above, I appreciate any assistance you can give.

1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at c: 703.336.9354
VP Infrastructure,                Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

More information about the freebsd-apache mailing list