|Can not write to data file|
|Can not write to data file|
Author Aaron on 02-02-2001 at 11:37 (EST)
|I have been trying to make ushop.pl run on my IIS 4.0 server but all I ever get is a "Can not write to data file..." error. I have set the NTFS permissions to read, write on the data folder. IUSR is available. The test script works fine, just the real thing does not. I am going mad chasing this. All permissions are set correctly according to all I have read. I think I am over looking a very small detail. WHAT IS IT? Please help!
|Messages In This Discussion|
| 1. RE: Can not write to data file|
Author Bill Weiner on 02-02-2001 at 15:16 (EST)
|First and foremost, have you tried using Explorer to set the permission on your data directory? I ask this because we have had other reports of people not able to set the permission with IIS....and that they had to use Explorer to set the permissions. So check that.|
Also, just to make sure that your directory path is correct, you may want to try using the full directory path when configuring the $data_directory configuration question. That is, instead of using a relative directory path there, maybe try using the full directory path, such as:
$data_directory = "C:/users/youraccount/cgi-bin/data/";
| 2. Can not read .../data file|
Author Aaron on 02-02-2001 at 18:49 (EST)
|Good day Bill and thank you for the response. |
Yes, I did set the permissions using Explorer. I have also set the path using a full directory path. I can not figure this out. It runs on a different machine. I have the url if you would like to look at it. http://www.whats4-lunch.com
Thank you for your help.
| 3. RE: Can not read .../data file|
Author Bill Weiner on 02-05-2001 at 06:22 (EST)
|I went to your site to see exactly when and what error message you are seeing, but I didn't see any links on that page.... So to make sure that I understand the problem:|
1) Exactly what error message are you seeing?
2) When is the error message occuring?
3) Can you successfully set - AND CHANGE - the general settings from the control panel?
| 4. Can not write to data file|
Author Aaron on 02-05-2001 at 12:15 (EST)
|Thanks again. The exact error I am recieving is occuring when I access the uShop CGI from http://www.whats4-lunch.com/cgi-bin/ushop.pl and run the diagnostic test. I read the error:|
"ERROR - General settings file does not exist.
Data Directory = ERROR - Unable to write files"
I am the ISP for the company and do not have the control panel you speak of. The reason you did not see anything at his site is due to site development.
| 5. RE: Can not write to data file|
Author Bill Weiner on 02-05-2001 at 13:26 (EST)
|You can get to the control panel by just going to the URL of your script and logging in:|
(The same way you got to the "Diagnostics" button. "General Settings" is just another button that control panel.)
Anyway, based the error:
"Data Directory = ERROR - Unable to write files"
That really indicates that the data directory path is correct (especially if you are using the full directory path to the directory), but the "ushop.pl" script does not have permission to write to that directory. I know you already checked those permissions, but maybe you can check them once more.
It's really down to the basic problem that you have a CGI script that needs permission to write to a directory. So if your $data_directory path is correct, then that $data_directory just needs the appropriate permissions.
| 6. Can not write to /data directorty|
Author Aaron on 02-05-2001 at 16:12 (EST)
I really appreciate your help. Thank you. I am not able to correct the problem on the web server in question. I have nearly gone mad. I have copied the entire folder of 8 MB to another web server and the CGI executes now with out a problem. I can olny conclude there is a problem with the installation of IIS. All properties are as should be and the permissions are set. I now will trouble shoot that problem. Any ideas??
| 7. RE: Can not write to /data directorty|
Author Bill Weiner on 02-06-2001 at 05:59 (EST)
|Glad you got it working on the other server....as for why it's not working on the first one, I'm not sure. It sounds like you've done everything possible to set the permissions on that directory - even from Explorer instead of IIS - but there must still be some permission setting somewhere that is preventing the script from writing to that directory. It might be worth a shot to create an entirely new data directory on that server... maybe calling it "data2"... and see if that helps. Or maybe try setting the $data_directory to simply ""... so that the files just get written to the same directory as where the script is located.... just some ideas....|