www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Chong <je...@dbix.com.my>
Subject mod_auth-any/2809: AuthDBMUserFile - Apache complains 'File not found'
Date Fri, 07 Aug 1998 14:59:25 GMT

>Number:         2809
>Category:       mod_auth-any
>Synopsis:       AuthDBMUserFile - Apache complains 'File not found'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Aug  7 08:00:01 PDT 1998
>Originator:     jeffc@dbix.com.my
>Release:        1.3.1
FreeBSD 2.2.6
Apache complains about DBM file not found. 

The problem is not Apache. It is the gdbm library (1.7.3). Apache calls dbm_open
in gdbm which in turn adds the ".pag" and ".dir" extensions to the filename 
before opening the file. The perl script (dbmmanage) included will work with the
file because Perl calls the other function in gdbm (which is gdbm_open).
Compile Apache with mod_auth_dbm and try to access the file. The error_log
will show that Apache is not able to find the file.
1. Recompile gdbm library and comment out the ".pag" and ".dir" extensions.

2. Maybe Apache can call the actual function ( gdbm_open ) which gdbm itself

3. Make symbolic links to your dbm file eg.
    ln -s mydbmfile mydbmfile.dir
    ln -s mydbmfile mydbmfile.pag
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

View raw message