Forums / Templates, Stylesheets, Page Layout / Where to Change the config.php file to point to new downloads folder?

Where to Change the config.php file to point to new downloads folder?

Started by jackibar on 14 Mar 2008, 4:04 AM · Views: 10,019

Results 1 to 20 of 74
14 Mar 2008, 4:04 AM
#1
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Where to Change the config.php file to point to new downloads folder?

Hi,

I've just gotten set up and have moved my download folder outside the web root as suggested for security purposes. I then read the following instructions:

  1. Edit your two configure.php files to show the new path to your download folder:
    • /includes/configure.php
    • /admin/includes/configure.php
You'll need to 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/');

I found and changed this line in the first file. However, when I look in the /admin/includes/config.php file I can find no line that reads:

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

Or anything like that... What line do I need to edit - or is it a different file I need to edit to make my zen cart "find" my new download folder?

Thanks so much!

14 Mar 2008, 4:08 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Where to Change the config.php file to point to new downloads folder?

Look at /admin/includes/dist-configure.php as an EXAMPLE of the various settings that should be in your /admin/includes/configure.php file.

Add in any of the missing define() statements.
Adjust the DIR_FS_DOWNLOAD statement as required for your needs.

You probably should do a similar exercise in the main /includes folder.

Sometimes folks miss the step of upgrading their configure.php files during site-upgrades, and thus end up missing this sort of thing.

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

14 Mar 2008, 3:52 PM
#3
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

Thanks for the pointers... In the "admin-config.php" file there are no "download" paths at all! I just tried copying and pasting them from the main config.php file but the zencart still is not seeing my download folder.

Question - If I move the download folder outside the root folder (as I have done) - do I then need to tell the shopping cart itself the full path? I mean from within the program's admin console? Or just changing it in the config.php files should work?

What am I missing as far as getting it to find my moved download folder?!

Thanks again!

14 Mar 2008, 4:00 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Where to Change the config.php file to point to new downloads folder?

Do not know why you have to have it outside of the root as this area is not web accessible.

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/accountname/public_html/');

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

Zen-Venom Get Bitten

14 Mar 2008, 4:19 PM
#5
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

Thanks so much...

I'm sorry - I wasn't saying it right. I meant outside (above) my public_html folder so that people can't just get to my download folder without paying first...

I added the lines of code to the configure.php file and it still isn't seeing where I moved the download folder to. I moved it just outside the public_html folder - is this correct or does it need to go someplace else?! Or should I just put it back inside that folder - it was working fine there - I just moved it for the security reasons as I read through the Tutorial...

Thanks again - I really appreciate your help!

14 Mar 2008, 4:29 PM
#6
kobra avatar

kobra

Black Belt

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

Re: Where to Change the config.php file to point to new downloads folder?

I moved it just outside the public_html folder - is this correct or does it need to go someplace else?!
Above public is not accessible to the www

Zen-Venom Get Bitten

14 Mar 2008, 5:00 PM
#7
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

Okay... I was going by this article on the support site:

https://www.zen-cart.com/tutorials/index.php?article=280

It says:

Use your FTP program to move your "download" folder outside your webroot. Perhaps drag-and-drop it to a level "above" your public_html folder. The method you choose for moving or creating this folder will depend on your hosting account and the tools available to you for moving folders.

Usually the "download" folder is located inside your store area, for example:

  • /home/my_user_name/public_html/mystore/download

You want to move it "above" your public_html folder, something like this:

  • /home/my_user_name/download

Is this not correct?!!

14 Mar 2008, 5:37 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Where to Change the config.php file to point to new downloads folder?

There's nothing wrong with moving it outside the webroot, as long as you follow the instructions in that FAQ/tutorial.

As for your configure.php file not having the DIR_FS_DOWNLOAD entry, go back and re-read my previous reply. It tells you where to get the item you're missing.

You must have upgraded your site from a few earlier versions but didn't upgrade your configure.php files during the upgrade process, and thus you are missing the normal definitions ... specifically the DIR_FS_DOWNLOAD one (and most likely a few others). If you don't add it in, as I told you to do, the program will assume the default location.

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

