htpassword file showing blank???

Discussion in 'Setting-up protection' started by stallen, Jun 6, 2008.

  1. stallen

    stallen New Member

    Joined:
    Dec 17, 2005
    Messages:
    9
    Hi All,

    I am trying to get protection on my site working but am having some issues.
    Below is a conversation with my host provider support:

    Ryan: For this one, /www.mysite.com/web/content/demos/.htaccess Line 4 is referring to this location /mnt/target02/345709/www.mysite.com/web/content/amember/data/.htpasswd The htpassword file is empty. I am checking into the other one now.
    Stallen: Ok, thx.
    Ryan: Same with /www.mysite.com/web/content/downloads_full/.htaccess as well.
    Ryan: They are both referring to /mnt/target02/345709/www.mysite.com/web/content/amember/data/.htpasswd and that file is blank.

    As you can see the htpassword file is blank, shouldnt this be written to the same time that htaccess is created using the amember CP?

    Alexander (amember support) has been assisting with this and has been very helpful indeed. Excellent support. But due to the urgency of getting this sorted I need replies on my time zone if possible. Then I could stop bothering Alexander :)

    Any help would be appreciated.

    Thanks,

    Stallen
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Odd that it would be blank.
    Is the directory properly chmod 777?

    Can you use new_rewrite protection instead?

    David
  3. jimjwright

    jimjwright New Member

    Joined:
    Sep 12, 2007
    Messages:
    162
    Hello,

    I guess I would ask if the path is a valid path i.e.

    /mnt/target02/345709/www.mysite.com/web/content/amember/data/.htpasswd

    In particular is the "/mnt/target02/345709" correct. Maybe its normal if the filesystem is mounted but the entire path looks strange to me.

    Jimmy
  4. cneuk

    cneuk New Member

    Joined:
    Apr 16, 2008
    Messages:
    14
    Need Urgent Reply (No one is replying from your company)

    Hello,

    Is any one who can reply my question?


    Below is the warning in Error/Debug Link.

    <b>WARNING:</b> opendir(/http:/sitename/members/easy_typist/) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in line 280 of file /home/www/sitename/amember/admin/protect.php

    Note: For privacy where sitename is written its website name.

    Need Urgent reply

    Regards,
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    What were you doing that generated that error?
    Does front end user (signup, login, member.php, etc) work ok?
    Does admin work ok?

    Have you moved servers?
    Changed the directory name of Amember recently?
    Installed any new scripts?
    When did it last work, what changed since then?

    Does /amember/admin/protect.php exist? What are it's CHMOD settings?
    What are the CHMOD settings of your amember/admin directory?
  6. cneuk

    cneuk New Member

    Joined:
    Apr 16, 2008
    Messages:
    14
    Hello,

    I am getting protection error i can not enter in subscription page with same user name after login in memberarea.

    I have check with both protection ways
    1) htpasswd
    2) new_rewrite

    Any one can reply my question ?
  7. cneuk

    cneuk New Member

    Joined:
    Apr 16, 2008
    Messages:
    14
    Hello,

    I am using new Script Version: 3.1.0PRO . I have upgrade from version 3.09. & PHP Version 4.4.8.

    New error i got recently
    .htpasswd file is not configured for 'htpasswd_secure' plugin.

    waiting for urgent response
  8. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Top 10 Questions (asked previously)

    1.What were you doing that generated that error?
    2. Does front end user (signup, login, member.php, etc) work ok?
    3. Does admin work ok?

    4. Have you moved servers?
    5. Changed the directory name of Amember recently?
    6. Installed any new scripts?
    7. When did it last work, what changed since then?

    8. Does /amember/admin/protect.php exist? What are it's CHMOD settings?
    9. What are the CHMOD settings of your amember/admin directory?
    10. Do you actually read our responses :)
  9. cneuk

    cneuk New Member

    Joined:
    Apr 16, 2008
    Messages:
    14
    Hello,

    Thanks for your quick reply to me,

    1.What were you doing that generated that error?
    A1) When i login in Membership Area & click on "Your Subscriptions"
    Eample :
    http://www.sitename.com/amember/member.php
    After Login
    Your Subscriptions

    Basic Membership (Three Month Membership)
    I got error "Authentication required"! (I use same username & password which i enter for Membership Area).
    .htpasswd file is not configured for 'htpasswd_secure' plugin.

    2. Does front end user (signup, login, member.php, etc) work ok?
    A2) After login i am getting error, when i click on subscription. (Above Error)

    3. Does admin work ok?
    A3) Admin is fine but i cannot tick on new-rewrite enable Protection folders.

    4. Have you moved servers?
    A4) No i have not move.

    5. Changed the directory name of Amember recently?
    A5) No i dont change.

    6. Installed any new scripts?
    A6) I have recently install Pro 3.1 version script My previous version was Pro 3.09

    7. When did it last work, what changed since then?
    A7) I install new script then

    8. Does /amember/admin/protect.php exist? What are it's CHMOD settings?
    A8) File exist in admin folder, CHMOD = 644

    9. What are the CHMOD settings of your amember/admin directory?
    A9) CHMOD = 755

    10. Do you actually read our responses :)
    A10) I have read all responses related to "Setting Up Protection"

    Waiting for your urgent response,

    Thanks Best Regards,
  10. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    1. To get your site back up and going right away, have you tried to downgrade back to 3.09? That would be my first suggestion and then test the 3.1 code elsewhere on a test server.

    2. Can you run the tests for rewrite successfully (amember/tests/1.php) I would check your .htaccess in the root of your server to see if there is anything strange there with rewrite rules ,etc.

Share This Page