Results 1 to 4 of 4
  1. #1

    help question Securing the Downloads Folder

    I read and followed the instructions in the How do I relocate my "download" folder outside my webroot for better security? tutorial.

    1. I set my download method to redirect
    2. I moved my download folder to one level above the public html directory.
    3. I made the required changes in both configuration files as follows:

    changed:
    Code:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    to:
    Code:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/xxxxx/download/');
    When I went to my storefront, this error message was running across the top of the screen:

    Warning: The downloadable products directory does not exist: /home/xxxxx/public_html/MY_STORE//home/xxxx/download/. Downloadable products will not work until this directory is valid.

    Why would it be looking in the old and new directory paths as if they were one path?

    To get rid of the error, I had to put everything back to how it was.

    I then repeated the process, only this time I deleted the config files and reuploaded instead of overwriting. I also made sure that I pasted the entire string for the new directory path over the old, rather than typing by hand.

    Suggestions?
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  2. #2

    red flag Re: Securing the Downloads Folder

    Can someone please assist me in diagnosing this error?
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

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

    Default Re: Securing the Downloads Folder

    You left DIR_FS_CATALOG in the define, instead of replacing it with your new path.
    .

    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.

  4. #4

    Default Re: Securing the Downloads Folder

    Oops

    Thanks for the tip doc!
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

 

 

Similar Threads

  1. What is the difference between the Cache folder and the Logs Folder?
    By ray-the-otter in forum General Questions
    Replies: 7
    Last Post: 22 Feb 2013, 12:26 PM
  2. 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
  3. Setting up downloads Above the Root folder
    By dharrison in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Jul 2011, 02:29 PM
  4. Securing Image folder doesn't work right...
    By Karina_L in forum General Questions
    Replies: 2
    Last Post: 9 Oct 2006, 10:16 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