configuring mod_auth_mysql Db

Discussion in 'Installation' started by hitentertainment, Apr 6, 2009.

  1. hitentertainment

    hitentertainment New Member

    Joined:
    Apr 4, 2009
    Messages:
    6
    When I installed amember on my site, it set up properly to my admin page. However I'm getting this other option which I have no clue about.

    Please configure 'mod_auth_mysql' plugin at aMember CP -> Setup -> mod_auth_mysql

    So when I got to that specific page I get this

    mod_auth_mysql plugin

    This plugin will maintain table of active members for mod_auth_mysql
    Apache module ( http://www.diegonet.com/support/mod_auth_mysql.shtml ).

    INSTALLATION
    1. Please create users table as described in the mod_auth_mysql manual.

    CREATE TABLE user_info (
    username CHAR(30) NOT NULL,
    passwd CHAR(20) NOT NULL,
    groups CHAR(10),
    PRIMARY KEY (user)
    );


    2. Enable this plugin at aMember CP -> Setup -> Plugins
    3. Go to aMember CP -> Setup -> mod_auth_mysql and configure this plugin.
    In your .htaccess files you can use the following lines:


    to allow access for all active customers

    Require valid-user



    to allow access for customers of products #1 and/or product #3

    Require group PRODUCT_1 PRODUCT_3

    With this code, only customers who have active subscription to
    membership types #1 and/or #3 will be allowed to enter into directory.
    You can always see actual product numbers at aMember CP -> Edit Products.


    You may also want to add line like:

    ErrorDocument 401 /401.htm

    to show page http://www.yoursite.com/401.htm for unauthorized
    customer and redirect them to signup page.



    I don't know if this is from my web server end, or I have to configure the script in php info. Either way, I dont know about this.

    Can anyone help

Share This Page