Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Apache (XAMPP) on local Vista


cornishpirate

Recommended Posts

My faithful old XP desktop development PC died, so I was forced to carry on using a Vista machine to host Apache.

 

The only problem is that Add to Basket no longer works, so I guess it's a configure/sessions problem.

 

Running everything as Administrator, so can't see why there should be any permissions problems.

 

Any ideas ?

Link to comment
Share on other sites

What settings are you using in admin under Configuration->Sessions and also in your configure.php

 

define('HTTP_SERVER', 'http://www.xxxxx.co.uk');

define('HTTPS_SERVER', '');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'xxxxx.co.uk');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '');

define('CONFIG_CACHE',DIR_WS_INCLUDES . 'nhcache.php');

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:/xampp/htdocs/catalog//');

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

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

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'yyyyyyyyy');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

 

From sessions:

 

Session Directory tmp

Force Cookie Use True

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session True

 

This all worked under XP. Setting Force Cookie to false makes no difference - still can't Add to Basket.

Link to comment
Share on other sites

If you are running the site on your local machine you need to change

define('HTTP_SERVER', 'http://www.xxxxx.co.uk');
define('HTTP_COOKIE_DOMAIN', 'xxxxx.co.uk');

to localhost unless you are using a hosts file to simulate a domain

 

Force cookies must also be set to false - cookies won't work on a localhost

 

When "add to basket" doesn't work how are you trying to add to basket and exactly what happens?

Link to comment
Share on other sites

If you are running the site on your local machine you need to change

define('HTTP_SERVER', 'http://www.xxxxx.co.uk');
define('HTTP_COOKIE_DOMAIN', 'xxxxx.co.uk');

to localhost unless you are using a hosts file to simulate a domain

 

Force cookies must also be set to false - cookies won't work on a localhost

 

When "add to basket" doesn't work how are you trying to add to basket and exactly what happens?

 

Cookies set to False - same result: goes onto shopping_bag to show empty basket.

 

Yes - using Hosts files, set through Hostsman.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...