uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Can not write to data file

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Nov-20-17 04:46 AM EST
Original Message
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!
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Can not write to data file Bill Weiner, 2001-02-02 15:16:24 (1)
            Can not read .../data file Aaron, 2001-02-02 18:49:03 (2)
                 RE: Can not read .../data file Bill Weiner, 2001-02-05 06:22:02 (3)
                      Can not write to data file Aaron, 2001-02-05 12:15:53 (4)
                           RE: Can not write to data file Bill Weiner, 2001-02-05 13:26:26 (5)
                                Can not write to /data directorty Aaron, 2001-02-05 16:12:57 (6)
                                     RE: Can not write to /data directorty Bill Weiner, 2001-02-06 05:59:41 (7)

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/";

TABLE OF CONTENTS
                 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.
TABLE OF CONTENTS
                         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?
TABLE OF CONTENTS
                                 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.

DIAGNOSTIC TESTS
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.
TABLE OF CONTENTS
                                         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:

http://www.whats4-lunch.com/cgi-bin/ushop.pl

(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.
TABLE OF CONTENTS
                                                 6. Can not write to /data directorty
                                                Author Aaron on 02-05-2001 at 16:12 (EST)
Good day!
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??
TABLE OF CONTENTS
                                                         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....
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.