Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL problems


edgeways

Recommended Posts

Posted

When I attempted to install SSL into includes/configure.php this error message now follows me around the site and it refused to let me enter the checkout/add to cart. Of course the tech support assured me setting the SSL was easy...

 

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/redrabbi/public_html/osCommerce/includes/configure.php:57) in /home/redrabbi/public_html/osCommerce/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/redrabbi/public_html/osCommerce/includes/configure.php:57) in /home/redrabbi/public_html/osCommerce/includes/functions/sessions.php on line 67

 

 

 

here is the modified configure.php

 

 

 

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://redrabbitriversmith.com');

define('HTTPS_SERVER', 'https://ssl109.securednshost.com/~redrabbi');

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

define('HTTP_COOKIE_DOMAIN', 'http://redrabbitriversmith.com');

define('HTTPS_COOKIE_DOMAIN', 'https://ssl109.securednshost.com/~redrabbi');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

define('DIR_WS_IMAGES', '/osCommerce/images/');

 

 

any suggestions? (I am kinda hoping I am just missing something stupid that will make me look foolish)

 

thanks

Posted

You've most likely got some white space after the final ?> or before the <?php at the beginning.

 

Delete it.

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)

Posted

OK, good news, bad news story. Good news - you get the padlock.

 

Your next question will be...

 

Where's my images when I'm in ssl?

 

You probably are on a server that has a special private_html folder or a similiarly named folder where files accessed via ssl must reside.

 

You can copy the files into that directory. In other words you duplicate the store on both sides.

 

There's other solutions but that is the most basic.

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)

Archived

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

×
×
  • Create New...