Apache和mod_dbd在“get_driver”中获取“DBD:mod_dbd与APR不兼容”

为了实现基本的身份validation与Apache服务器和插件的代理部分工作很好,但是当我尝试瓶坯请求,假设触发mod_authn_dbd及其依赖项的即时通讯得到这个错误:

[Sat Sep 03 17:42:38 2011] [error] (OS 126)The specified module could not be found. : DBD: failed to initialise [Sat Sep 03 17:42:38 2011] [error] [client 192.168.16.2] Failed to acquire database connection to look up user 'admin' 

这里是我的configuration:

 <VirtualHost 133.133.16.2:8090> ServerAdmin ed_mann@dont_spam_me.ok DBDriver mysql DBDParams "host=localhost port=3306 dbname=test user=root pass=root" DBDMin 1 DBDKeep 8 DBDMax 20 DBDExptime 300 <Proxy http://localhost:8080/jsp-examples/> Order Allow,Deny Allow from all AuthType basic AuthName "private area" AuthBasicProvider dbd # core authorization configuration Require valid-user # mod_authn_dbd SQL query to authenticate a user AuthDBDUserPWQuery \ "SELECT password FROM users WHERE name = %s" </Proxy> RewriteEngine On RewriteRule ^(.*)$ http://localhost:8080/jsp-examples/$1 [P] DocumentRoot "D:/cpp/Projects/Game/workspace" ServerName localhost ErrorLog logs/dev30-error.log CustomLog logs/dev30-access.log common <Directory ""D:/cpp/Projects/Game/workspace"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> </VirtualHost> 

什么即时做错了? MySQL工作(phpMyadmin工作很好)和Apache代理工作很好。

如果你使用64位窗口和64位的mysql,试着用32位版本更改mysql。 或者你可以把mysql 5.0 32位的libmysql.dll放在apache的bin目录下。 可以从mysql.org档案获取mysql 5.0作为zip文件。