Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Setup.............sorry can someone help


Jezthomp

Recommended Posts

Hello

 

After all the problems with fasthosts i changed to flump and have now got a private ssl. They have setup a dedicated IP and i have installed the cert.

 

I have a folder on my site called ssl, with two folders in it certs and keys.

 

Do i need to upload my catalog to that or can i leave alone. Here is my configure.php's as i have changed to but they are not working.

 

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

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

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

  define('HTTP_COOKIE_DOMAIN', 'uvproducts.co.uk');

  define('HTTPS_COOKIE_DOMAIN', '');

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

  define('HTTPS_COOKIE_PATH', '/');

  define('DIR_WS_HTTP_CATALOG', '/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/uvjez/public_html/catalog/');

  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', 'uvjez_interarc');

  define('DB_SERVER_PASSWORD', '*****');

  define('DB_DATABASE', 'uvjez_uvProducts');

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

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

?>

 

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

  define('HTTP_CATALOG_SERVER', 'http://uvproducts.co.uk/catalog');

  define('HTTPS_CATALOG_SERVER', 'https://uvproducts.co.uk/catalog');

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

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

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

  define('DIR_FS_ADMIN', '/home/uvjez/public_html/catalog/admin/'); // absolute pate required

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

  define('DIR_FS_CATALOG', '/home/uvjez/public_html/catalog/'); // 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', 'uvjez_interarc');

  define('DB_SERVER_PASSWORD', '*********');

  define('DB_DATABASE', 'uvjez_uvProducts');

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

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

?>

 

Thankyou for looking and any help :)

Link to comment
Share on other sites

Hello

 

After all the problems with fasthosts i changed to flump and have now got a private ssl. They have setup a dedicated IP and i have installed the cert.

 

I have a folder on my site called ssl, with two folders in it certs and keys.

 

Do i need to upload my catalog to that or can i leave alone. Here is my configure.php's as i have changed to but they are not working.

Thankyou for looking and any help :)

 

 

Hi guys, im having the same trouble and this was the only post i found relative to my situation.

 

So i bought a SSL certificate and installed it using Cpanel. I tried configuring the config file in the includes folder such as:

 

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

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

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

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

 

When i go to the website it works fine but when i try to log in or use any secure pages it just goes blank "cannot be displayed" My certificate is not shared. Now when i use a ftp or cpanel to view my files i dont see a http: folder or https: folder i do have a folder called "ssl" and two folders in it called "certs" and "keys".

 

Now have i not properly installed the ssl or whats going on? help a fellow out guys (or gals). Thanks.

Link to comment
Share on other sites

When these ssl certs were installed did you get your hosting company to reboot the httpd conf files? That has to be done for the ssl to complete its installation properly.

 

For your https_cookie_domain settings it's www.yourdomain.com, and the same for https_cookie_domain settings (with a full ssl installed)

 

Jezthmp - why have you put your site in a 'catalog' folder? Best to run it at the root e.g. http://www.yourdomain.com

 

This [define('DIR_FS_CATALOG', '/home/uvjez/public_html/catalog/');] looks like the file pathway for a subdomain. Check this is the correct path with your hosting company.

 

Vger

Link to comment
Share on other sites

I e-mailed my cert to flump myself and they said it was installed.

 

I just thought it was to change the http:// and the enable to true.

 

I must have done about 20 different variations of the configure.php still with no luck.

 

Dont know what to do :(

 

Thankyou for you help vger

Link to comment
Share on other sites

It doesn't sound like you're having much luck with your hosting does it?

 

Without knowing the setup your new hosting company uses it's difficult to advise as to what may be wrong. I have no experience of cPanel. Lately I have been using Ensim Pro Control Panel - which is very satisfactory.

 

Vger

Link to comment
Share on other sites

I took a quick look at them. Their accounts are overdue at companies house, and they've been going for two years, and changed their name last year from Net Extense Ltd to Flump.Net Ltd. They have their own servers from ukdedicated.com - but how many they have I don't know. They are using RedHat 8, which is now quite old and outdated. RedHat 9 isn't even being fully supported any more.

 

Vger

 

Mmmm sorry, just realised you meant the config files! Will have another lookat them when I get a mo'

Link to comment
Share on other sites

catalog/includes/configure.php

 

<?php
/*
?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', 'http://www.uvproducts.co.uk'); // eg, http://localhost - should not be empty for productive servers
?define('HTTPS_SERVER', 'https://www.uvproducts.co.uk'); // eg, https://localhost - should not be empty for productive servers
?define('ENABLE_SSL', true); // secure webserver for checkout procedure?
?define('HTTP_COOKIE_DOMAIN', 'www.uvproducts.co.uk);
?define('HTTPS_COOKIE_DOMAIN', 'www.uvproducts.co.uk');
?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', 'your pathway here');
?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', '*******');
?define('DB_SERVER_PASSWORD', '*************');
?define('DB_DATABASE', '*******************');
?define('USE_PCONNECT', 'false'); // use persistent connections?
?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

You should then be able to work out what's wrong with admin/includes/configure.php from viewing the file above.

 

Vger

Link to comment
Share on other sites

Thankyou so much Vger it works fine now even get the little padlock which i was worrid about not appearing.

 

Now you me worrid about flump, they were recommend to me and with this set up have been ten times better than fasthosts ever were.

 

Thanks again

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...