Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems with fresh install


itfitz

Recommended Posts

Posted

1. Cannot log into website as customer. Takes me to a search page to look for "localhost"

 

2. Cannot add items to shopping cart

 

3. Cannot install any modules in administration. Under each one of the modules,(shipping, order total, and payment) there are non listed and just an install button, which when clicked does nothing.

 

I have included the code for both the configue.php files which are the only ones I changed.

 

Thanks,

Shawn

 

Here is the code for my /catalog/includes/configure.php:

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

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

define('HTTPS_COOKIE_PATH', '/ecommerce/os/catalog/');

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

define('DIR_WS_HTTPS_CATALOG', '/ecommerce/os/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', '/localhost/ecommerce/os/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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'lotions2_p_os1');

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

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

?>

 

 

 

And here is my code for cotalog/admin/includes/configure.php:

 

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

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'https://localhost');

define('ENABLE_SSL_CATALOG', true); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/localhost/ecommerce/os/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/ecommerce/os/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/localhost/ecommerce/os/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/localhost/ecommerce/os/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/localhost/ecommerce/os/catalog/'); // absolute path required

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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'lotions2_p_os1');

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

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

?>

 

 

Thanks,

Shawn

If it was easy, anyone could do it!

Posted
1.  Cannot log into website as customer.  Takes me to a search page to look for "localhost"

 

2.  Cannot add items to shopping cart

 

3.  Cannot install any modules in administration.  Under each one of the modules,(shipping, order total, and payment) there are non listed and just an install button, which when clicked does nothing. 

 

I have included the code for both the configue.php files which are the only ones I changed.

 

Thanks,

Shawn

 

Here is the code for my /catalog/includes/configure.php:

 

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

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

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

  define('HTTP_COOKIE_DOMAIN', 'localhost');

  define('HTTPS_COOKIE_DOMAIN', 'localhost');

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

  define('HTTPS_COOKIE_PATH', '/ecommerce/os/catalog/');

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

  define('DIR_WS_HTTPS_CATALOG', '/ecommerce/os/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', '/localhost/ecommerce/os/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', 'localhost'); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', '');

  define('DB_SERVER_PASSWORD', '');

  define('DB_DATABASE', 'lotions2_p_os1');

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

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

?>

And here is my code for cotalog/admin/includes/configure.php:

 

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

  define('HTTP_CATALOG_SERVER', 'http://localhost');

  define('HTTPS_CATALOG_SERVER', 'https://localhost');

  define('ENABLE_SSL_CATALOG', true);  // secure webserver for catalog module

  define('DIR_FS_DOCUMENT_ROOT', '/localhost/ecommerce/os/catalog/'); // where the pages are located on the server

  define('DIR_WS_ADMIN', '/ecommerce/os/catalog/admin/');  // absolute path required

  define('DIR_FS_ADMIN', '/localhost/ecommerce/os/catalog/admin/'); // absolute pate required

  define('DIR_WS_CATALOG', '/localhost/ecommerce/os/catalog/');  // absolute path required

  define('DIR_FS_CATALOG', '/localhost/ecommerce/os/catalog/'); // absolute path required

  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', 'localhost'); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', '');

  define('DB_SERVER_PASSWORD', '');

  define('DB_DATABASE', 'lotions2_p_os1');

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

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

?>

Thanks,

Shawn

 

 

Just an addon to get this back to the top of the list.

 

Please help!!

If it was easy, anyone could do it!

Posted
https://localhost ?

 

First thing you want to do is turn off the SSL.

 

Well, I took an exact replica of my files on the live store website. So I will go in and kill the ssl, or at least take a stab at it.

If it was easy, anyone could do it!

Posted
Well, I took an exact replica of my files on the live store website.  So I will go in and kill the ssl, or at least take a stab at it.

Changed the "enable ssl" from true to false.

 

Is there anything else?

If it was easy, anyone could do it!

Posted
Changed the "enable ssl" from true to false. 

 

Is there anything else?

anyone else have any other ideas?

If it was easy, anyone could do it!

Posted

All that you need to do is to install the catalog folder in the root of your local server e.g. htdocs or webpages in Apache or Xitami. You are making things more complicated for yourself by having it as

 

ecommerce/os/catalog/ (by the way, lose the 'localhost' from in front of this)

 

then this would be

 

define('HTTP_COOKIE_DOMAIN', 'catalog');

 

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

 

 

Vger

Posted
All that you need to do is to install the catalog folder in the root of your local server e.g. htdocs or webpages in Apache or Xitami.  You are making things more complicated for yourself by having it as

 

ecommerce/os/catalog/ (by the way, lose the 'localhost' from in front of this)

 

then this would be

 

define('HTTP_COOKIE_DOMAIN', 'catalog');

 

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

Vger

Well, we are making some progess. I can now log into the website locally, add items to the cart, and proceed to checkout, I just cant ship or pay for anything.

If it was easy, anyone could do it!

Posted
All that you need to do is to install the catalog folder in the root of your local server e.g. htdocs or webpages in Apache or Xitami.  You are making things more complicated for yourself by having it as

 

ecommerce/os/catalog/ (by the way, lose the 'localhost' from in front of this)

 

then this would be

 

define('HTTP_COOKIE_DOMAIN', 'catalog');

 

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

Vger

oh, so if I copy the catalog folder over to the root, some more of the problems will resolve themselves? Sounds to good to be true.

If it was easy, anyone could do it!

Posted

Now the the SSL settings have been change, let's move on to absolute and relative paths.

 

Look at this line:

define('DIR_FS_CATALOG', '/localhost/ecommerce/os/catalog/');

on your desktop it should be, for example:

define('DIR_FS_CATALOG', 'c:/www/catalog/');

Which depends on where your catalog resides.

 

It is now just a matter of checking the relative and absolute address settings. (only you know all these settings, because it's on your desktop) :)

Posted
Now the the SSL settings have been change, let's move on to absolute and relative paths.

 

Look at this line:

define('DIR_FS_CATALOG', '/localhost/ecommerce/os/catalog/');

on your desktop it should be, for example:

define('DIR_FS_CATALOG', 'c:/www/catalog/');

Which depends on where your catalog resides.

 

It is now just a matter of checking the relative and absolute address settings. (only you know all these settings, because it's on your desktop) :)

 

everything is actually located at:

 

C:\phpdev\www\ecommerce\os\catalog

If it was easy, anyone could do it!

Posted
everything is actually located at:

 

C:\phpdev\www\ecommerce\os\catalog

 

do all of these:

 

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

 

need to be that way as well?

If it was easy, anyone could do it!

Posted

No problems If I can help just give me an email :D

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Archived

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

×
×
  • Create New...