Page 1 of 1
SSL enable config.php help v1.5.1.3
Posted: Fri Dec 02, 2011 1:20 am
by Bron
Hi
I am trying to enable SSL but I can't seem to edit my /admin/config.php and config.php files because they are completely blank. There is nothing to edit. I am running the latest opencart.
I actually went ahead and copied/past the HTTP threads into these files which was just tragic because that just stuffed up my website completely and I had to re-install opencart.
These are the instructions I have followed on how to setup SSL -
http://opencarthelp.com/a/?q=improve-op ... #admin_ssl
Anyway, if anyone can shed some light on this problem or direct me to some threads that can help, I'd appreciate it so much.
Cheers
Bron
Re: SSL enable config.php help v1.5.1.3
Posted: Fri Dec 02, 2011 1:48 am
by darek
1st fundamental question :
Have you bought SSL certificate, then installed and assigned properly to dedicated IP ?
==========================================================
1.A dedicated IP is required, speak about it to your hosting company
2.Ask hosting company to generate CSR
3.Make sure the domain is properly assigned to your dedicated IP
4.Choose and buy SSL certificate
5.Install the certificate
6.Switch SSL on in your store admin panel
7.Check if content of the mentioned earlier .php files is correctly generated and change what's essential
8.Enjoy
===========================================================
Alternatively, you can use shared SSL if your hosting plan offers this feature but you will need
Opencart shared SSL extension.
===========================================================
If you feel insecure about doing this you can always order it from your hosting company, basic ssl should not cost a fortune.
Re: SSL enable config.php help v1.5.1.3
Posted: Fri Dec 02, 2011 5:04 am
by Moggin
Bron wrote:I can't seem to edit my /admin/config.php and config.php files because they are completely blank. There is nothing to edit. .....
I actually went ahead and copied/past the HTTP threads into these files which was just tragic because that just stuffed up my website completely and I had to re-install opencart.
It looks as if you have attempted to edit and upload pre-installation copies of config.php and admin/config.php.
This will certainly blank out your site.
The reason is that these files are written to when you install Opencart. If you download a copy of each file from a functioning Opencart store (via FTP), you will see they are both populated. The populated files are the ones that need to be amended and reuploaded (backup both of them first

)
Hope that helps.
Re: SSL enable config.php help v1.5.1.3
Posted: Fri Dec 02, 2011 6:34 am
by Superior1
Hi
I've been having similar issues however I have managed to update config files in catalog and admin successfully. The problem now is that my checkout goes on a loop. I go to the cart, hit checkout and it just refreshes the page effectively. Is this because I need a shared SSL extension?
Any advice welcomed.
Thanks
Re: SSL enable config.php help v1.5.1.3
Posted: Fri Dec 02, 2011 8:08 am
by Bron
Moggin you're a Gem! Thank you so much!

Re: SSL enable config.php help v1.5.1.3
Posted: Sat Dec 03, 2011 6:31 am
by Moggin
Glad to help, Bron
@Superior1, we might need a bit more information, or a link, before anyone can help. Are you using shared SSL?
Re: SSL enable config.php help v1.5.1.3
Posted: Sun Dec 11, 2011 7:53 pm
by Superior1
@moggin sorted it thanks. Thanks for the offer to help, appreciated.
Re: SSL enable config.php help v1.5.1.3
Posted: Thu Jan 05, 2012 4:09 am
by pinkloveshy
Hi I have the same issue with my cart going around in a loop as a result of installing my SSL.
I'm pulling my hair out
Please help me to fix
Regards
Pinkloveshy
Re: SSL enable config.php help v1.5.1.3
Posted: Thu Jan 05, 2012 7:14 am
by Moggin
Hi pink - if you could provide us with a link, this may help with troubleshooting
Re: SSL enable config.php help v1.5.1.3
Posted: Fri Feb 10, 2012 6:59 am
by aansari
Hi
I use shared SSL and I edit admin/config and enable SSL from admin CP . Admin cp and shoping cart working fine with SSL and when I click account or checkout its compeltly blank page.All other pages in shopping cart working fine. I do not how to sort out this. I nned someone
Re: SSL enable config.php help v1.5.1.3
Posted: Tue Feb 12, 2013 3:31 pm
by mrspeakers
I am having the same issue of looping back to the cart, and extremely errant behavior where the user is logged out when they go back to the home page. Also, sales taxes aren't calculating (they used to work just fine).
SSL is enabled in admin.
Admin and root level config.php are both set as:
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.mrspeakers.com/');
define('HTTP_IMAGE', 'http://www.mrspeakers.com/image/');
define('HTTP_ADMIN', 'http://www.mrspeakers.com/admin/');
// HTTPS
define('HTTPS_SERVER', 'https://www.mrspeakers.com/');
define('HTTPS_IMAGE', 'https://www.mrspeakers.com/image/');
I've reviewed other pages on modifying these, as well at the .htaccess but that simply generates errors all over the page.
Any help here? My customers are going a bit (justifiably) postal...
Re: SSL enable config.php help v1.5.1.3
Posted: Tue Feb 12, 2013 3:38 pm
by mrspeakers
The https for the admin is working fine, FWIW.