OK...I'm trying to learn this php stuff and setting this program up has been driving me nuts. I'm very familiar with html and I recognize a lot of the php script, but there's certain things I'm just not getting with this installation. I have amember installed on my site and I have the folder I want protected set up with CHMod @ 606 (which changes itself to 706 automatically for some reason). I have set up the accounts and products, but when I choose the product at signup, it never shows in my products. One question I have: I see it telling me to set up a .htaccess file in the folder I want protected. How do I set that file up? What page to I edit to have the program redirect me to the protected folder after logging in? Sorry...I know these are pretty basic questions, and I have looked around for answers to them, but can't seem to find any that speak in lamens terms (1st grade level I guess :lol: ). Any help would be appreciated. KC
Hi, Are you using the pro version or the free version? There is a manual that I downloaded, when I first started this. http://cgi-central.net/opened/html/index.html try this, it should help
In fact that manual has been updated and the new one is at http://www.cgi-centrl.net/amemberdocs/ On some of your questions. You don't need to chmod the protected folder - chmoding is nothing to do with protection. You need to decide what protection method you will use - see docs above - in order to protect te directory or directories. There is a sample file in the Admin CP somewhere, and also in the docs. You just need to upload that to the directory you want to protect. However do read the stuff about protection first - it may be that you will not choose to use .htaccess at all. Have you by any chance assigned negative price groups to the products? If so they will need to be viewed using the price group info at the end of the URL = like this: http://www.example.com/amember/signup.php?...?price_group=-1 If they are in price group -1 You don't need to edit any file. If you are using one of the PHP protection methods just link to the protected area and the login form will come up.
Can't seem to get that url to work. I've been reading the docs that came with the product and it says to set the chmod to 606. I did that and when signing in it would just give me a page saying I didn't have access. But you say I don't need to mess with the chmod...so I set it all back. Here's a new question: I have the amember folder in the root directory and the folder I want protected in the same root directory, but not in the same folder. Is one or the other supposed to be in one of these folders? I set the product (which is not set to a minus #...currently set to 0 while I get this figured out) to see the folder that is to be protected. I'm wondering if that is the wrong way to do it. Also, the .htaccess files, do they have to be in the folder to be protected or should amember protect the folder without it? Thanks again...I feel like an idiot not being able to figure this out...I can usually figure most anything out with this type of thing, but this one is stumping me...then again...like I said I'm new to the php world.
Try changing 606 to 666 or even 777 to get it working - you can change it back later and see what it will work at. The folder you want protected by aMember can be anywhere, it need not, and indeed should not, be in the amember folder. The way you have it is fine. This is the correct way to do it. Just make sure you have the path in there correctly. They MUST be in the folder that will be protected. aMember will not protect anything. What it does is control access to protected folders, not protect them per se. You can use any one of the various protection methods with it, but if you are using .htaccess, until you place the .htaccess file, correctly formatted, in the folder to be protected then it is NOT protected. That is the first thing you must do. Once you have added the .htaccess file, you should be unable to access the folder without entering a valid username and password. Normally you would enter it into the grey popup that appears. Once you have aMember on the job that disappears, and login via aMember is possible and aMember settings will control who gets in and who doesn't. If your situation is that there appears to be no protection, then either your .htaccess file is not there in the folder, or there is a problem with it. Common problem: - The file is created and saved locally, then uploaded. Without you realising it you have a file called .htaccess.txt - you need to rename it, no extension, just .htaccess. If your situation is that you have the folder correctly protected but cannot get access to it, check that the product number in the .htaccess file is the same as the product ID in aMember. Hang tough - you'll get there!
OK...I uploaded the .htaccess file to the protected directory and modified the product to direct to the main page in the folder. I try to go to the page and it says I'm not authorized to view the page...which is what I want, but no password options. The .htaccess file doesn't show up as a text file, but when edited it shows (in text) "deny from all" which I assume is right. What I don't understand is how aMember sets the password if you try to access the file directly. Is the .htaccess file supposed to direct it there?
You do not need to direct to a page, the directory is fine: eg /members/ should be in the product information. Deny from all is not what it should say. It should look something like this: AuthType Basic AuthName "Members Only" AuthUserFile /home/virtual/site91/fst/var/www/html/amember/data/.htpasswd AuthGroupFile /home/virtual/site91/fst/var/www/html/amember/data/.htgroup Require group PRODUCT_1 Where this bit: AuthUserFile /home/virtual/site91/fst/var/www/html/amember/data/.htpasswd AuthGroupFile /home/virtual/site91/fst/var/www/html/amember/data/.htgroup Is the correct server path to the files .htpasswd and .htgroup respectively in the amember data directory. If you are not sure what the server path is, put this into a text file: <? phpinfo(); ?> and save the file as phpinfo.php, upload it, browse to it and you will see all the information about server paths that you need - along with a lot of other stuff!! This bit: Require group PRODUCT_1 should be edited to reflect the product number that is managing access to the directory. No. The .htaccess file defines what .htpasswd and .htgroup files contains information about who is allowed access. aMember manages what information is found in those files. You can read more about .htaccess generally here: http://www.cgi-central.net/amemberdocs/hel...lp/htaccess.htm
lol...I'm about ready to like send you money or something to set this up! I am getting somewhere though. I fixed the .htaccess and it's going in the right direction. Now when I try to go to the page it asks me for the username and password, but when I enter it, it never accepts it. I try to sign up with a test name and pass in the signup page and it works fine except no products seem to show up. I try to select the product from the list and click on 'renew' and it says it takes it, but still nothing shows up.
Send me money anytime you like! I'm not proud! Your products should show up on the signup page. Ok, you need to check the following: 1. That you have a product correctly set up. Check especially that the product is using the correct url for the protected directory. This will be in the form: /directory/subdirectory/ or whatever Make sure scope is set to 'visible for all' 2. Check in configuration that you have the free payment plugin enabled 3. Check that the product number eg PRODUCT_12 in the .htaccess file is the same as the product number for the product you just set up in the admin CP 4. Now check to see if the product is on the signup page 5. If yes, and it should be, then sign up. If you have already used an email address you will not be allowed to sign up using the same one, so either delete your current user in the Admin CP or use a different email address. If all that does not get you going............ I dunno, post again I suppose! <_<
ok ok ok ok I think I found the prob... the .htaccess file in the protected directory points to /amember/data/.htgroup and /amember/data/.htpasswd both of these files are empty, and in the same 'data' directory, there is another .htaccess file in there that says 'deny from all'. Should any of this be changed? The products still aren't showing up. I just got one account working!!! I went in to the profile and it was showing the product as good for the same day (ie. 07/22/03 to 07/22/03). When I set the product up, I put in '1m' for one month. I went in to edit the test account and changed the dates to like 10 days apart and it works fine. Only problem now (besides why the dates are getting screwed up) is that I can browse through the protected directory, but when I go back to the root file in the directory, it asks me to log in again.
startin to get the hang of this...when I adjust the time for the product, it seems to work fine now (had to adjust the directory link to the index page in the protected directory). Only thing now is, when I get this going finally and they start paying, does it adjust the length of membership on it's own so I don't have to go in and edit everyone's profile when they sign up? Is it just a 'Free Signup' thing that I have to manually adjust the times?
and P.S. abbeyvet: if you play guitar or are interested in learning, I'm setting this up for guitar lessons on my site and I think you've more than earned free membership! lol just go to my site, send me an e-mail and when it's all up and running, I'll set ya up! Thanks!!! http://thejonezter.com
i'm having the same problem. in the "data" directory, the .htaccess file says "deny from all". if this is not correct, what should it say?
Sure, when member pays, aMember manages dates 100% automatically - you have nothing to do. Just be careful when you add subscription manually - aMember gives you full freedom here. .htaccess in data/ directory shouldn't be changed. Nobody should be able to access this directory so keep it as is and forget about.