Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart page pointing to local IP


mkalpage

Recommended Posts

Please help......

I have just setup my OSCommerce server. When I use OSCommerce setup wizard I have entered my server local address for database server name (192.168.0.11), Now when I am access OSCommerce web site from outside (Internet) it is pointing to local IP address (192.168.0.11) as http://192.168.0.11/catalog/product_info.php?products_id=28. How can I pointing it to my web site www.computec.lk ?

Please check it here http://www.computec.lk/catalog/index.php

 

Server : Windows 2003 with IIS ( Not Apache)

PHP 5.0.4

MYSQL

 

Your support would be greatly appreciated

 

Thnaks & Regards

:rolleyes:

Link to comment
Share on other sites

Vger,

Thank you very much for your reply. I Have changed the configure.php but it's still pointing to private IP address. I have restarted the server and IIS services but no luck. Bellow is the configure.php file. could you please take a look.

 

Thanks,

Makalpge

 

 

<?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.computec.lk'); // eg, http://localhost - should not be empty for productive servers

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

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

define('HTTP_COOKIE_DOMAIN', 'www.computec.lk');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '');

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', 'C:/Program Files/Apache Group/Apache2/public_html/catalog/');

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', 'time2w0rk');

define('DB_DATABASE', 'oscommerce');

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

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

?>

Link to comment
Share on other sites

Try this:

 

define('DB_SERVER', 'localhost');

 

And if that works, or even if it doesn't work, change your MySQL User Name and Password - which you should never post to a public forum. Not everyone on the internet is a nice person!

 

One other thing, check in both of the includes/local/ folders to see if they contain alternative configure.php files. If you find any just rename them.

 

Vger

Link to comment
Share on other sites

Vger,

I am appreciate your continous help to solve my problem.

Even after change the db server settings still no luck ( There is no any other configure.php files in any directory). Do I have to do anything to take effect changes i have done for configure.php?

 

When I click the items on shooping cart it's still pointing to loocal address like bellow

http://192.168.0.11/catalog/product_info.p...176199fbc142a08

 

Regards,

Manoj

Link to comment
Share on other sites

Vger,

Thank you so much...

It's working !!!

Please ignore my previous post. Actually I found another configure.php in another directory. So it's working perfect now. Another one more question if you don't mind. How can I assign admin password for /catalog/admin/index.php page?

 

 

Thanks,

Manoj

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...