Forums / General Questions / Trouble renaming downloads folder

Trouble renaming downloads folder

Locked

Views: 3,259

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
26 Jan 2010, 5:31 PM
#1
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Trouble renaming downloads folder

Hi, I have the problem to set up security of download folder. :unsure:
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

DrByte:

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? :blush:

Thenks.

27 Jan 2010, 2:52 PM
#2
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Trouble renaming downloads folder

Somebody.... :hug:

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

27 Jan 2010, 3:09 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Trouble renaming downloads folder

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.

28 Jan 2010, 10:40 AM
#4
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Trouble renaming downloads folder

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

I do this end don't work!!!:ohmy:

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

I move to adress
/home/my_user_name/download

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

  2. 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/');

  1. End DON'T WORK :blush:

what I do wrong :oops:

28 Jan 2010, 11:04 AM
#5
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Trouble renaming downloads folder

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

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.

:wacko:

28 Jan 2010, 5:01 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Trouble renaming downloads folder

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.

29 Jan 2010, 8:49 AM
#7
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Trouble renaming downloads folder

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

DrByte:

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

End don't work!!! :blush:

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/' :huh:

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.

29 Jan 2010, 2:10 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Trouble renaming downloads folder

kobra8:

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.

29 Jan 2010, 5:05 PM
#9
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Trouble renaming downloads folder

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??? :blush:

I do everiting end still don work!

29 Jan 2010, 8:14 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Trouble renaming downloads folder

kobra8:

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???
No time is required before the server starts to use the changes.
If it's still mentioning the old path in the error message, then the configure.php files still have the old path (or wrong path) in them.
So, that means your changes are not on the server. And that suggests that you're not uploading properly with your FTP program, as I've explained earlier.

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

1 Feb 2010, 6:04 PM
#12
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Trouble renaming downloads folder

Thenks on help end suggestions.
I do exactly as written in the tutorial, end nothing!!

I do not see a solution to this problem, I give up to this kind of protection!