Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default installing second site in subfolder

    I am having trouble installing a new site in a subfolder.
    I have added the domain name and pointed it.
    uploaded DB.

    and adjusted my config files - Not right obviously becasue I get the zencart page of misconfiguration!

    my path is public_html/myaccount/windflowergrove/

    domain name is www.windflowergrove.com

    config file - what I have changed -and I could have changed tooo much also! because I am now getting 404 page not found

    I have changed the admin file name -

    define('HTTP_SERVER', 'http://www.windflowergrove.com');
    define('HTTPS_SERVER', 'http://www.windflowergrove.com');
    define('HTTP_CATALOG_SERVER', 'http://www.windflowergrove.com');
    define('HTTPS_CATALOG_SERVER', 'http://www.windflowergrove.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', '/windflowergrove/admin/');
    define('DIR_WS_CATALOG', '/windflowergrove/');
    define('DIR_WS_HTTPS_ADMIN', '/windflowergrove/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/windflowergrove/');

    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', '/public_html/windflowergrove/admin/');
    define('DIR_FS_CATALOG', '/public_html/windflowergrove/');

    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', DIR_FS_CATALOG . 'download/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'root');
    define('DB_SERVER_PASSWORD', '44444444');
    define('DB_DATABASE', 'my_DB');
    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', '/***/xxxxxxx/public_html/cache');

    // EOF

    Ideas I will keep working on it

  2. #2

    Default Re: installing second site in subfolder

    If I properly understand the domain name www.windflowergrove.com opens "public_html/myaccount/windflowergrove/" (which I presume is myaccount/public_html/windflowergrove/ but that is not relevant). In this case the options you have set should be:

    // 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', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    Otherwise with the ones you have set the application will try to use the following URL:

    http://www.windflowergrove.com/windflowergrove/


    Also the full path to the web site files does not seem to be correct. It should be (I am improvising here as I don't know the exact setup on your hosting server):

    define('DIR_FS_ADMIN', '/home/user/public_html/windflowergrove/admin/');
    define('DIR_FS_CATALOG', '/home/user/public_html/windflowergrove/');
    We know Zen Cart, because our customers love it!
    SiteGround Team Member

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

    Default Re: installing second site in subfolder

    my path is public_html/myaccount/windflowergrove/


    // * 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', '/public_html/windflowergrove/admin/');
    define('DIR_FS_CATALOG', '/public_html/windflowergrove/');
    Need to be something like
    Code:
    define('DIR_FS_ADMIN', '/home/account_name//public_html/windflowergrove/admin/');
    define('DIR_FS_CATALOG', '/home/account_name/public_html/windflowergrove/');
    And any other where COMPLETE path is called for
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: installing second site in subfolder

    I have been doing alot of mussing this is where I am at right now
    i did eleminate my acct infor(which was confusing for you) so here is what I have - I have been checking as I change .

    Have I changed the paths of all the places I need to?

    /**
    * @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.windflowergrove.com');
    define('HTTPS_SERVER', 'http://www.windflowergrove.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', '/windflowergrove/');
    define('DIR_WS_HTTPS_CATALOG', '/windflowergrove/');

    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', '/vhost/acct/public_html/windflowergrove/');

    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/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'my_DB);
    define('DB_SERVER_PASSWORD', 'pasword');
    define('DB_DATABASE', 'my_DB);
    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', '/host/acct/public_html/windflowergrove/cache');

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

    Default Re: installing second site in subfolder

    Post this section from your install that works
    Code:
    // * 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', '/vhost/acct/public_html/windflowergrove/');
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: installing second site in subfolder

    // * 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', '/host/acct/public_html/admin/');
    define('DIR_FS_CATALOG', '/host/acct/public_html/');



    also would it be reasonable that I have to change everything all the way down since in my root is another zencart?

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

  7. #7
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: installing second site in subfolder

    Sorry that was from the admin- but then they both are the same.

    // * 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', '/host/acct/public_html/');

  8. #8
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: installing second site in subfolder

    OK now I have broken it - the white page!! I am going from badk to worse. Probably need to start over!

  9. #9
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: installing second site in subfolder

    I have reloaded theorigianal files andrevamped the paths for the websites and my DB and am at not recognizing the
    DB - I have the password the same as the password of my root site that is working - is that ok?

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

    Default Re: installing second site in subfolder

    From your posted one that works you have
    Code:
    define('DIR_FS_CATALOG', '/host/acct/public_html/');
    From what you are attempting
    Code:
    define('DIR_FS_CATALOG', '/vhost/acct/public_html/windflowergrove/');
    One is vhost??? What are they actually?
    Probably you trying to obscure something and differently in each post
    You might have to post the ACTUAL code to get help
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Removing subfolder without disrupting site...
    By swdynamic in forum General Questions
    Replies: 2
    Last Post: 14 Jun 2010, 11:04 PM
  2. installing a second ZC
    By stitchnkitty in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 10 Feb 2010, 03:06 AM
  3. Problem installing in subfolder/subdomain
    By mramirez in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 12 Feb 2008, 10:03 PM
  4. installing in subfolder
    By ionnnnutz in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 4 Oct 2007, 08:18 PM
  5. Installing second language opt
    By tajul_ashyqin in forum Addon Language Packs
    Replies: 2
    Last Post: 18 Jul 2006, 02:45 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