in reply to Apache authentication with Mysql

If you're using mod_perl, you can setup a PerlAuthenHandler in place of AuthBasic. You could then write an authentication handler that fires off a db query to check for a valid logon.