Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP not rendering after SSL configured for Checkout


Guest

Recommended Posts

Posted

I'm not sure how to approach this one...

 

I've followed the docs for oscommerce on how to setup SSL. Doing a test I created my own cert and configured my /catalog/includes/configure.php to:

 

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://pcs-alaska.com');

define('HTTPS_SERVER', 'https://pcs-alaska.com');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'http://pcs-alaska.com');

define('HTTPS_COOKIE_DOMAIN', 'pcs-alaska.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_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', '/var/www/catalog/');

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

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

 

Now when I try to checkout I get a propmt to download the checkout_shipping.php page....

 

When I remove the https entries in the above configure.php file everything works. I verified that apache is configured correctly for PHP.

 

I'm also not sure if I need to configure the /catalog/admin/configure.php also for SSL on checkout. I really don't need it for the admin interface...or do I?

 

Thank you very much!

 

Tim

oscommerce 2.2 M2

Debian Sarge

http://pcs-alaska.com/catalog (still testing, not live)

Posted

define('HTTP_COOKIE_DOMAIN', 'http://pcs-alaska.com');

define('HTTPS_COOKIE_DOMAIN', 'pcs-alaska.com');

 

to

 

define('HTTP_COOKIE_DOMAIN', '.pcs-alaska.com');

define('HTTPS_COOKIE_DOMAIN', '.pcs-alaska.com');

 

for the prompt for downloading, sounds like ssl is on another server, etc. do you have your own ssl certificate? if not, set to false in configure.php

Posted
define('HTTP_COOKIE_DOMAIN', '.pcs-alaska.com');

define('HTTPS_COOKIE_DOMAIN', '.pcs-alaska.com');

 

for the prompt for downloading, sounds like ssl is on another server, etc. do you have your own ssl certificate? if not, set to false in configure.php

 

I made the change suggested above - I still get the prompt to download the checkout_shipping.php page.

 

Yes, I do have another server on that network running Apache SSL. Although; I have verified that I'm getting the correct SSL cert when trying to checkout of the e-store. For troubleshooting purposes I have stopped Apache on my other server - same results...

 

You are welcome to look at the store and verify that you get prompted to accept a SSL cert from the Raven's Roost. I created the certificate.

 

Please post other ideas.

 

Thank you very much!

 

Tim

oscommerce 2.2 M2

Debian Sarge

http://pcs-alaska.com/catalog (still testing, not live)

Posted

Problem solved. Debian give you two choices for SSL (mod_ssl or apache-ssl). I install apache-ssl which is a stand alone server therefore; I had to add the php module to the /etc/apache-ssl/modules.conf. Once I restarted the server my checkout starting working under https://

 

Thanks for the help,

Tim

Archived

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

×
×
  • Create New...