Zen Cart Logo
Forums / General Questions / Download folder on the same level as public_html

Download folder on the same level as public_html

Locked

Views: 2,859

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Feb 2007, 8:43 AM
#1
rnisc avatar

rnisc

New Zenner

Join Date:
Feb 2007
Location:
malaysia
Posts:
8
Plugin Contributions:
0

Download folder on the same level as public_html

I sell downloadable products. I've read most of the threads about setting up downloadable products. I found out that we can set up Download folder on the same level as the public_html directory on the server for best security setting. I did change the configuration in both configure.php files:
from: define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
to: define('DIR_FS_DOWNLOAD', '/home/xxxxx/download/');

The download link works fine when I did a test purchase.

However, the only problem is, the red icon appears on the Downloads Manager and Attributes Controller page, instead of green. It's just very hard to figure out if any of the file is really missing. I've looked at the related page and there is nothing to change as the script is actually referred to the configure.php file - unless it was not defined, it will look at the default download directory under public_html.

Have I missed something here? :lookaroun

23 Feb 2007, 8:53 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Download folder on the same level as public_html

Hmmm ... are you sure that after you updated both configure.php files, and uploaded them ... that your upload was successful ? (and didn't fail because the file was marked read-only perhaps?)

Since you only mention the admin portion as not working as expected, there's no need to be concerned with the non-admin configure.php file at this stage.

23 Feb 2007, 9:12 AM
#3
rnisc avatar

rnisc

New Zenner

Join Date:
Feb 2007
Location:
malaysia
Posts:
8
Plugin Contributions:
0

Re: Download folder on the same level as public_html

DrByte, the upload was succesful as I have to change the permission manually through my hosting control panel. The default Download folder is empty.