httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Khine <nor...@khine.net>
Subject [users@httpd] mod_auth_mysql for apache 2.2.6 - error on restart: DBD: No driver for mysql
Date Mon, 29 Oct 2007 20:42:02 GMT
Hello,
Following an upgrade to 2.2.6 from 2.0 I find myself that I can no
longer authenticate against MySQL database.

Following some docs and forums, I have done this so far in my conf file:

#########

....

#Database Management

#Use the MySQL driver
DBDriver mysql
#
##Connection string: database name and login credentials
DBDParams "dbname=authdbm user=user@domain password=xxx"
#
##Parameters for Connection Pool Management
DBDMin  1
DBDKeep 2
DBDMax  10
DBDExptime 60
#
#Authentication Section
<Directory /var/www/www.domain.com/cgi-bin/>
#
      #mod_auth configuration for authn_dbd
      AuthType Basic
      AuthName "My Server"
      AuthBasicProvider dbd

      #authz configuration
      Require valid-user

      #SQL query to verify a user
      #(note: DBD drivers recognise both stdio-like %s and native syntax)
      AuthDBDUserPWQuery "select password from users where username = %s"
</Directory>

#########

Then when I load the protected page I get an error when I try to restart
the server.

DBD: No driver for mysql

I have emerged mod_auth_mysql-3.0.0-r2 on gentoo


What am I doing wrong?

Cheers

Norman

-- 
Norman Khine


%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) 
for c in ",adym,*)&uzq^zqf" ] )


---------------------------------------------------------------------
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


Mime
View raw message