|Adding catagory problem|
|Adding catagory problem|
Author Navid on 02-09-2001 at 20:18 (EST)
I'm tryin to add a catagor but it says
Unable to open ./data/ustorekeeper-categories.txt
I did try to change the permission and even if I put the permission for the data directory to 777 it still has the same problem. And Add product and other futures work fine so I assume the problem isn't with the directory settings.
what can the problem be?
|Messages In This Discussion|
| 1. RE: Adding catagory problem|
Author Bill Weiner on 02-10-2001 at 08:48 (EST)
|Since the "Add Product" feature is working fine...that means that the data directory has write permission and the data files do have permission to be updated.|
So it really just sounds like the permissions on the "ustorekeeper-categories.txt" file accidentally got changed to read-only. Try doing a chmod 777 on the "ustorekeeper-categories.txt" file and see if that corrects the problem.
| 2. problem fixed but another problem,|
Author Navid on 02-10-2001 at 15:43 (EST)
|Thanks alot the add category function works now!|
but i found out about another problem. the data directory is visible to general website viewers since the permission for the folder is 777. I tried removing "read" access for "world" from that folder but in that case the store won't function. is there any way to block access to that folder? thanks again
| 3. RE: problem fixed but another problem,|
Author Bill Weiner on 02-12-2001 at 06:33 (EST)
|You are correct, as described in section 4 at:|
.... it is very important that regular website visitors cannot view the contents of your "data" directory.
So, you've tried a chmod 755 on your data directory... but that results in an "unable to open" error?
Well since a chmod 777 on the "data" directory allows everyone to view the contents of that directory... and a chmod 755 on the "data" directory does not allow order files to be written, then here are a couple suggestions:
1) First I would suggest contacting your web hosting provider... because they may be able to configure your cgi-bin/data directory for you so that it is not viewable by regular website visitors.
2) If your web hosting provider can't help, then they problably have provided "cgi wrap" on your server. CGI WRAP will allow you to run cgi scripts as a specific user... instead of 'nobody' or 'www'. This will basically allow you to set the permission on your data directory to chmod 700... and yet still allow the script to write to your data directory. CGI WRAP is pretty easy to setup... but if you need any assistance, send us a support request with your current script URL settings ... and preferrably a link to your web hosting provider's reference page for their CGI WRAP configuration, and we should be able to assist.
| 4. RE: problem fixed but another problem,|
Author Bill Weiner on 02-12-2001 at 10:56 (EST)
|Oops. I meant chmod 733 in the above posting. That is, try giving your data directory 733 (Write and Execute) permissions... and if that doesn't work... THEN look into the 2 suggestions that I posted.|