How to use a Private SSL with my ZenCart?

Having an online shop nowadays is not all flowers and rainbows nowadays – before getting your users to become your trusted customers, you would have to ensure their safety and gain their trust. There is no better way to do that, than protecting your website with a Private SSL.  With ZenCart, there are just a few simple steps you need to take in order to configure it with the certificate, once purchased:

1. Login to cPanel and find the folder with your ZenCart

2. Locate two specific files and open them with a simple text editor:

cPanel Hosting from WebhostFace

– includes/configure.php

define('HTTP_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_SERVER', 'https://www.yourdomainname.com');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL', false);


admin/includes/configure.php

define('HTTP_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_SERVER', 'https://www.yourdomainname.com');
define('HTTP_CATALOG_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_CATALOG_SERVER', 'https://www.yourdomainname.com');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL', false);


In both files, you should edit the “yourdomainname.com” with the name of your domain, and on the last row change the Enable SSL value to True. This will make your SSL fully compatible with your ZenCart shop.

was this knowledge base article useful to you