Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default How do you change the directory for zen?

    Hello,

    I am ready to go live with my store and my zen directory is under mydomain.com/store, but I want to just make it mydomain.com and not have it under a directory..

    Where do I go to change this? Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do you change the directory for zen?

    You would move all the ZenCart files that are in /your_shop_folder......to the root of your site.

    then edit 2 configure.php files
    /includes/configure.php
    /admin/includes/configure.php

    these files contain references to your current folder in the form /your_folder/
    Code:
      define('DIR_WS_CATALOG', '/shop/');
      define('DIR_WS_HTTPS_CATALOG', '/shop/')
    you correct all occurences that reference the folder removing the shop/ entries so in the above example you end up with
    Code:
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/')
    Save these and replace the correct file to the reapective location.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do you change the directory for zen?

    There are a couple other things to address during your move.
    They are documented here:
    http://www.zen-cart.com/wiki/index.p...Change_Folders
    .

    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. #4
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Re: How do you change the directory for zen?

    I changed the files but still it wont work, what am i doing wrong?!

    Here is the old admin/includes file:

    define('DIR_WS_ADMIN', '/cart/admin/');
    define('DIR_WS_CATALOG', '/cart/');
    define('DIR_WS_HTTPS_ADMIN', '/cart/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/cart/');

    define('DIR_FS_ADMIN', '/home/sue/public_html/cart/admin/');
    define('DIR_FS_CATALOG', '/home/sue/public_html/cart/');

    define('DIR_FS_SQL_CACHE', '/home/sue/public_html/cart/cache');

    to:

    define('DIR_WS_ADMIN', 'admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', 'admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_FS_ADMIN', '/home/sue/public_html/admin/');
    define('DIR_FS_CATALOG', '/home/sue/public_html/');

    define('DIR_FS_SQL_CACHE', '/home/sue/public_html/cache');

    Here is the old includes/configure file:

    define('DIR_WS_CATALOG', '/cart/');
    define('DIR_WS_HTTPS_CATALOG', '/cart/');

    define('DIR_FS_CATALOG', '/home/sue/public_html/cart/');

    define('DIR_FS_SQL_CACHE', '/home/sue/public_html/cart/cache');

    to:

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_FS_CATALOG', '/home/sue/public_html/');

    define('DIR_FS_SQL_CACHE', '/home/sue/public_html/cache');

    Then in the zen cart admin, i went to sesssions and changed it to:

    /home/sue/public_html/cache

    Is there anything else that I need to do in my ftp program or admin... I still have the cart folder, do I copy everything from there and paste in directory into the public_html folder????

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do you change the directory for zen?

    I still have the cart folder, do I copy everything from there and paste in directory into the public_html folder????
    Did you miss the first step??
    You would move all the ZenCart files that are in /your_shop_folder......to the root of your site.
    And DrBytes refereence to: Change_Folders

    So the answer is yes, you have to move/copy ALL the files.
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Re: How do you change the directory for zen?

    ok, i did want you said and now i got this error:

    Fatal error: Cannot instantiate non-existent class: phpbb in /home/sue/public_html/includes/autoload_func.php on line 79

    how do i fix this? thanks for your help!

    Also, i cant view the admin either...
    Last edited by bfwdesigns; 4 Oct 2006 at 03:02 AM.

  7. #7
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Re: How do you change the directory for zen?

    ok, i fixed it where I can now see the admin area, but I cant view the catalog..

    still shows this error:

    Fatal error: Cannot instantiate non-existent class: phpbb in /home/sue/public_html/includes/autoload_func.php on line 79

  8. #8
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: How do you change the directory for zen?

    do you have phpbb installed and configured n the zen cart configure files?
    Zen cart PCI compliant Hosting

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do you change the directory for zen?

    do you have a file in your /includes/classes folder called class.phpbb.php ? or is it class.phpBB.php ? (with uppercase)? As of v1.3.5, it needs to be all-lower-case.
    .

    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.

  10. #10
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Re: How do you change the directory for zen?

    I am not at home to check to check it, but I dont believe I had phpbb enabled and I have not done anything differently besides moving the files to the home directory.

    Where do I go to see if I had phpbb enabled? I know that in the zen admin I believe under configuration and my store , where it says "enable phpbb linkage" that it says "false".... is this what you are referring too?

    Or, maybe this is something that I did not do right in the includes/configure, admin/includes files?

    I appreciate all the help and need to get this site up today... help!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 5 Jul 2008, 09:06 PM
  2. Replies: 1
    Last Post: 28 Sep 2007, 03:43 AM
  3. how do you change the name of the "admin" directory
    By kinget in forum General Questions
    Replies: 2
    Last Post: 12 Apr 2007, 03:48 AM
  4. How Do You Change Download Directory?
    By nepton in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Sep 2006, 06:58 AM

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