You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Griscom <gr...@suitable.com> on 2006/10/28 15:08:28 UTC

[users@httpd] mod_dbd on OS X problem

I'm installing Apache 2.2.3 under OS X 10.4.8 on a PPC-based machine. 
I have some constraints on file placement, so I'm compiling it using 
instructions at 
<http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-os-x/>. 
The instructions make sense, and the compile seems to go fine. 
However, when I try to start httpd, I get the following error message 
pair (repeatedly) in error.log:

>[Sat Oct 28 08:57:29 2006] [crit] (70023)This function has not been 
>implemented on this platform: DBD: driver for [DBDriver unset] not 
>available
>[Sat Oct 28 08:57:29 2006] [crit] (70023)This function has not been 
>implemented on this platform: DBD: failed to initialise

After a whole lotta searching, I've deduced the basic problem: 
mod_dbd ("Manages SQL database connections") is complaining that it 
hasn't had its driver set using DBDriver. But! I didn't ask to use 
mod_dbd, and (I think) don't want to use mod_dbd. My only 
authentication is simple stuff like

>AuthUserFile /Library/Apache2/conf/webusers2
>AuthGroupFile /Library/Apache2/conf/webgroups2
>AuthName "My Development Server 2"
>AuthType Basic
>require valid-user

which (I think) shouldn't use SQL at all. I tried commenting out all 
my authentication, but I still get one pair of error messages. I then 
tried inserting "DBDriver mysql", since I have mysql installed 
(compiled with shared libraries as described on the above-referenced 
page), but then get a "DBD: No driver for mysql" printed to stderr. 
Same problem if I try "DBDriver sqlite".

So, my questions:

- Must I provide Apache 2.2 with a SQL driver for basic 
authentication, or even for authentication-free use?

- How can I get a list of the SQL drivers available to Apache?

- How can I give Apache 2.2 what it wants?

- Should I instead be trying the 2.0 branch, since I don't need 
most/all of the 2.2 enhancements (cache, authentication, etc)?


Thanks,
Dan

-- 
Daniel T. Griscom             griscom@suitable.com
Suitable Systems              http://www.suitable.com/
1 Centre Street, Suite 204    (781) 665-0053
Wakefield, MA  01880-2400

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_dbd on OS X problem

Posted by Daniel Griscom <gr...@suitable.com>.
At 4:52 PM +0100 10/28/06, Nick Kew wrote:
>On Sat, 2006-10-28 at 09:08 -0400, Daniel Griscom wrote:
>
>>  >[Sat Oct 28 08:57:29 2006] [crit] (70023)This function has not been
>>  >implemented on this platform: DBD: driver for [DBDriver unset] not
>>  >available
>>  >[Sat Oct 28 08:57:29 2006] [crit] (70023)This function has not been
>>  >implemented on this platform: DBD: failed to initialise
>
>You can ignore those messages if you don't want dbd.

Oh, I'd assumed these "[crit]" errors meant Apache hadn't even started up.

>But the best solution if you have no need of an SQL backend
>is just don't load mod_dbd in the first place.

Well, THAT worked. I just put a "#" in front of the line "LoadModule 
dbd_module modules/mod_dbd.so", and the errors are gone. Most 
excellent. (I'd thought that mod_dbd might be intertwined with the 
abundance of other modules, but nope!)

>Yes, it's a bug that you get those error messages when you
>didn't think you had configured dbd at all.

I'll second that. Cryptic error messages emitted by code that 
shouldn't even be executing.

>Authentication is just one thing you do with dbd.
>And it's way OTT to use an SQL backend for that,
>if you don't have an SQL application somewhere too!

Well, I am using mySQL, but in the PHP-based MantisBT, so (I think) 
Apache won't be involved.


Thanks for the help,
Dan

-- 
Daniel T. Griscom             griscom@suitable.com
Suitable Systems              http://www.suitable.com/
1 Centre Street, Suite 204    (781) 665-0053
Wakefield, MA  01880-2400

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_dbd on OS X problem

Posted by Nick Kew <ni...@webthing.com>.
On Sat, 2006-10-28 at 09:08 -0400, Daniel Griscom wrote:

> >[Sat Oct 28 08:57:29 2006] [crit] (70023)This function has not been 
> >implemented on this platform: DBD: driver for [DBDriver unset] not 
> >available
> >[Sat Oct 28 08:57:29 2006] [crit] (70023)This function has not been 
> >implemented on this platform: DBD: failed to initialise

You can ignore those messages if you don't want dbd.

But the best solution if you have no need of an SQL backend
is just don't load mod_dbd in the first place.

Yes, it's a bug that you get those error messages when you
didn't think you had configured dbd at all.

> 
> After a whole lotta searching, I've deduced the basic problem: 
> mod_dbd ("Manages SQL database connections") is complaining that it 
> hasn't had its driver set using DBDriver. But! I didn't ask to use 
> mod_dbd, and (I think) don't want to use mod_dbd. My only 
> authentication is simple stuff like

Authentication is just one thing you do with dbd.
And it's way OTT to use an SQL backend for that,
if you don't have an SQL application somewhere too!

-- 
Nick Kew


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org