Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BET YOU NEVER HAD THIS QUESTION BEFORE?


storm

Recommended Posts

Posted

I have a client that has a website and an ecommerce section that they wish to move away from - in about one month they will be moving to me - in the meantime I want to be working on oscommerce, their domain name is going to be tranfered to me and they are going to host with me (I have a reseller account with myserverworld) as their domain is going to be pointed to their present site until transfer takes place in a month, I am able to install oscommerce and view it using the ip address and the username of the server I am hosting it on.

Here is is my question - when I have the domain transferred am I going to have to change anything in oscommerce - during my installation I noticed in the final readout (step 5 of the installation process) that my HTTP cookie path and www address include the ip and the username I had to enter to view the site while i wait for the domain to come my way.

 

I don't want to do alll the work on the site and find that when I type in the domain name it isn't seeing my oscommerce site.

 

Thanks for any help in advance

Posted

You'll have to update the config files in /admin/includes and /includes along with anything you might have hard coded with the IP.

 

That's about it though.

 

HTH,

Iggy

Everything's funny but nothing's a joke...

Posted
You'll have to update the config files in /admin/includes and /includes along with anything you might have hard coded with the IP.

 

That's about it though.

 

HTH,

Iggy

 

Thanks for such a quick response - would you know what part of the config file I need to change and how - example with www.mydomain.com would be great - not to worry if you can't.

 

 

Thanks again

Posted

Edit your configure files as follows changing the relevant parts. Do the same also for admin (which is slightly different)

 

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.mydomain.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

define('HTTP_COOKIE_PATH', '/your_catalog_directory/');

define('HTTPS_COOKIE_PATH', '/your_catalog_directory/');

define('DIR_WS_HTTP_CATALOG', '/your_catalog_directory/');

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

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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

define('DIR_FS_CATALOG', '/home/your_account_name/public_html/your_catalog_directory/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'your_mysql_username');

define('DB_SERVER_PASSWORD', 'your_mysql_password');

define('DB_DATABASE', 'your_mysql_database');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu.

Posted
Edit your configure files as follows changing the relevant parts. Do the same also for admin (which is slightly different)

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.mydomain.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

define('HTTP_COOKIE_PATH', '/your_catalog_directory/');

define('HTTPS_COOKIE_PATH', '/your_catalog_directory/');

define('DIR_WS_HTTP_CATALOG', '/your_catalog_directory/');

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

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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

define('DIR_FS_CATALOG', '/home/your_account_name/public_html/your_catalog_directory/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'your_mysql_username');

define('DB_SERVER_PASSWORD', 'your_mysql_password');

define('DB_DATABASE', 'your_mysql_database');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

 

Thank you - you have been very kind

Posted

Don't forget the database also. I didn't see that mentioned in your initial posting and also change the config file so that SSL is false if you do not have a certificate installed.

 

I would also recommend that your php install includes GD Library, Imagemagick and cURL as some mods require these. Find out what modifications your client has done to his OsCommerce and install the relevant software (by examining the contrib install notes) to ensure that it will work with your configuration.

 

Cheers

 

Steve

My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu.

Posted
Don't forget the database also. I didn't see that mentioned in your initial posting and also change the config file so that SSL is false if you do not have a certificate installed.

 

I would also recommend that your php install includes GD Library, Imagemagick and cURL as some mods require these. Find out what modifications your client has done to his OsCommerce and install the relevant software (by examining the contrib install notes) to ensure that it will work with your configuration.

 

Cheers

 

Steve

 

I will be installing a fresh oscommerce while I wait for the domain to point to the server I have installed it on, will I have to still follow our suggestions if it is a new installation? - I get the impression that you may be thinking I am transfering the ecommerce from the clients present site, I am not I am just trying to get on with the desining and populating the site prior to the domain coming my way.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...