Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL problems please help!


Guest

Recommended Posts

Posted

Seems that everything I have read over the last couple of days you need to modify the following two files admin/includes/configure.php and includes/configure.php

 

and should look like this

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

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

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

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

define('HTTPS_COOKIE_DOMAIN', 'https://www.yourdomain.com');

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

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

 

 

As you can see from my files, I have no "catalog"/admin. Is this my problem, or does it not matter? These are the raw files, I have tried modifing them so many ways with no success. Can you guys please help me. BTW, I do have my dedicated ip and my cert has been uploaded to my CPanel.

 

 

<?php

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

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

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

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/public_htm/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', '/home/nto12/public_html/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/home/nto12/public_html/');

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

 

 

<?php

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

define('HTTPS_SERVER', 'http://mysite.com');

define('ENABLE_SSL', false);

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

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_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/nto12/public_html/');

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

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

Posted

Hi,

Where you admin is matters not so long as its path is in the cofigure.php if your store is root then it will simply be /admin/ (as you have it already)

 

These two lines

 

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

define('HTTPS_COOKIE_DOMAIN', 'https://www.yourdomain.com');

 

 

should be

 

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

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

 

Where the server states HTTPS then it should begin with https://www.yoursite.com and not http://www.yoursite.com

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Hi,

Where you admin is matters not so long as its path is in the cofigure.php if your store is root then it will simply be /admin/ (as you have it already)

 

These two lines

 

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

define('HTTPS_COOKIE_DOMAIN', 'https://www.yourdomain.com');

 

 

should be

 

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

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

 

Where the server states HTTPS then it should begin with https://www.yoursite.com and not http://www.yoursite.com

 

 

Thanks for responding Fimble!!!

 

I just see all the documentation supporting the catalog for cookies. I will give it a try.

 

Then where will the cookie information be stored?

 

Are there anymore lines that need to be modified?

 

Does it matter to have the following in bold

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

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

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

Posted

Thanks for responding Fimble!!!

 

I just see all the documentation supporting the catalog for cookies. I will give it a try.

 

Then where will the cookie information be stored?

 

Are there anymore lines that need to be modified?

 

Does it matter to have the following in bold

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

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

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

 

 

Seems like it is working, THANKS...

 

However a new issue has come up my File_Manger is showing an error

 

Warning: dir(/home/public_htm/) [function.dir]: failed to open dir: No such file or directory in /home/nto12/public_html/admin/file_manager.php on line 184

 

Fatal error: Call to a member function read() on a non-object in /home/nto12/public_html/admin/file_manager.php on line 185

Posted

Seems like it is working, THANKS...

 

However a new issue has come up my File_Manger is showing an error

 

Warning: dir(/home/public_htm/) [function.dir]: failed to open dir: No such file or directory in /home/nto12/public_html/admin/file_manager.php on line 184

 

Fatal error: Call to a member function read() on a non-object in /home/nto12/public_html/admin/file_manager.php on line 185

 

1. Make this change to your admin/ configure.php file

 

From this: define('DIR_FS_DOCUMENT_ROOT', '/home/public_htm/');

 

To this: define('DIR_FS_DOCUMENT_ROOT', ''/home/nto12/public_html/'');

 

2. Get rid of File Manager. It's a hacker's backdoor to your shop. Click >>here

 

If you need to edit files, download them to our computer and edit them using a text editor,(not ms word).

Upload them back to your server when done.

 

Some free text editors: notepad++, crimson editor, editpad lite, pspad

Archived

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

×
×
  • Create New...