Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 74
  1. #11
    Join Date
    Aug 2008
    Posts
    15
    Plugin Contributions
    0

    Default 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.angelblu######################');
    define('HTTPS_SERVER', 'http://www.angelblu######################');
    define('HTTP_CATALOG_SERVER', 'http://www.angelblu######################');
    define('HTTPS_CATALOG_SERVER', 'http://www.angelblu######################');

    // 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.angelblu######################');
    define('HTTPS_SERVER', 'http://www.angelblu######################');

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







    Quote Originally Posted by DrByte View Post
    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.
    Last edited by Ajeh; 12 Aug 2008 at 08:43 PM. Reason: clean up

  2. #12
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

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

  3. #13
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  4. #14
    Join Date
    Aug 2008
    Posts
    15
    Plugin Contributions
    0

    Default 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!

  5. #15
    Join Date
    Aug 2008
    Posts
    15
    Plugin Contributions
    0

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







    Quote Originally Posted by Website Rob View Post
    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.

  6. #16
    Join Date
    Aug 2008
    Posts
    15
    Plugin Contributions
    0

    Default 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


    Quote Originally Posted by DrByte View Post
    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?

  7. #17
    Join Date
    Aug 2008
    Posts
    15
    Plugin Contributions
    0

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




    Quote Originally Posted by DrByte View Post
    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?

  8. #18
    Join Date
    Aug 2008
    Posts
    15
    Plugin Contributions
    0

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

    do I have to replace pub/' with 777


    Quote Originally Posted by Website Rob View Post
    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.

  9. #19
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

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

  10. #20
    Join Date
    Aug 2008
    Posts
    15
    Plugin Contributions
    0

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


    Quote Originally Posted by Website Rob View Post
    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.

 

 
Page 2 of 8 FirstFirst 1234 ... LastLast

Similar Threads

  1. Replies: 6
    Last Post: 13 Jan 2011, 12:36 AM
  2. where to place php scripts in the file structure?
    By mcolgan in forum General Questions
    Replies: 1
    Last Post: 8 Mar 2010, 11:46 PM
  3. How to make the link point to php file?
    By andrewmax81 in forum General Questions
    Replies: 10
    Last Post: 24 Dec 2009, 01:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR