Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ssl installation problem


Podge

Recommended Posts

Posted

I nearly have my site done, this is the only thing holding be back so far. I have recieved an ssl cert from comodo and installed it on my cpanel. Im not sure if its installed properly but when I go into the ssl manager then into certificates it says "Certificates on Server mydomain.com". Does this indicate the cert is installed correctly. The instructions they sent me were for cpanel were very different than the interface that I have :blink:

 

Anyway when I proceed to the checkout area on my osc site I get the dreaded http 404 error. I have changed all the revelant files to enable ssl but still it does not work. Im not sure if my cert is installed correctly or my osc configuration is not correct. Is there anyway to check an SSL cert is installed correctly?

 

Also I have noticed that when I applied for the cert I used mydomain.com to register it. Should I not have used mydomain.com/catalog seen as this is where my osc is located?

Posted

Hi Podge,

 

:-" What is your domain name ?

If you go to https://yourdomain.com do you get anything? it should point to your website, when I was on a shared host, I had a separate SSL folder in my account, that I had to link to my existing document_root (web site folder) or copy files into, to work.

 

My includes/configure.php part looks like

 

  define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mydomain.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.mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

> The instructions they sent me were for cpanel were very different than the interface that I have

try and find the version of cpanel and google for the updated instructions,

 

> I proceed to the checkout area on my osc site I get the dreaded http 404 error

if you set

define('ENABLE_SSL', 'true');

to true then you should get an HTTPS:// 404 error ;) in that case check your web server error logs

 

you might have to set LogLevel debug in your .htaccess file and then check your web server logs, if you don't know what I am talking about, ask your web host,

 

> Should I not have used mydomain.com/catalog

 

nope, SSL certs work on domains, not folder path so if you get an SSL for www.mydomain.com then everything right of the / will be encrypted.

 

Hop you get this fixed, and Good Luck! :thumbsup:

 

Ciao/Riaan

 

I nearly have my site done, this is the only thing holding be back so far. I have recieved an ssl cert from comodo and installed it on my cpanel. Im not sure if its installed properly but when I go into the ssl manager then into certificates it says "Certificates on Server mydomain.com". Does this indicate the cert is installed correctly. The instructions they sent me were for cpanel were very different than the interface that I have :blink:

 

Anyway when I proceed to the checkout area on my osc site I get the dreaded http 404 error. I have changed all the revelant files to enable ssl but still it does not work. Im not sure if my cert is installed correctly or my osc configuration is not correct. Is there anyway to check an SSL cert is installed correctly?

 

Also I have noticed that when I applied for the cert I used mydomain.com to register it. Should I not have used mydomain.com/catalog seen as this is where my osc is located?

I'm an osCommerce Pimp ..

Posted
Hi Podge,

 

:-" What is your domain name ?

If you go to https://yourdomain.com do you get anything? it should point to your website, when I was on a shared host, I had a separate SSL folder in my account, that I had to link to my existing document_root (web site folder) or copy files into, to work.

 

My includes/configure.php part looks like

 

  define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mydomain.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.mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

> The instructions they sent me were for cpanel were very different than the interface that I have

try and find the version of cpanel and google for the updated instructions,

 

> I proceed to the checkout area on my osc site I get the dreaded http 404 error

if you set

define('ENABLE_SSL', 'true');

to true then you should get an HTTPS:// 404 error ;) in that case check your web server error logs

 

you might have to set LogLevel debug in your .htaccess file and then check your web server logs, if you don't know what I am talking about, ask your web host,

 

> Should I not have used mydomain.com/catalog

 

nope, SSL certs work on domains, not folder path so if you get an SSL for www.mydomain.com then everything right of the / will be encrypted.

 

Hop you get this fixed, and Good Luck! :thumbsup:

 

Ciao/Riaan

 

Thank you for your reply. When I go to https://mydomain.com firstly I get the "Great Success !

Apache is working on your cPanel® and WHM™ Server"

 

Everything in the configure.php I have changed as per all the posts I have come accross on this forums and tutorials.

Archived

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

×
×
  • Create New...