Forums / Installing on a Linux/Unix Server / installing second site in subfolder

installing second site in subfolder

Locked
Results 1 to 12 of 12
This thread is locked. New replies are disabled.
18 Mar 2010, 14:32
#1
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

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
18 Mar 2010, 14:56
#2
martinvelikov avatar

martinvelikov

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

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/');
18 Mar 2010, 15:05
#3
kobra avatar

kobra

Black Belt

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

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
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
18 Mar 2010, 15:17
#4
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

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');
18 Mar 2010, 15:25
#5
kobra avatar

kobra

Black Belt

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

Re: installing second site in subfolder

Post this section from your install that works
// * 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/');
18 Mar 2010, 15:40
#6
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

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/');
18 Mar 2010, 15:50
#7
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

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/');
18 Mar 2010, 17:52
#8
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

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!
18 Mar 2010, 22:26
#9
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

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?
19 Mar 2010, 05:26
#10
kobra avatar

kobra

Black Belt

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

Re: installing second site in subfolder

From your posted one that works you have
define('DIR_FS_CATALOG', '/host/acct/public_html/');

From what you are attempting
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
19 Mar 2010, 12:39
#11
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

Re: installing second site in subfolder

From what I am seeing the concern is basically in the

define('DIR_FS_CATALOG' and
define('DIR_FS_ADMIN',
in the two files to agree with the server.

Since termonology in the zencart is not my strong suit and I am call something an apple when it is an orange -

I pm'd the security codes so that I did not change anything that I have right now and I can post the solution for others with the :censored: material properly coded.

TY so much for your assisatance.
19 Mar 2010, 17:04
#12
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Posts:
617
Plugin Contributions:
0

Re: installing second site in subfolder

Total flustration has set in because i did not see ANYTHING wrong with my config files.
So I called my server and this is what happened!

the subdomain was a copy of my original site the base appearance was to be the same with different information and a different DB.
So all I needed to do was to reconfig the admin and upload the DB right?

Nope even tho it was a copy of a functioning site i still had to go thru the motions of the install - BH helped me with that and everyhting is going ok ( I think ) I hope this helps someone and but I have not checked all the internal workings but from what was posted above this zencart is smart enough that even tho there are indentacally named folders in my root it will know to got to the subfolder.

TY to everyone.