Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't seem to get secure pages to work....HELP!!


majinfaisal

Recommended Posts

This is my includes/configuration files...

 

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

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_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:/easyphp1-8/www/');

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

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

 

With the Enable_SSL setting to true the checkout pages links consist of https:// but when i click on the link my browser just says connecting to localhost but doesnt move... (im using EASYPHP atm and the site is not yet online) i want to sort out the security issues before i put my site live. Any ideas whats going wrong here?

 

How do i force a page to run secure? so i see the lock etc.

 

I have installed OpenSSL win32 on my machine...but not really sure how to use it!

Link to comment
Share on other sites

You can only enable SSL when you have a certificate to install, on a live server. For your local machine, you need to have define('ENABLE_SSL', false); and all the HTTPS definitions empty.

 

When you upload and go live, you can purchase an SSL Cert and enable it.

Link to comment
Share on other sites

Thanks for the simple and straight forward answer that i have been searching for!I was under the impression that i was atleast able to test the secure stuff locally but i guess not, ill look into SSL once i go live then, probably best to get free trials first of course for testing...thanks again.

Link to comment
Share on other sites

I have read that one of the Apache/MySql/PHP installers replicates an SSL environment, for testing purposes but I can't remember which one. Although setting up SSL isn't too complicated so I wouldn't be overconcerned about it until I needed it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...