14 Mar 2008, 5:55 PM
#9
jackibar avatar

jackibar

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

Thanks for the explanations... I actually installed Zen Cart through my hosting providers "netconsole" - so they must have an older version. Should I download a newer version from somewhere to have the latest features? Mine says:

Zen Cart v1.3.7/v1.3.7

Thanks again!

14 Mar 2008, 6:22 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Where to Change the config.php file to point to new downloads folder?

You'll need to 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/');If your configure.php files are missing an entry for DIR_FS_DOWNLOAD ... then ... as I've said before ... ADD IT, and any others that should be there too.
In my previous post, I've instructed you on where to find the contents that should be in the file.

Are you saying you don't want instructions, and prefer just to be spoon-fed?

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

12 Aug 2008, 7:39 PM
#11
creative2008 avatar

creative2008

New Zenner

Join Date:
Aug 2008
Posts:
15
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

I have a similar problem. I am trying to move the download folder outside the public html and moved to home/account name/download.
I changed both admin/includes/configure.php and includes/configure.php according to the tutorial which is as follows and uploaded the file but still get the red dot on setting up the attributes, kindly someone help me as I have been trying for three days now.

following is the code the posted on admin/includes/configure

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // Main webserver: eg-http://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com /* * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://www.angelbluemusic.com'); define('HTTPS_SERVER', 'http://www.angelbluemusic.com'); define('HTTP_CATALOG_SERVER', 'http://www.angelbluemusic.com'); define('HTTPS_CATALOG_SERVER', 'http://www.angelbluemusic.com'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'false'); define('ENABLE_SSL_ADMIN', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_ADMIN', '/store/admin/'); define('DIR_WS_CATALOG', '/store/'); define('DIR_WS_HTTPS_ADMIN', '/store/admin/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_ADMIN', '/home1/angelblu/public_html/store/admin/'); define('DIR_FS_CATALOG', '/home1/angelblu/public_html/store/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD','/home1/angelblu/download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home1/angelblu/public_html/store/cache'); // EOF >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> and here is the code for includes/configure.php <?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://www.angelbluemusic.com'); define('HTTPS_SERVER', 'http://www.angelbluemusic.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home1/angelblu/public_html/store/'); define('DIR_FS_DOWNLOAD','/home1/angelblu/download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home1/angelblu/public_html/store/cache'); // EOF > **DrByte:** > > Look at /admin/includes/dist-configure.php as an EXAMPLE of the various settings that *should* be in your /admin/includes/configure.php file. > > Add in any of the missing define() statements. > Adjust the DIR_FS_DOWNLOAD statement as required for your needs. > > You probably should do a similar exercise in the main /includes folder. > > Sometimes folks miss the step of upgrading their configure.php files during site-upgrades, and thus end up missing this sort of thing.
12 Aug 2008, 8:11 PM
#12
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

define('DIR_FS_DOWNLOAD', '/home1/angelblu/download/');

Presuming the above path is correct and 'download' has permissions of 755 or 777, have you verified the file name used in Admin is the EXACT SAME FILE NAME as what you uploaded? Also, do not use spaces or special characters in file name. :wink:

The learning is in the doing.

Potent Products

12 Aug 2008, 9:50 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Where to Change the config.php file to point to new downloads folder?

Also, when you uploaded your changes to your configure.php files, did you first make sure the files were writable so that the upload would be successful? And of course make them read-only again when finished?

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

13 Aug 2008, 8:09 AM
#14
creative2008 avatar

creative2008

New Zenner

Join Date:
Aug 2008
Posts:
15
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

hey thanks for writing, I am going to try the read only thing first and see if that works, because the rest of the stuff I believe I am doing it right.

Meantime can anyone tell me how to edit my post that I made earlier, I shouldnt' have written my login and stuff, so I hope someone can help me edit that.

I appreciate it!

13 Aug 2008, 8:22 AM
#15
creative2008 avatar

creative2008

New Zenner

Join Date:
Aug 2008
Posts:
15
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

