Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL


Guest

Recommended Posts

Posted

Unable to check out with SSL turned on!

 

I've searched this entire forum and no one seems to be able to answer my question.

 

 

 

My SSL server and my Web servr are 2 different servers;

my web server is

http://www.mysite.com

and

my SSL server is

https://ssl4.secureserver.net/mysite

 

when I enter the above paths in the install wizard it installs and configures both the admin and the catalog configure.php with no problem.

 

However if I go to check out or if I go to view my account and SSL is enabled I get an Http 404 error.

 

My ISP has assured me that SSL is working on my site.

 

My question is

What is it that makes OsCommerce tick when it processes a secure transaction.

 

Do I need to install files on my secure server?

 

My ISP has confirmed that Directory index displays are turned off on the SSL server, so I need to specify what you I'm looking for.

 

 

I even tried putting all of the files on the secure server and installing from that location but when I do that I get an access forbidden http 403 error

and besides I don't really want to be doing this since I only want to make the transaction go through the secure server.

 

Thanks in advance! Paitiently and desperately awaiting anyone who has any knowledge about this to respond.

 

River :roll: :wink:

Posted

My host uses a similar setup. I installed without specifying a secure server.

 

Later, when I was ready to try it out, I added the server name to the config file and changed the Enable setting to true.

 

At first it error'd out when checking out, but I quickly discovered that I had entered only the secure server domain, not my domain's subdirectory. Once I did that, it started working right away.

 

Not sure if this will help other than to let you know I got it working using the same ssl structure.

 

Ed

Posted

Thanks Ed!

 

I will try your suggestion.

 

I also found this fix in the archives but it appears to have been ammended and the base tag in question are not there to view.

Posted: Sun Sep 01, 2002 11:50 am Post subject: Re: SSL enabled but not secure?

 

--------------------------------------------------------------------------------

 

Hello garry This is a Common problen that you get when useing shared servers the best way to fix this at this time is to remove the base tags you need to open all the main pages in you catalog file and delete this line

 

 

 

when you have done that you will have no problems with the shared ssl

 

Removeing the base tags wont cause any harm to your catalog

 

you could first try this on your account.php then you will see if it helps or not.

Posted

Ok! I got it to work.

 

The catalog folder and its respective files need to exist

simultaneusley in the secure server as well as the non secure web site.

 

IMPORTANT!

The configure.php's in the catalog folder and the one in the admin folder

need to be updated manualy in both the secure server as well

as the web server . (a total of (4) configure.php files)

 

Once I did this it worked just fine.

 

both "catalog" configure.php's the one in the secure and the one in the not secure server have the identical settings.

 

the same holds true for the "admin" configure.php's :lol:

 

Note: the Admin configure.php is not the same as the "catalog" configure.php

 

 

I'm writing this all down in hopes that it will help the next person.

  • 1 year later...
Posted

Hi guys

 

I'm also having two different server adresses for my store. Can annyone post the copy of their catalog file so I could compare it with my. I'm having problems with switching between http:// and https://.

 

Let say that My SSL server and my Web server are 2 different servers;

my web server is on:

http://www.mysite.com

and

my SSL server is on:

https://ssl.webhost4life.com/mysite

 

I've copyed all the include folder on ssl server and also all files that needs to be caried on ssl inviroment.

 

Here is also my configure sample:

 

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

? define('HTTPS_SERVER', 'https://ssl.webhost4life.com/mysite'); // eg, https://localhost - should not be empty for productive servers

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

? define('HTTP_COOKIE_DOMAIN', 'www.mysite.com/');

? define('HTTPS_COOKIE_DOMAIN', 'https://ssl.webhost4life.com');

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

? define('HTTPS_COOKIE_PATH', '/mysite/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', '/home/httpd/vhosts/sslcatacomb.com/web_users/digitalplusdvd/catalog/');

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

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

 

Everithing works fine exept when I switch beetwen https (log in) and http I get disconnected (log out) as a visitor on my store therefore I need too log in everitime I go to secure page and back

 

Any Ideas guys :huh:

Posted

Made mistake in my post.

It's not:

define('HTTPS_COOKIE_DOMAIN', 'https://ssl.webhost4life.com');

 

but is:

define('HTTPS_COOKIE_DOMAIN', 'ssl.webhost4life.com');

  • 8 months later...
Posted

Hello, I was finally able to make it work on shared SSL, however the images on the SSL server are not showing, perhaps someone can help with this?

 

Here is my configure.php file, wich is identical in both the non-ssl and ssl servers. Also, I only have checkout_shipping.php on the ssl server and it works but without images.

 

