Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enabling SSL


d912mv

Recommended Posts

Hi,

 

I have my own server and am trying to get oscommerce setup with SSL.

 

I have an SSL cert installed and place files int he 'httpsdoc' folder for this. I have my other pages in 'httpdocs'. My question is how do i just get the SSL up for pages which require it? i.e. for the checkout and not for displaying products?

 

At the moment i upload all files to the httpsdocs and the whole site is covered by the SSL. But, all links are http:// and not https:// and hence dont work.

 

Should i change a setting to use https instead of http? or is there a better way to get it set up in ssl?

 

Do i actually need any files in the httpsdocs folder?

 

Thanks for the help guys.

 

Dan

Link to comment
Share on other sites

Hi,

 

I have my own server and am trying to get oscommerce setup with SSL.

 

I have an SSL cert installed and place files int he 'httpsdoc' folder for this.  I have my other pages in 'httpdocs'.  My question is how do i just get the SSL up for pages which require it? i.e. for the checkout and not for displaying products?

 

At the moment i upload all files to the httpsdocs and the whole site is covered by the SSL.  But, all links are http:// and not https:// and hence dont work. 

 

Should i change a setting to use https instead of http? or is there a better way to get it set up in ssl?

 

Do i actually need any files in the httpsdocs folder?

 

Thanks for the help guys.

 

Dan

 

You need to change the following line in your configure.php files

 

 

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

 

to

 

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

 

Then you need to make sure that all your HTTPS: defines in the same files match the info/path on your certificate.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

hi Guys,

 

Thanks for the repsonses.

 

What does... "Then you need to make sure that all your HTTPS: defines in the same files match the info/path on your certificate" mean? Does that mean that if my cert is www.xxx.com then this is what should be in the file? Would all my files be in the httpdocs folder and the httpsdocs folder could be empty?

 

Is it ok and ssl enabled if i have all my files in the httpsdoc folder and everything works ok, and there's a padlock in the status bar. Are there any problems doing it this way?

 

Thanks a lot for responses,

 

Dan

Link to comment
Share on other sites

Good Afternoon All,

 

I have having the same issue with my hosting provider and echo d912mv's questions. My Configure.php file is properly configured according to your instructions above. However, my server is having a identical issue. My certificate is installed to httpsdocs/ directory, which resolves to https://www.com(secure) and my catalog is installed to httpdocs/ directory, which resolves to http://www.com (not secure) Still having issues...

 

Please Help Us! Thanks in advance!

Link to comment
Share on other sites

Don't understand what you mean when you say your ssl cert is installed to httpsdocs folder. if you have a full ssl it should relate to the whole of the domain e.g. www.yourdomain.com And if you have a shared ssl then it will probaby start with the server path and end with your domain e.g. https://servername.hostname.com/yourdomain.com

 

Vger

Good Afternoon All,

 

I have having the same issue with my hosting provider and echo d912mv's questions.  My Configure.php file is properly configured according to your instructions above.  However, my server is having a identical issue.  My certificate is installed to httpsdocs/ directory, which resolves to https://www.com(secure)  and my catalog is installed to httpdocs/ directory, which resolves to http://www.com (not secure)  Still having issues...

 

Please Help Us!  Thanks in advance!

Link to comment
Share on other sites

Thanks for your quick response! My web server is works with two main directories (httpdocs & httpsdocs). These two directories hold the working website files.

 

The httpdocs/ directory is an normal, non-secure directory. (root www directory, i.e. http://www.uptimecomputer.com/yourfilename.html). This non-secure directory is where the catalog directory & files exsist.

 

The httpsdocs/ directory is the secure directory (contains www files that can be accessed by https://www.uptimecomputer.net/yoursecurefile.html.

 

My dilema...everytime I click Checkout in the shopping cart...it links to the https:// directory where not files exsist.

 

Thoughts? Thanks!

 

(I'll be glad to post a copy of the config. file if needed)

Link to comment
Share on other sites

Did anyone come up with a solution for this problem or have any insite. I've encountered a number of posts with this issue but they never contain a solution. Any help would make my day.

Link to comment
Share on other sites

No Reply Yet...Still Waiting On A Guru To Help Me Out.  Somebody has to have experience dealing with this scenario.

 

Have your host solve this problem for you. The httpsdocs folder should be a symlink to the httpdocs folder, plesk normally installs this way by default.

 

As a symlink, it is effectively the same folder, no need to copy, duplicate files, or use twice the diskspace.

 

I'm assuming you use Plesk as the control panel. You can go to the Plesk forums for the answer on how to do this yourself, ask your host to do it, or simply click the 'enable ssl' button on the plesk control panel for the domain.

 

Dan

Dan Stevens

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...