Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2010
    Posts
    33
    Plugin Contributions
    0

    Default Relocate Download Folder Outside of Root

    I found the title for that in the Faqs, but they don't ever really tell you how to do it and just loop you between two faqs.

    Where are the instructions for doing this?

    I changed it in the config and put the folder outside of the root but its not reading the /home structure of the link.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Relocate Download Folder Outside of Root

    The FAQ article: https://www.zen-cart.com/tutorials/i...hp?article=280 is quite straightforward.
    But it certainly isn't going to hold your hand in how to use FTP, nor is it going to get into great detail about how every possible webhosting company has configured their servers and folder structures. That's something you need to bring to the table yourself.

    That said ... it seems you have some misconceptions about what you're expecting to see happen.
    So ... Explain EXACTLY what you did, what it's doing, what you expected it to do, and maybe we can help you figure out where you went wrong.
    .

    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
    Oct 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Relocate Download Folder Outside of Root

    Since the Faqs gave no information on this even though it says it had it, here is what I did.

    I created the download folder out side the public folder.

    Then in the config files, I changed it to reflect the following:
    define('DIR_FS_CATALOG', '/home/anything/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'public_html/shop/download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'public_html/shop/pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'public_html/shop/uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'public_html/shop/email/');

    But that just gave me the install screen again for the cart.

    Isn't there directions for doing this somewhere? I searched the faqs and forum and can't find anything.

  4. #4
    Join Date
    Oct 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Relocate Download Folder Outside of Root

    Never mind, figured it out.

    After changing the configs back to what they were, For the download, I used the following:

    define('DIR_FS_DOWNLOAD', '/home/anything/download/');

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Relocate Download Folder Outside of Root

    Quote Originally Posted by azimpact View Post
    Never mind, figured it out.

    After changing the configs back to what they were, For the download, I used the following:

    define('DIR_FS_DOWNLOAD', '/home/anything/download/');
    ... which is exactly what the FAQ/Tutorial says in step 3.
    .

    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.

  6. #6
    Join Date
    Oct 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Relocate Download Folder Outside of Root

    Can you post the link to that? I looked all over and could not find that. I must be blind today or something :)

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Relocate Download Folder Outside of Root

    I did, above.
    .

    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.

  8. #8
    Join Date
    Oct 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Relocate Download Folder Outside of Root

    Now here is the kicker, I was using IE9 and for the heck of it, I pulled that page up in Firefox and low and behold there are the instructions.

    No instructions show in IE9 but they do in Firefox.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Relocate Download Folder Outside of Root

    We'll look into it.

    One more reason not to use IE
    .

    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.

 

 

Similar Threads

  1. v151 Download folder in Web Root - preventing direct access to files
    By nigelt74 in forum Basic Configuration
    Replies: 3
    Last Post: 4 Apr 2015, 10:56 AM
  2. Replies: 23
    Last Post: 8 Oct 2014, 05:32 AM
  3. Replies: 3
    Last Post: 10 Oct 2010, 08:26 PM
  4. Problem moving folder from sub-root to root
    By andycowboy in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 28 Jul 2009, 02:15 AM
  5. moving download directory outside of root (windows)
    By stride-r in forum Installing on a Windows Server
    Replies: 2
    Last Post: 7 Jun 2009, 12:51 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR