Forums / General Questions / Moving the Download Folder

Moving the Download Folder

Started by adb34 on 24 Oct 2015, 2:38 PM · Views: 1,235

Results 1 to 14 of 14
24 Oct 2015, 2:38 PM
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Moving the Download Folder

I have read the article about moving the download folder to protect your shop & folders. Is it as simple as renaming the two config files?

I would like to store the download files outside of the shop

Learning Fast.
Eden Craft Supplies

24 Oct 2015, 5:17 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving the Download Folder

Is it as simple as renaming the two config files?
Not renaming the files but the entry in them for

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

Zen-Venom Get Bitten

25 Oct 2015, 1:29 PM
#3
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Moving the Download Folder

kobra:

Not renaming the files but the entry in them for

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');


Sorry, that is what I meant to say.

So, if I wanted to move the download outside of the site, for example, if using a FTP and you were to drill down to the download site was: > build_shops -> mysites -> zencart_shop1as long as the config files were re-written you could have > build_shops -> feed -> download_for_zencart_shop1

Then would you write in the config files > build_shops/feed/download_for_zencart_shop1or> feed/download_for_zencart_shop1

Learning Fast.
Eden Craft Supplies

25 Oct 2015, 7:33 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving the Download Folder

I think that a trailing slash is in order

build_shops/feed/download_for_zencart_shop1[B]/[/B]

As long as you have created a folder for "feed" and under that one for "download_for_zencart_shop1"

Zen-Venom Get Bitten

25 Oct 2015, 8:11 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Moving the Download Folder

Wait a minute here - the real point is to have it outside the public html folder. So if your old path was

/home/username/public_html/build_shops/mysites/zencart_shop1/download/

the new path should be

/home/username/download

or perhaps

/home/username/zencart_shop1_download

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Oct 2015, 5:59 AM
#7
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Moving the Download Folder

kobra:

Not according to this FAQ

https://www.zen-cart.com/content.php?257-how-do-i-relocate-my-download-folder-outside-my-webroot-for-better-security

i'm confused... that FAQ provides information on doing exactly that... locating the download folder outside of the webroot...

other than the addition of adding "Download by Streaming" or "Download by Redirect"; how is that NOT according to the FAQ?

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

26 Oct 2015, 4:44 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving the Download Folder

carlwhat:

how is that NOT according to the FAQ?
swguy:

the new path should be

/download

or perhaps

/zencart_shop1_download
From the FAQ

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

Notice the FULL path in the FAQ vs a relative path suggested by swguy

Zen-Venom Get Bitten

27 Oct 2015, 1:14 AM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Moving the Download Folder

Kobra is 100% correct - I updated my post to show the full path. Thanks for catching that.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 Oct 2015, 1:08 PM
#10
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Moving the Download Folder

swguy:

Kobra is 100% correct - I updated my post to show the full path. Thanks for catching that.

Post? Where can I find that? please

Learning Fast.
Eden Craft Supplies

27 Oct 2015, 1:34 PM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Moving the Download Folder

adb34:

Post? Where can I find that? please

He updated Post #5 to reflect an entire path rather than just a folder name. If hadn't visited this site between the time post 4 was posted and post 5, you would not have received notification of the orignal post, then if you hadn't seen post 5 before post 8, then wouldn't have seen the dfference between then and now...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Oct 2015, 1:40 PM
#12
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: Moving the Download Folder

A post is an entry on the forum that you create when you use the reply button on an existing thread or the post new thread button on a forum. This was my post that I was referring to:

https://www.zen-cart.com/showthread.php?218666-Moving-the-Download-Folder&p=1295368#post1295368

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 Oct 2015, 1:57 PM
#13
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Moving the Download Folder

mc12345678:

He updated Post #5 to reflect an entire path rather than just a folder name. If hadn't visited this site between the time post 4 was posted and post 5, you would not have received notification of the orignal post, then if you hadn't seen post 5 before post 8, then wouldn't have seen the dfference between then and now...

I was only asking as I thought I had missed something. I did not realize that post number 5 of this thread had been amended I thought he was talking about something else. Sorry I got it wrong. I will now go and reread post 5 of this thread.

Learning Fast.
Eden Craft Supplies

28 Oct 2015, 11:46 AM
#14
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Moving the Download Folder

I have just found my 'e-start your web store with Zen Cart' book. If I follow this from page 207 'providing music samples' I should, in theory, get my head around the download side of my shop.

Learning Fast.
Eden Craft Supplies