Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mod_auth_mysql and htaccess

Discussion in 'General Discussion' started by upsforum, Jan 29, 2007.

  1. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    468
    Likes Received:
    0
    Trophy Points:
    166
    Dear,

    I have installed the mod_auth_mysql and it right and work, but now the htaccess directory protection standard it not work, I set a directory in cpanel with htpasswd but it not work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    773
    Likes Received:
    4
    Trophy Points:
    318
    Location:
    N.W. Iowa
    I believe there is a conflict with the Apache Module Passthrough Authentication that Cpanel uses .... if I recall. We had a similar problem a while back when using the auth_mysql and had to remove it.

    Mickalo
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    715
    Likes Received:
    5
    Trophy Points:
    243
    .htaccess protection doesn't use mod_auth_passthrough, it uses basic auth, putting the auth info in .htpasswd file. mod_auth_mysql apparently takes that over and since the user/pass is no in the db it can't authenticate.

    I'd recommend properly configuring mod_auth_mysql to not interfere with .htaccess basic auth.
     
    #3 cPDan, Jan 22, 2008
    Last edited: Apr 9, 2008
  4. aeroweb

    aeroweb Well-Known Member

    Joined:
    Jun 4, 2004
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    156
    What is the best way to install mod_auth_mysql on cpanel? Do we still have to build it manually for apache or is there an automated cpanel option? I didn't see an option in easy apache but I did find a cpanel uninstall script for it:

    Code:
    /scripts/nomodauthmysql
    I figure if there is an uninstall script there must be an install script too somewhere? I was hoping there was something built into cpanel to install mod_auth_mysql so that I wouldn't have to do it manually after every automatic cpanel update.
     
  5. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    715
    Likes Received:
    5
    Trophy Points:
    243
    Go into easyapache via WHM, click on "Help", click on 'Cpanel::Easy Framework POD'

    and/or participate in:

    http://forums.cpanel.net/showthread.php?t=74851

    and it just might get added :)
     
  6. medicinefilms

    medicinefilms Registered

    Joined:
    Aug 10, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    i have the same problem!

    anyone figure out a solution?

    thanks.

    -zac
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice