Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Setting up downloads Above the Root folder

Setting up downloads Above the Root folder

Views: 558

Results 1 to 4 of 4
22 Jul 2011, 8:49 AM
#1
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Setting up downloads Above the Root folder

Hi all

I am using the updated version of Zen Cart to sell a number of downloadable documents.

For security I have added the download folder about the root directory. However in downloads Manager, nothing is listed.

My config files (includes and admin/includes) both read define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '../download'); as its above the public_html root directory.

Please could anyone advise? Thanks

22 Jul 2011, 1:20 PM
#2
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Setting up downloads Above the Root folder

I have now set up the exact path for both configure.php files as advised by my hosting people.

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

And it still doesn't work

I asked my hosting people and they have found:

This is not because of any error with the server settings or the perssmission. Below folder is setup and the list of files/folders are below

[/home/driveabr/download]# ll
total 760
drwxr-xr-x 2 driveabr driveabr 4096 Jul 21 10:28 ./
drwx--x--x 12 driveabr driveabr 4096 Jul 22 12:33 ../
-rw-r--r-- 1 driveabr driveabr 127947 Jul 21 10:28 France.zip
-rw-r--r-- 1 driveabr driveabr 184588 Jul 21 10:28 Germany.zip
-rw-r--r-- 1 driveabr driveabr 1965 Jun 21 13:28 .htaccess
-rw-r--r-- 1 driveabr driveabr 160684 Jul 21 10:28 Italy.zip
-rw-r--r-- 1 driveabr driveabr 122821 Jul 21 10:28 Portugal.zip
-rw-r--r-- 1 driveabr driveabr 136118 Jul 21 10:28 Spain.zip

You please contact the software vendor or your developer for more assistance. if we need to make any changes at server side, please feel free to ask.

Please could anyone help? TIA

22 Jul 2011, 1:23 PM
#3
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Setting up downloads Above the Root folder

Forget it I solved it. They need a '/' prefix so france.zip would actually be /france.zip

22 Jul 2011, 1:29 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Setting up downloads Above the Root folder

Thanks for the update on what worked for you in this issue ...