Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    115
    Plugin Contributions
    0

    Default 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/i...hp?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??
    Last edited by stride-r; 7 Jun 2009 at 04:33 AM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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.

  3. #3
    Join Date
    Aug 2008
    Posts
    115
    Plugin Contributions
    0

    Default 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....

 

 

Similar Threads

  1. Moving shop to root directory, questions
    By FukienMan in forum General Questions
    Replies: 4
    Last Post: 14 Dec 2011, 12:59 AM
  2. moving zen to root directory
    By huntleybill in forum General Questions
    Replies: 1
    Last Post: 13 Nov 2011, 12:21 AM
  3. Moving zencart to root directory
    By naz1228 in forum Installing on a Windows Server
    Replies: 6
    Last Post: 26 Dec 2010, 05:15 AM
  4. Relocate Download Folder Outside of Root
    By azimpact in forum Basic Configuration
    Replies: 8
    Last Post: 25 Oct 2010, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg