Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

yet another SSL question


biglou

Recommended Posts

I installed osCommerce and had it working fine. I then purchased an SSL and it was installed by my web host. I edited the two config.php files as per instructions here, but my store does not seem to be secure. If I type in the address of the store with the HTTPS manually, the page comes up as secure, but when I click on a link it takes me to an insecure http page. Does anyone have any ideas what I have done wrong? I have searched the forums here, but can't seem to find a solution to this problem.

 

Any help is greatly appreciated.

 

Michael

Link to comment
Share on other sites

I thought this might help as well. Here are the config.php files.

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'biglousbackroom.com');

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

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

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

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

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

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

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'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'biglo2_osc1');

define('DB_SERVER_PASSWORD', 'p635usXP1tFb');

define('DB_DATABASE', 'biglo2_osc1');

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

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

 

 

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

define('HTTP_CATALOG_SERVER', 'http://biglousbackroom.com');

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

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

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

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

define('DIR_FS_ADMIN', '/home/biglo2/public_html/store/admin/'); // absolute pate required

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

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

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'biglo2_osc1');

define('DB_SERVER_PASSWORD', 'p635usXP1tFb');

define('DB_DATABASE', 'biglo2_osc1');

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

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

 

I also read a link I thought was relevant to my problem and created and ran the my myenv.php file. The results were:

 

HTTP HOST: www.biglousbackroom.com

Server Port: 443

SSL Status: on

Fowarded Server:

Fowarded Host:

Fowarded By:

 

I tried changing line 41 in application_top.php from on to 443 with no luck. I did change it back.

 

Any help is appreciated.

 

Michael

Link to comment
Share on other sites

I thought this might help as well. Here are the config.php files.

 

 

HTTP HOST: www.biglousbackroom.com

Server Port: 443

SSL Status: on

Fowarded Server:

Fowarded Host:

Fowarded By:

 

I tried changing line 41 in application_top.php from on to 443 with no luck. I did change it back.

 

Any help is appreciated.

 

Michael

doh!!

 

define('HTTPS_SERVER', 'https://www.biglousbackroom.com');

 

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

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

doh!!

 

define('HTTPS_SERVER', 'https://www.biglousbackroom.com');

 

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

 

Thanks Alan, but now I am even more confused. I looked at the structure of my site and it appears I have the store in two places. It is in the folder public_html and it is in the www folder. I have been always made changes to the one in the public_html folder.

 

I am supposed to have two versions and if not, which one do I want?

 

Thanks for the help.

 

Michael

Link to comment
Share on other sites

I solved the problem!!!!! Oddly enough it had nothing to do with all the posted information above, it had to do with file permissions. My web host must have set the permissions on the config.php files so I could not write to them. Therefore, even though I had made the changes on my desktop when I uploaded the altered file it was not overwriting the existing file. I figured this out by re-downloading the file from the server and opening it up to edit and saw that none of my changes were in place. I deleted the file from the server and uploaded the edited files and it worked. I did get a warning that the config.php file could be written to, so I had to go back in and reset the permission.

 

Thanks to everyone who lent a hand.

 

Michael

Link to comment
Share on other sites

Thanks Alan, but now I am even more confused. I looked at the structure of my site and it appears I have the store in two places. It is in the folder public_html and it is in the www folder. I have been always made changes to the one in the public_html folder.

 

I am supposed to have two versions and if not, which one do I want?

 

Thanks for the help.

 

Michael

They're the same folder. the www "folder" is probably a symbolic link to the public_html folder. Some hosts set it up that way to make it easy for newbies.

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

Archived

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

×
×
  • Create New...