egonzalez Posted October 4, 2005 Posted October 4, 2005 I have a windows 2003 VPS whic i am able to set multiple domains and also host them. I would like to add oscommerce to some of these domains and so far i am not able to. all i can get to work is installing one copy of catalog under c:\Inetpub\wwwroot\ When i call any of my domains for example www.myperfectstore.com\catalog the actuall file that will run is the catalog that i have on c:\Inetpub\wwwroot not the one i have under c:\Inetpub\wwwroot\WEBSITES\MYPERFECTSTORE\catalog I have tried difrent things and aslo modified the configure.php files many time and cant get it to work from calling it from the www.myperfectstore.com\catalog actully file, when i delete the catalog folder under c:\Inetpub\wwwroot\ i get an 404 error so thats how i know i am not seeing the correct catalog inside the c:\Inetpub\wwwroot\WEBSITES\MYPERFECTSTORE\catalog CAN SOMEONE PLASE HELP ! :(
♥Vger Posted October 4, 2005 Posted October 4, 2005 This is not an osCommerce problem, it's a hosting problem. Specifically the server is not set up correctly to handle Virtual Hosts. You would be better off seeking help on the forum provided by the people providing the VPS, or on a forum for web hosts. Vger
egonzalez Posted October 4, 2005 Author Posted October 4, 2005 This is not an osCommerce problem, it's a hosting problem. Specifically the server is not set up correctly to handle Virtual Hosts. You would be better off seeking help on the forum provided by the people providing the VPS, or on a forum for web hosts. Vger Right now i have 4 sites up and running with no issue. i must be doing something worng with the configure.php file. Let me ask you if i place a copy of catalog on each site and try to run install from www.sitename.com/install it should work right? I am only able to get it to work when i have it on the root directory and then i can run it from any domian name but i want to place each catalog folder under each site name and site file locations. I am sure i am doing something wrong, is there any documentaion that show how to setup oscoomerce in a multi domain server environment? Thank you
♥Vger Posted October 4, 2005 Posted October 4, 2005 Just about every osCommerce website is run in a multi domain environment - except for those run as a single site on a single dedicated server. Most osCommerce users run their sites on shared hosting - and this is no different. The problem is with the way you have things set up on the VPS. Vger
egonzalez Posted October 5, 2005 Author Posted October 5, 2005 Just about every osCommerce website is run in a multi domain environment - except for those run as a single site on a single dedicated server. Most osCommerce users run their sites on shared hosting - and this is no different. The problem is with the way you have things set up on the VPS. Vger Any idea what you think i might have setup wrong, this is a dedicated server (NOT a VIRTUAL one) I control the server viw windows terminal and i have full control to what i do with it. Maybe if you give ma some ideas and can check. Thank you
♥Vger Posted October 5, 2005 Posted October 5, 2005 Ther are so many different servers manufactured with so many different operating systems, with so many different versions of those systems being run. So, no, I can't give you an idea of what you're doing wrong. But this remains a server issue and nothing to do with osCommerce. Vger
egonzalez Posted October 5, 2005 Author Posted October 5, 2005 Ther are so many different servers manufactured with so many different operating systems, with so many different versions of those systems being run. So, no, I can't give you an idea of what you're doing wrong. But this remains a server issue and nothing to do with osCommerce. Vger At least you have tried to help, i am gratefull. I have a test server at home which is a copy of the one that is live the only thing difrent is the ip addresses and i also have the same issue on the test server. Is it possible that you send me a copy of what configure.php showed look like. I think thats were i am screewing up, especially in define('HTTPS_CATALOG_SERVER', ''); and also define('DIR_WS_CATALOG', '/catalog/'); and even maybe define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); in fact here it is all , i am sure you will pick something wrong. define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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', DIR_WS_CATALOG . 'includes/languages/'); 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_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', '');
♥Vger Posted October 5, 2005 Posted October 5, 2005 The source of your problem might actually be the define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); entry. Some servers can find the document root okay on a virtual setup, but others cannot. Then you have to use the full pathway, as in: define('DIR_FS_DOCUMENT_ROOT', '/usr/local/apache/htdocs/'); Vger
egonzalez Posted October 5, 2005 Author Posted October 5, 2005 The source of your problem might actually be the define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); entry. Some servers can find the document root okay on a virtual setup, but others cannot. Then you have to use the full pathway, as in: define('DIR_FS_DOCUMENT_ROOT', '/usr/local/apache/htdocs/'); Vger I dont understand the above and sorry ! how would it relate if this is what i have C:\Inetpub\wwwroot\WEBSITES i dont how to convert it to the above.
♥Vger Posted October 5, 2005 Posted October 5, 2005 define('DIR_FS_DOCUMENT_ROOT', 'C:\Inetpub\wwwroot\WEBSITES\virtualdomain\'); Vger
egonzalez Posted October 5, 2005 Author Posted October 5, 2005 define('DIR_FS_DOCUMENT_ROOT', 'C:\Inetpub\wwwroot\WEBSITES\virtualdomain\'); Vger Thank you, i will try it
egonzalez Posted October 5, 2005 Author Posted October 5, 2005 Thank you, i will try it You were correct about something being worng on the server side. I just discovered that on IIS6 the websites were not correctly assigned www. infront of the domain name for host header value. I just tested on the test server and it works great, i will implement tomorrow on the production server. Thank you so much again. :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.