Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Plugin Contributions
    0

    Default Change Downloads Folder

    First - I would like to say that if someone quotes exactly what is written in the WIKI, I will scream and pull out all of my hair.

    Obviously, I realize that I need to change the configure files (both in admin/includes and just includes) to point to the new downloads folder.

    The downloads folder is OUTSIDE of my webroot. Meaning, it is located here:

    /home/myusername/download/

    I have put that EXACT line in the configure files where it asks to define the download folder, however - it is still giving me the little red invalid name thing when I try to set up my download for the product.

    SO - can someone please tell me EXACTLY what "needs to be changed in the configure" files... because obviously, something isn't right... and the wiki is absolutely worthless in this situation.

    I've searched the forums, searched google, searched everything.... and all I can find is that one stupid paragraph that says "you can move the folder outside of your webroot and then update the configure files"...

    blah.

    Zencart makes my head spin.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Change Downloads Folder

    This is what I just did on a fresh v1.3.7 install:

    1. Install Zen Cart normally, with demo products. In this case it went to /home/yellow/public_html/zencart
    2. Set file/folder permissions as per normal.
    3. Move the "download" folder to /home/yellow/download (outside webroot)
    4. Edit /home/yellow/public_html/zencart/includes/configure.php
    Code:
      define('DIR_FS_DOWNLOAD', '/home/yellow/download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    5. Edit /home/yellow/public_html/zencart/admin/includes/configure.php
    Code:
      define('DIR_FS_DOWNLOAD', '/home/yellow/download/');
    6. Log into admin ... Admin->Catalog->Downloads Manager ... everything's green.
    7. Go to storefront, find a download product, add to cart, checkout paying via Money Order.
    8. Go back to admin, and change order to "Processing" status.
    9. Back to store ... order is now released. Download links appear in My Account. Download files fine.

    For the sake of curiousity, I also tried:
    10. Create a new product.
    11. Use FTP to upload a new file to the /home/yellow/download/ folder: balloon.zip
    12. Edit the new product's attributes.
    13. Add the "balloon.zip" filename and click Insert. Green light.
    14. Test purchasing the new product. Same procedure as above, steps #7, 8, 9. Downloads fine.


    What have you done differently ?
    .

    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
    Jan 2007
    Location
    Rotterdam NL
    Posts
    76
    Plugin Contributions
    0

    Default Re: Change Downloads Folder

    Hi Dr Byte,

    I guess I am doing something wrong:S

    I have in the root of my server a folder called 'download'
    so files go in /download

    and I have zencart in a folder /webshop

    so I updated /webshop/includes/configure.php
    changed the dowload define to:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/download/');
    and I did the same in the admin/icludes/configure.php

    I get the feeling it is still lookong in the wrong folder.
    I get red light in the download manager

    when i change it to:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '../download/');
    I think it is OK? I get green lights in the manager
    Or am I doing something that works but will cause trouble?
    greets

    Bert


  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Change Downloads Folder

    What is your DIR_FS_CATALOG setting set to ?
    Take that value, remove /webshop/ from it, and add /download/

    like this:
    Code:
     define('DIR_FS_DOWNLOAD', '/home/my_host_area/webshop/');
    becomes:
    Code:
    define('DIR_FS_DOWNLOAD', '/home/my_host_area/download/');
    .

    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.

  5. #5
    Join Date
    Jan 2007
    Location
    Rotterdam NL
    Posts
    76
    Plugin Contributions
    0

    Default Re: Change Downloads Folder

    tried that an did not work.
    needed ./download:S
    Mabee becaus it is in root of my server?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Change Downloads Folder

    You can edit the path as required. I don't recommend using relative path notations though - no dots.

    If the true location of the "download" folder is /download, then use that:
    Code:
    define('DIR_FS_DOWNLOAD', '/download/');
    .

    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. Where to Change the config.php file to point to new downloads folder?
    By jackibar in forum Templates, Stylesheets, Page Layout
    Replies: 73
    Last Post: 22 Dec 2011, 07:17 AM
  2. Question about downloads folder
    By GigiCS in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 30 Jun 2011, 10:10 PM
  3. Securing the Downloads Folder
    By ScriptJunkie in forum General Questions
    Replies: 3
    Last Post: 16 Mar 2011, 05:17 PM
  4. Why do I need to change folder permissions 777 on the folder before install?
    By zhshji in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 5 Feb 2010, 01:04 PM
  5. Trouble renaming downloads folder
    By kobra8 in forum General Questions
    Replies: 11
    Last Post: 1 Feb 2010, 07:04 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