Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Trouble renaming downloads folder

    Hi, I have the problem to set up security of download folder.
    I have do everiting what is required, byt then I get a message in shop, missing file!!!
    http://www.zen-cart.com/forum/showthread.php?t=107072

    Quote Originally Posted by DrByte View Post
    Why not just rename the folder, instead of moving it up a level? If redirect is on then unless you tell someone the name of the renamed folder, nobody should be able to find it.

    Either that or get a hosting company that doesn't limit you like that.

    I lifted my hands of it, if I just change the name of the file DOWNLOAD. Since security is important to me, will it be enough?

    Thenks.

  2. #2
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Securing downloadable products when store is located in root of hosting account

    Somebody....

    if I just change the name of the file DOWNLOAD. Since security is important to me, will it be enough?

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

    Default Re: Securing downloadable products when store is located in root of hosting account

    Yes and no.
    Renaming it will NOT prevent the ability for files to be stolen. But it *will* add a level of obscurity, thus limiting the likelihood of theft to a certain degree.
    MOVING the /download/ folder is the more secure approach, as explained in the FAQ article on that topic.
    .

    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
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Securing downloadable products when store is located in root of hosting account

    Thenks on respon DrByte
    I tried to moving /download/ folder

    I do this end don't work!!!

    1. Adress of /download/ folder
    /home/my_user_name/public_html/mystore/zencart/download

    I move to adress
    /home/my_user_name/download

    2. Edit file
    /includes/configure.php
    /admin/includes/configure.php

    3. Edit the line that says this:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    to look something like this:
    define('DIR_FS_DOWNLOAD', '/home/my_user_name/download/');

    4. End DON'T WORK

    what I do wrong

  5. #5
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Securing downloadable products when store is located in root of hosting account

    1. Adress of /download/ folder
    /home/my_user_name/public_html/mystore/download (Correction )

    When everiting do I get mesage:

    Warning: The downloadable products directory does not exist:
    /hsphere/local/home/my_user_name/public_html/mystore/download/. Downloadable products will not work until this directory is valid.


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

    Default Re: Securing downloadable products when store is located in root of hosting account

    Looks like your edits to your configure.php files didn't take effect, probably because they're read-only.
    .

    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. #7
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Securing downloadable products when store is located in root of hosting account

    Hi, I have set up file to bi read-only end edit the file.
    I set in admin:
    Download by Redirect - true
    Download by Redirect - true

    Quote Originally Posted by DrByte View Post
    Looks like your edits to your configure.php files didn't take effect, probably because they're read-only.

    End don't work!!!

    I have confused... in configure.php the link for DIR_FS_CATALOG is: define('DIR_FS_CATALOG', '/hsphere/local/home/my_user_name/public_html/mystore/');

    end have to edit line
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    I put the path for download:
    define('DIR_FS_DOWNLOAD', '/home/my_user_name/download/');


    When Zen Cart loking where is file in download folder the full path is: 'DIR_FS_CATALOG' + 'DIR_FS_DOWNLOAD' or

    '/hsphere/local/home/my_user_name/public_html/mystore/home/my_user_name/download/'

    The path is wrong end geting mesage:

    The downloadable products directory does not exist:
    /hsphere/local/home/my_user_name/public_html/mystore/download/


    Can you explain this, please.

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

    Default Re: Securing downloadable products when store is located in root of hosting account

    Quote Originally Posted by kobra8 View Post
    Can you explain this, please.
    It's easily explained: the configure.php files on your SERVER are not updated with your edits, so Zen Cart is still using the *old* details because that's all it knows about. It won't look in the new location until you get your edits onto the server by successfully uploading the updated configure.php files.
    .

    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.

  9. #9
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Securing downloadable products when store is located in root of hosting account

    I have Edit end save changes on my server.

    /includes/configure.php
    /admin/includes/configure.php

    I have edit line:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    To

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

    End still geting mesage:
    The downloadable products directory does not exist:
    /hsphere/local/home/my_user_name/public_html/mystore/download/

    Are need to pass some time while the server starts to use the new path???

    I do everiting end still don work!

  10. #10
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Securing downloadable products when store is located in root of hosting account

    Are my path wrong?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Trouble renaming my zc_admin folder
    By davepike in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 16 Aug 2011, 10:34 AM
  2. trouble renaming admin folder
    By HP Sauce in forum Installing on a Mac Server
    Replies: 13
    Last Post: 24 Mar 2011, 03:09 PM
  3. Trouble renaming my admin
    By masb in forum General Questions
    Replies: 8
    Last Post: 24 Jun 2010, 02:34 AM
  4. Trouble with renaming admin folder...
    By jwebster in forum General Questions
    Replies: 4
    Last Post: 7 Mar 2010, 05:03 AM
  5. trouble relocating downloads folder
    By dreadlocks1221 in forum General Questions
    Replies: 2
    Last Post: 15 Oct 2009, 08:19 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