.htpasswd Access Error

Discussion in 'Troubleshooting' started by Robyn, Nov 16, 2003.

  1. Robyn

    Robyn Guest

    Hi, can someone please help!

    I've had amember free version up and running for quite a while, but since I moved servers a week ago, I get an error message for all recordable actions (signup, renew/upgrade, save changes, etc.):

    Cannot open /home/yourinn/public_html/amember/data/.htpasswd for write. Make directory /home/yourinn/public_html/amember/data and this file writeable for PHP scripts.

    I have tried CHMOD'ing the data directory and the .htpasswd file to 755 (among others) and still can't get the access I need. Does anyone know where else I should be looking to rectify this error? Thanks in advance.

    Robyn.
  2. Lionel

    Lionel Guest

    had the same problem. It turn out to be that both htpassord and htpassword_secure were activated.
  3. alex-adm

    alex-adm Guest

    go to specified files and chmod them 666.
    after that, click aMember CP -> Rebuild Db
  4. Phoenix

    Phoenix Guest

    Same problem

    My aMemberPro install was working well, I thought. Then for some reason I started getting this same error when signing up or updating users. I tried to chmod .htaccess and rebuild the db and I get the same error rebuilding the db.

    Any suggestions?
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please be careful - if chmod is really made, this error may not happen.
    May be your ftp client displays you wrong info for chmod, try to use webhosting control panel file manager to chmod files.
    it must be
    /amember/data/.htpasswd - 666
    /amember/data/.htgroup - 666
  6. Phoenix

    Phoenix Guest

    I'm not using a ftp client, I have the server here and can work on it directly. This is extremely puzzling because everything was working fine.

    When I pico /data/.htaccess here is what is in the file:

    <Limit GET POST>
    deny from all
    </Limit>
  7. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It is nice that you can work on the server.
    Telnet/ssh to server, cd to amember/data/ folder, then execute the following command:
    ls -al
    then paste output here.
  8. Phoenix

    Phoenix Guest

    Hi Alex

    drwxrwxrwx 2 greek200 psacln 4096 Jan 25 20:01 .
    drwxrwxrwx 10 greek200 psacln 4096 Jan 26 06:26 ..
    -rwxrwxrwx 1 root root 1 Jan 26 07:11 .htaccess
    -rw-rw-rw- 1 greek200 psacln 73 Jan 25 14:58 .htgroup
    -rwxrwxrwx 1 root root 0 Jan 25 20:01 .htgroup
    -rw-r--r-- 1 greek200 psacln 159 Jan 25 14:58 .htpasswd
  9. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    As you can see files .htpasswd and .htgroup are not writeable.

    Staying in amember/data/ folder, please execute the following command:
    chmod 666 .htgroup .htpasswd
  10. Phoenix

    Phoenix Guest

    All's well - you're the man!

    Thanks,

    Sonny

Share This Page