httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Res <>
Subject Re: [users@httpd] mysql based authentication
Date Thu, 12 Jun 2008 03:55:15 GMT
On Wed, 11 Jun 2008, Joseph Simmons wrote:

> I'm setting up a site that will have some access controls. I know that
> user credentials can be held in a .htpasswd file, however I would like
> to use a database, specifically a MySQL database, to hold user
> credentials.
> Is it possible to just setup a .htaccess that tells Apache to use a
> database or are additional things needed, like a 3rd party module?
> I have access to apache 1.3.37 and 2.2.8 .

It is not possible via .htaccess, you require the information in 
httpd.conf (or some config file included from it)

With 2.2.8 you configure Apache with:  --with-mysql
and use the DBDriver mysql

If you want a fast 1,2,3 example of how to use MySQL auth see
Then you need to look at apache web site for detailed information on all
possible options.


I read usenet and lists in pine. But m$ outlook, thunderbird and gmail
often use html span/whatever for quotes, makes it hard to tell who said
what, so I dont try. If I ignore you, thats why! Use a compliant mailer.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message