www.uburst.com www.uburst.com

"Unable to open ./orders/ directory using Authorize.net"

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
 
"Unable to open ./orders/ directory using Authorize.net"
Posted by Philip Ly on May-10-00 at 02:42 AM (EST)
We just bought the Authorize.net interface.
While testing it out we encountered an error message File error "unable to open ./orders/" when submitting a test order.

When we created an "orders" directory outside of the cgibin directory, the test order worked.
However, we'd like to keep the "orders" directory within the cgibin directory to provide additional security.

Is there something we can do to make this happen?

Thanks for your help in advance

Philip Ly

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: Unable to open ./orders/ direct..., Bill Weiner, May-10-00, (1)
orders directory, Philip Ly, May-15-00, (2)
RE: orders directory, Bill Weiner, May-18-00, (3)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Unable to open ./orders/ directory using Authorize.net"
Posted by Bill Weiner on May-10-00 at 06:32 AM (EST)
For the uShop Authorize.Net CGI script, the same troubleshooting tips for the "Unable to open orders" error of the basic uShop CGI script apply:

For UNIX servers:
http://www.uburst.com/uShop/reference/troubleshooting.html#CGI5

For NT servers:
http://www.uburst.com/uShop/reference/troubleshooting.html#CGI6

Since your solution involved moving the "orders" directory outside of the cgi-bin directory, this means that the problem was probably that the server is configured to not allow scripts to write to subdirectories of your cgi-bin. For UNIX servers, this just may be related to the "ownership" that the script is running as (perhaps it is running as "nobody" or "www"). For NT servers, it may just be related to the permissions of the new subdirectory of the cgi-bin.

What I would suggest, is to first try using the full path to your orders directory.... to just make sure that the problem wasn't related to using a relative directory path. And if that doesn't solve the problem, then try contacting your web hosting provider for assistance.

No matter what the solution ends up being, the important thing to remember is that the "orders" directory should not be viewable by regular website visitors as described at:

http://www.uburst.com/uShop/reference/security.html#SECURITY35

...which isn't such a big issue for the uShop Authorize.Net CGI script because the payment information is never returned to the script (the payment information stays on Authorize.Net's secure server)...but never the less, you still probably don't want names or addresses to be accessable.

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 . "orders directory"
Posted by Philip Ly on May-15-00 at 10:38 PM (EST)
I did try using the full path to the orders directory within the cgibin and it still didn't work.

So I guess I have to settle with creating an orders directory outside of the cgibin directory and set the permission to 733.

What I want to know why was I able to write to the orders directory within the cgibin without Authorize.net and now I can't with Authorize.net?

Also, the orders files created does belong to the user "nobody" even though the cgi script is owned by me. How can I get the orders files be written to the correct owner?

Thanks

Philip

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: orders directory"
Posted by Bill Weiner on May-18-00 at 06:52 AM (EST)
As per the support request that you submitted, try using the modified ushop_authnet_30.pl script that I sent you yesterday. I added a couple "chmods" to the script for you.
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.