www.uburst.com www.uburst.com

"Can not write to data file"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Can not write to data file"
Posted by Aaron on Feb-02-01 at 11:37 AM (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!
Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Can not write to data file, Bill Weiner, Feb-02-01, (1)
Can not read .../data file, Aaron, Feb-02-01, (2)
RE: Can not read .../data file, Bill Weiner, Feb-05-01, (3)
Can not write to data file, Aaron, Feb-05-01, (4)
RE: Can not write to data file, Bill Weiner, Feb-05-01, (5)
Can not write to /data directorty, Aaron , Feb-05-01, (6)
RE: Can not write to /data director..., Bill Weiner, Feb-06-01, (7)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Can not write to data file"
Posted by Bill Weiner on Feb-02-01 at 03:16 PM (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/";

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Can not read .../data file"
Posted by Aaron on Feb-02-01 at 06:49 PM (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.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: Can not read .../data file"
Posted by Bill Weiner on Feb-05-01 at 06:22 AM (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?

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "Can not write to data file"
Posted by Aaron on Feb-05-01 at 12:15 PM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "RE: Can not write to data file"
Posted by Bill Weiner on Feb-05-01 at 01:26 PM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
6 . "Can not write to /data directorty"
Posted by Aaron on Feb-05-01 at 04:12 PM (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??
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
7 . "RE: Can not write to /data directorty"
Posted by Bill Weiner on Feb-06-01 at 05:59 AM (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....
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.