Non SSL site is alnaturalfloristas.com and ssl site is https://caraycafe.com/~natural

 

thx

 

// Define the webserver and path parameters

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

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

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

define('HTTPS_SERVER', 'https://caraycafe.com/~natural');

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

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

define('HTTPS_COOKIE_DOMAIN', 'https://caraycafe.com/~natural');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

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

define('DIR_WS_ICONS', '/tienda/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

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

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'natural_osc9');

define('DB_SERVER_PASSWORD', 'T_YB_lzcYK');

define('DB_DATABASE', 'natural_osc9');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql');

// STS: ADD: Define Simple Template System files

define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');

define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');

define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

// STS: EOADD

?>

  • 3 months later...
Posted

Hi all,

 

I think I got mine working. I copy the catalog dir from the non-secure to the secured server and things seems to work; https:// shows in the URL but IE does not show the LOCK icon at the bottom right corner of the browser. Any idea why?

 

Thanks

Posted
Hi all,

 

I think I got mine working.  I copy the catalog dir from the non-secure to the secured server and things seems to work; https:// shows in the URL but IE does not show the LOCK icon at the bottom right corner of the browser.  Any idea why?

 

Thanks

It helps to have a link and/or a peek at your configure.php file. Did you set ssl to true and put the ssl url in there?

Posted
It helps to have a link and/or a peek at your configure.php file.  Did you set ssl to true and put the ssl url in there?

yes I did all that.

 

Here's the configure section:

 

define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost -

define('HTTPS_SERVER', 'https://secure.mysite.com'); // eg,

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

define('HTTP_COOKIE_DOMAIN', 'www.mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'secure.mysite.com');

  • 7 months later...
Posted

My shop is running just fine under SSL.

However once i open the admin window everything seems normal, i am connected to an secure unknown ssl connection.

once i click on any link in the admin window like configuration, i get the message:

 

http 404 not found! any ideas?

 

interesting is that the links did not even work when i went to the unsecured admin panel.

 

here is what i did to the admin/includes/configure.php file:

 

 

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

define('HTTP_CATALOG_SERVER', 'http://catalog1.mysite.com/usa');

define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/mysite/public_html/usa/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/mysite/public_html/usa/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/mysite/public_html/usa/'); // 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/');

 

 

 

the location of my ssl: https://www.mysite.com

 

thanks in advance.

 

chris

Posted

ok, got it

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

to:

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

 

:blush:

Posted
Hello, I was finally able to make it work on shared SSL, however the images on the SSL server are not showing, perhaps someone can help with this?

 

Here is my configure.php file, wich is identical in both the non-ssl and ssl servers. Also, I only have checkout_shipping.php on the ssl server and it works but without images.

 

Non SSL site is alnaturalfloristas.com and ssl site is https://caraycafe.com/~natural

 

thx

 

// Define the webserver and path parameters

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

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

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

define('HTTPS_SERVER', 'https://caraycafe.com/~natural');

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

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

define('HTTPS_COOKIE_DOMAIN', 'https://caraycafe.com/~natural');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

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

define('DIR_WS_ICONS', '/tienda/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

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

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'natural_osc9');

define('DB_SERVER_PASSWORD', 'T_YB_lzcYK');

define('DB_DATABASE', 'natural_osc9');

  define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql');

// STS: ADD: Define Simple Template System files

  define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

  define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

  define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

  define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');

  define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');

  define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

  define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

// STS: EOADD

?>

on these lines

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

define('DIR_WS_ICONS', '/tienda/icons/');

change to:

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

define('DIR_WS_ICONS', 'icons/');

 

Then it should work.

Posted

Have another problem now.

Somehow the product images in my admin panel do not show up.

I played around with my settings for quiet a while now, but i cannot figure out where to set the right path. for the images.

the image link is like this: www.myshop.com/images/image1.jpg, but it should be:

www.myshop.com/usa/images/image1.jpg.

where do i have to enter the path to the "usa" folder?

If i do it in this line:

 

define('DIR_WS_IMAGES', 'images/');, then the path of the images on top of the page changes, but not my product image path. ??

 

Please see the rest of my php code two posts above.

 

Any idea?

 

Thanks in advance,

 

chris

Posted

Sven

 

try blanking out you password next time you post, its not a good idea to let everybody know it.

 

define('DB_SERVER_USERNAME', 'xxxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxxx');

define('DB_DATABASE', 'xxxxxxxxxxx'

Posted

sorry one other thing that bugging me, you site says powered by deGUATE but it a osCommerce site yes ? so why not powered by osCommerce, ????????????

Archived

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

×
×
  • Create New...