Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enable SSL


f9Pete

Recommended Posts

Hi guys (and gals),

 

I am just configuring my osCommerce installation and I am having a bit of a mare enabling ssl. My config file is as follows

 

 

// Define the webserver and path parameters

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

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

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

define('HTTPS_SERVER', 'https://www.f9radio.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.f9radio.com');

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

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

 

 

I have also down the line 41 fix here http://www.oscommerce.com/forums/index.php?sho...169367&hl=1and1

 

....but still no joy.

 

My hoster is 1and1 in the uk

 

My ssl is dedicated to www.f9radio.com

 

HTTP HOST: www.f9radio.com

Server Port: 443

SSL Status: 1

 

Any ideas ?

 

 

Thanks in advance

 

Pete

Link to comment
Share on other sites

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

define('HTTPS_SERVER', 'https://www.f9radio.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.f9radio.com');

define('HTTPS_COOKIE_DOMAIN', 'www.f9radio.com');

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

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

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

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

 

Then do a forum search for 1and1, because there's something else you need to do (application_top.php?) to get ssl to work with 1and1.

 

Vger

Link to comment
Share on other sites

Hey there,

 

Unfortunately im still having a problem with this...

 

Can some one gimme the low down, step by step plz as im getting into a bit of a tangle !

 

Also I did a series of forum searches for the additional steps with application_top.php but could find anything relevent.

 

Any help with this would be much appreciated.

 

My details are on the first post in this thread.

 

Many thanks in advance,

 

Pete Cox

Link to comment
Share on other sites

You said in your first post that you made the line 41 fix.

 

It appears you haven't... Read this:

 

http://www.oscommerce.com/forums/index.php?sho...23entry672623

 

It's a very simple change.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

I found this in another post. It's what you're looking for I think.

 

Around line 41 in catalog/includes/application_top.php

 

find:

 

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

change to:

 

$request_type = (getenv('HTTPS') == '1') ? 'SSL' : 'NONSSL';

 

This should work with a dedicated cert on 1and1

 

Vger

Link to comment
Share on other sites

Whoops im in the wrong file...no wonder !

 

 

Nice padlocks ahoy !

 

One last thing could you confirm for me whether this is correct for the config file:

 

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

define('HTTPS_SERVER', 'https://www.f9radio.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.f9radio.com');

define('HTTPS_COOKIE_DOMAIN', 'www.f9radio.com');

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

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

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

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

define('DIR_FS_DOCUMENT_ROOT', '/kunden/homepages/17/d88939245/htdocs/f9radio/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/kunden/homepages/17/d88939245/htdocs/f9radio/catalog/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/kunden/homepages/17/d88939245/htdocs/f9radio/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/');

 

Many thanks,

 

 

Pete

Link to comment
Share on other sites

Yes, those settings are fine, and your ssl cert is working properly now.

 

Vger

 

Thanks for you help guys, php is not my strong point to say the least !

 

I must say that this eComm solution is excellent, thet product attributes are GREAT !

 

Well done you php guru's ! :thumbsup:

 

 

 

Pete

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...