Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC AND SSL


jfo9696

Recommended Posts

Posted

So my ssl is all there everything seems to be secure and all the nine yards.

 

Now i have seen post telling me where do I have to go to change my SSL value to true but I have nooo idea on how to get there. anyone can help mu dumb ass? please?

Posted

How do you make changes to pages, or transfer files from your site to your PC?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

when I edit information on my product I use the txt editor that is on the page, but when adding pictures I usually use filezilla for tp file transfer

Posted

To tell your store to start using your SSL certificate, you have to make changes in this file:

 

/store/inlcudes/configure.php

 

Since you use FTP, you probably want to use a text editor on your PC, Like Notepad. DO NOT USE WORD TO EDIT PHP FILES!!!

 

If you copy/paste the contents of this file:

 

/store/inlcudes/configure.php

 

into your next post, I'll show you what to change to get your store to start using the SSL certificate.

 

Just post the top part that looks about like this:

 

<?php
/*
 $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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', ''); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');

 

Don't post any of the lines that come after the COOKIE_PATH definitions.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I was looking at the code and I have several lines after the cookies should I erase it or not? I have changed the ssl to true instead of false what else can you tell me? to help me

Posted

All you need to post are the lines I said.

 

Those are all we need to look at/maybe alter to get SSL working.

;)

 

So, the answer to this question:

 

I was looking at the code and I have several lines after the cookies should I erase it or not?

Would be YES.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

hey how's it going I have played and played with the part that you told me about it and when ever I erased the lower half of the codes to make it look like your my page did not go anywhere. gave me a bunch of warnings YAKS! I was able t bring it back up to its precious setting since I fallowed your rules to back up first. anything you can do to help me from here on out I'd appreciated it. been fighting with it for 2 days!

Posted

I didn't mean to erase the code.

 

Just don't post it here.

 

I can't help if you don't post the code I said I needed to see...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

well here is the code that I have with out the lower half. I suppose my side of the story....

 

<?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://jetsfloridaoutdoors.com'); // eg, http://localhost - should not be empty for productive servers

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

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

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

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

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

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

Posted

Change the lines below to what I have posted:

 

define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '.jetsfloridaoutdoors.com');
define('HTTPS_COOKIE_DOMAIN', '.jetsfloridaoutdoors.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

How's it going Gen, i did do the changes like you told me to do but, I still don't have the lock locked :(

Posted

Please post the code from your /store/includes/header.php file.

 

If you view the site using Firefox, it's "locked".

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

How's it going!

 

code

 

<?php

 

/*

 

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

 

 

osCommerce, Open Source E-Commerce Solutions

 

http://www.oscommerce.com

 

 

 

Copyright © 2003 osCommerce

 

 

 

Released under the GNU General Public License

 

*/

 

 

 

// check if the 'install' directory exists, and warn of its existence

 

if (WARN_INSTALL_EXISTENCE == 'true') {

 

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

 

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

 

}

 

}

 

 

 

// check if the configure.php file is writeable

 

if (WARN_CONFIG_WRITEABLE == 'true') {

 

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

 

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

 

}

 

}

 

 

 

// check if the session folder is writeable

 

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

 

if (STORE_SESSIONS == '') {

 

if (!is_dir(tep_session_save_path())) {

 

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

 

} elseif (!is_writeable(tep_session_save_path())) {

 

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

 

}

 

}

 

}

 

 

 

// check session.auto_start is disabled

 

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

 

if (ini_get('session.auto_start') == '1') {

 

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

 

}

 

}

 

 

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

 

if (!is_dir(DIR_FS_DOWNLOAD)) {

 

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

 

}

 

}

 

 

 

if ($messageStack->size('header') > 0) {

 

echo $messageStack->output('header');

 

}

 

?>

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 

<tr class="header">

 

<th valign="middle" align="left" width="236"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'main_logo_left_everglades2.png', 'Jets Florida Outdoors') . '</a>'; ?></th>

 

<th valign="middle" align="right" background="http://jetsfloridaoutdoors.com/store/images/main_logo_bg_everglades2.jpg"><?php echo tep_image(DIR_WS_IMAGES . 'main_logo_right.png'); ?></th>

 

</tr>

 

</table>

 

<table border="0" width="100%" cellspacing="0" cellpadding="1" align="center">

 

<tr class="headerNavigation">

 

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

 

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?> </a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 

</tr>

 

</table>

 

<?php

 

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

 

?>

 

<table border="0" width="100%" cellspacing="0" cellpadding="2">

 

<tr class="headerError">

 

<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

 

</tr>

 

</table>

 

<?php

 

}

 

 

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

 

?>

 

<table border="0" width="100%" cellspacing="0" cellpadding="2">

 

<tr class="headerInfo">

 

<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

 

</tr>

 

</table>

 

<?php

 

}

 

?>

Posted

MAKE A BACKUP BEFORE MAKING ANY EDITS!!!

 

In the file you just posted, alter this line:

 

<th valign="middle" align="right" background="http://jetsfloridaoutdoors.com/store/images/main_logo_bg_everglades2.jpg"><?php echo tep_image(DIR_WS_IMAGES . 'main_logo_right.png'); ?></th>

To:

 

<th valign="middle" align="right" background="images/main_logo_bg_everglades2.jpg"><?php echo tep_image(DIR_WS_IMAGES . 'main_logo_right.png'); ?></th>

Let me know when this is done.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Alright it is done.

Once again man thank you soo much for all the help!

Posted

But i am still getting reports from OSC saying that I am not protected by a secure ssl connection. =(

Posted

Would you repost the file again.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
But i am still getting reports from OSC saying that I am not protected by a secure ssl connection. =(

If you're talking about your Admin, you have to access your Admin with a SSL URL.

 

It can't use it if you don't request it.

 

Access your Admin with the URL below:

 

https://jetsfloridaoutdoors.com/store/admin

 

I've been trying to get the "Do you want to display non-secure items?" pop-up on in your catalog fixed.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Oh I didn't even know i had unsecure items! please do help me fix that!

 

And how do I access my Admin with a SSL URL.

 

This stuff is alot more compicated than what I though from the get go!

 

Hope your having a good weekend.

 

Andre

Posted
And how do I access my Admin with a SSL URL.

Click the link in my last post.

 

I'd like for you to post the header.php file currently residing on your server.

 

From what I can tell, and I could be mistaken, the change I asked you to make isn't in the code.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...