The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    446
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  2. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    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
     
  3. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    .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:
    61
    Likes Received:
    0
    Trophy Points:
    6
    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:
    711
    Likes Received:
    3
    Trophy Points:
    18
    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:
    1
    i have the same problem!

    anyone figure out a solution?

    thanks.

    -zac
     
Loading...

Share This Page