Zen Cart Logo
Forums / Basic Configuration / Relocate Download Folder Outside of Root

Relocate Download Folder Outside of Root

Locked

Views: 1,124

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
25 Oct 2010, 4:45 PM
#1
azimpact avatar

azimpact

New Zenner

Join Date:
Oct 2010
Posts:
33
Plugin Contributions:
0

Relocate Download Folder Outside of Root

I found the title for that in the Faqs, but they don't ever really tell you how to do it and just loop you between two faqs.

Where are the instructions for doing this?

I changed it in the config and put the folder outside of the root but its not reading the /home structure of the link.

25 Oct 2010, 5:09 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Relocate Download Folder Outside of Root

The FAQ article: https://www.zen-cart.com/tutorials/index.php?article=280 is quite straightforward.
But it certainly isn't going to hold your hand in how to use FTP, nor is it going to get into great detail about how every possible webhosting company has configured their servers and folder structures. That's something you need to bring to the table yourself.

That said ... it seems you have some misconceptions about what you're expecting to see happen.
So ... Explain EXACTLY what you did, what it's doing, what you expected it to do, and maybe we can help you figure out where you went wrong.

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

25 Oct 2010, 5:15 PM
#3
azimpact avatar

azimpact

New Zenner

Join Date:
Oct 2010
Posts:
33
Plugin Contributions:
0

Re: Relocate Download Folder Outside of Root

Since the Faqs gave no information on this even though it says it had it, here is what I did.

I created the download folder out side the public folder.

Then in the config files, I changed it to reflect the following:
define('DIR_FS_CATALOG', '/home/anything/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'public_html/shop/download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'public_html/shop/pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'public_html/shop/uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'public_html/shop/email/');

But that just gave me the install screen again for the cart.

Isn't there directions for doing this somewhere? I searched the faqs and forum and can't find anything.

25 Oct 2010, 5:20 PM
#4
azimpact avatar

azimpact

New Zenner

Join Date:
Oct 2010
Posts:
33
Plugin Contributions:
0

Re: Relocate Download Folder Outside of Root

Never mind, figured it out.

After changing the configs back to what they were, For the download, I used the following:

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

25 Oct 2010, 5:41 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Relocate Download Folder Outside of Root

azimpact:

Never mind, figured it out.

After changing the configs back to what they were, For the download, I used the following:

define('DIR_FS_DOWNLOAD', '/home/anything/download/');
... which is exactly what the FAQ/Tutorial says in step 3. :blush:

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

25 Oct 2010, 6:19 PM
#6
azimpact avatar

azimpact

New Zenner

Join Date:
Oct 2010
Posts:
33
Plugin Contributions:
0

Re: Relocate Download Folder Outside of Root

Can you post the link to that? I looked all over and could not find that. I must be blind today or something :)

25 Oct 2010, 7:00 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Relocate Download Folder Outside of Root

I did, above.

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

25 Oct 2010, 8:02 PM
#8
azimpact avatar

azimpact

New Zenner

Join Date:
Oct 2010
Posts:
33
Plugin Contributions:
0

Re: Relocate Download Folder Outside of Root

Now here is the kicker, I was using IE9 and for the heck of it, I pulled that page up in Firefox and low and behold there are the instructions.

No instructions show in IE9 but they do in Firefox. :blush:

25 Oct 2010, 8:50 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Relocate Download Folder Outside of Root

We'll look into it.

One more reason not to use IE :blush:

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