If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Windows Server / moving download directory outside of root (windows)

moving download directory outside of root (windows)

Locked

Started by stride_r on 7 Jun 2009, 3:30 AM · Views: 1,202

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Jun 2009, 3:30 AM
#1
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

moving download directory outside of root (windows)

I'm securing a directory by moving it outside the webroot. Following the Zen Cart tutorial:
https://www.zen-cart.com/tutorials/index.php?article=280

I initially edited the 2 configure.php files to both read:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/web/public_html/myAccount/download/');

my catalog & web root is at:
define('DIR_FS_CATALOG', '/web/public_html/myAccount/store/');

However, the result upon uploading them was a complaint that the directory does not exist ...yet it clearly does exist at this location.

Am i missing something else??

7 Jun 2009, 6:09 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: moving download directory outside of root (windows)

  1. You said "there was a complaint". Can you be just a tiny bit more specific about the "complaint"?
    I suspect you're referring to an error message. If that's the case, never assume that you can explain it yourself. Instead, post the exact error message ... because the root cause is almost always right in the error message.

  2. I suspect the error message actually tells you that the path "/web/public_html/myAccount/store//web/public_html/myAccount/download/" doesn't exist. And, if you look carefully at that, it's probably correct ... because you've doubled-up most of the path by skipping an important part of the edit mentioned in the FAQ article you quoted. ie: take out the reference to [DIR_FS_CATALOG .] in the define for DIR_FS_DOWNLOAD.

  3. And, just to point it out, you titled your post with a notation about using a windows server, and the FAQ article makes mention that there is a restriction on making such a change if using a Windows server:> If you're using a Windows server running IIS, you cannot use redirects. Instead, you will need to use Download by Streaming in order to handle secured downloads.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Jun 2009, 11:51 AM
#3
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

Re: moving download directory outside of root (windows)

Thank you Dr Byte for pointing out what should have been the obvious. Unfortunately, despite even having printed out the tutorial page and having right in front of me, i missed the fact that the sample in step 3 not only had a revised path but ALSO had dropped the constant as well. Sigh....