The path is exactly what it shows me on the cpanel and I also asked my hosting support for the path to be sure. the permissions for download are 777 as I am on linux and using rediret for download. I upload two files one from admin/includes/configure.php and the other includes/configure.php
when I try to upload via dreamweaver it gives me an error and i can't upload, but then I use filezilla. I am editing the both .php files on dream weaver.
Do I need to delete the attributes and make new ones or that has nothing to do with it.
I was able to get the green light when the download folder was in public_html.

Website Rob:

define('DIR_FS_DOWNLOAD', '/home1/angelblu/download/');

Presuming the above path is correct and 'download' has permissions of 755 or 777, have you verified the file name used in Admin is the EXACT SAME FILE NAME as what you uploaded? Also, do not use spaces or special characters in file name. :wink:

13 Aug 2008, 8:27 AM
#16
creative2008 avatar

creative2008

New Zenner

Join Date:
Aug 2008
Posts:
15
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

I made sure if the changes were made, I saved the files and closed and open back again to see if the changes were made. Then I upload with filezilla because dreamweaver gives me an error when I upload.

I also did what you said about making the files read only after I save them, that didn't work either. I checked my folder is sitting outside of public_html and i took out all the spaces between the file name and have the file type as .mp3

DrByte:

Also, when you uploaded your changes to your configure.php files, did you first make sure the files were writable so that the upload would be successful? And of course make them read-only again when finished?

13 Aug 2008, 10:43 AM
#17
creative2008 avatar

creative2008

New Zenner

Join Date:
Aug 2008
Posts:
15
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

something is weird about this whole thing, I am sure I am doing everything exactly what the tutorial explains, i check the files on the remote to see if they got saved with the new edited line and are read only, yes when I open with dreamweaver on remote site, it says the file is read only and shows the edited line exactly as

includes/configure.php
define('DIR_FS_DOWNLOAD','/home/accountname/download/');

admin/includes/configure.php
define('DIR_FS_DOWNLOAD','/home/accountname/download/');

is there anyother line or file that needs to be edited?

the file i am trying to set an attribute to is an mp3

so I set the option name as "File Type"
option value is .mp3 file

and in downloadable file name: thefilename.mp3
with no spaces just alphabets with .mp3

also the download is set to redirect true 777 since I am on linux server

I have also uninstalled and installed the zencart in a different folder to keep it a clean install and tried the above. doesn't seem to budge always get the red annoying dot :(.

fourth day of frustration.

Hope someone will be able to help me out.

DrByte:

Also, when you uploaded your changes to your configure.php files, did you first make sure the files were writable so that the upload would be successful? And of course make them read-only again when finished?

13 Aug 2008, 3:14 PM
#18
creative2008 avatar

creative2008

New Zenner

Join Date:
Aug 2008
Posts:
15
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

do I have to replace pub/' with 777

Website Rob:

define('DIR_FS_DOWNLOAD', '/home1/angelblu/download/');

Presuming the above path is correct and 'download' has permissions of 755 or 777, have you verified the file name used in Admin is the EXACT SAME FILE NAME as what you uploaded? Also, do not use spaces or special characters in file name. :wink:

13 Aug 2008, 7:27 PM
#19
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

Check / confirm the following permissions.

755 download dir.
644 all mp3 files in the download dir.

Might be best to use FileZila for uploading your mp3 files. It knows to upload them in Binary and I'm not sure if Dreamweaver does.

The learning is in the doing.

Potent Products

13 Aug 2008, 8:00 PM
#20
creative2008 avatar

creative2008

New Zenner

Join Date:
Aug 2008
Posts:
15
Plugin Contributions:
0

Re: Where to Change the config.php file to point to new downloads folder?

i just tried changing the download to 755 and the mp3 was already 644
i also tried 777 for download folder

checked both the configured files again and the code is right. I change them to 444 but they keep going back to 644. I suppose the minimun value is 644 for these files.

I still am getting the red frustrating dot. I am almost giving up and looking at other shopping carts that may have better secured virtual download options.

If any body has the answers to solve this download folder issue plz write. or any advice on a different shopping cart.

Website Rob:

Check / confirm the following permissions.

755 download dir.
644 all mp3 files in the download dir.

Might be best to use FileZila for uploading your mp3 files. It knows to upload them in Binary and I'm not sure if Dreamweaver does.