Post by danastasio » Tue Jul 14, 2009 1:47 pm

Hi,
I recently purchased an ssl cert and tried to configure opencart for use of ssl and aparently failed pretty badly ::) I now have a text only website, and i cannot log into the backend of the website. Can anyone help?

this is my config.php file as it stands in my admin folder

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.gelenecomputers.com/store/admin/');
define('HTTP_CATALOG', 'http://www.gelenecomputers.com/store/');
define('HTTP_IMAGE', 'http://www.gelenecomputers.com/store/image/');

// HTTPS
define('HTTPS_SERVER', 'https://www.gelenecomputers.com/store');
define('HTTPS_IMAGE', 'https://www.gelenecomputers.com/store/image');

// DIR
define('DIR_APPLICATION', '/home/geleneco/public_html/store/admin/');
define('DIR_SYSTEM', '/home/geleneco/public_html/store/system/');
define('DIR_DATABASE', '/home/geleneco/public_html/store/system/database/');
define('DIR_LANGUAGE', '/home/geleneco/public_html/store/admin/language/');
define('DIR_TEMPLATE', '/home/geleneco/public_html/store/admin/view/template/');
define('DIR_CONFIG', '/home/geleneco/public_html/store/system/config/');
define('DIR_IMAGE', '/home/geleneco/public_html/store/image/');
define('DIR_CACHE', '/home/geleneco/public_html/store/cache/');
define('DIR_DOWNLOAD', '/home/geleneco/public_html/store/download/');
define('DIR_CATALOG', '/home/geleneco/public_html/store/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', '*************');
define('DB_USERNAME', '*************');
define('DB_PASSWORD', '************');
define('DB_DATABASE', '***********************************');
define('DB_PREFIX', 'cart_');
?>

and this is my root folder config.php file

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.gelenecomputers.com/store/');
define('HTTP_IMAGE', 'http://www.gelenecomputers.com/store/image/');

// HTTPS
define('HTTPS_SERVER', 'https://www.gelenecomputers.com/store/admin');
define('HTTPS_IMAGE', 'http://www.gelenecomputers.com/store/image');

// DIR
define('DIR_APPLICATION', '/home/geleneco/public_html/store/catalog/');
define('DIR_SYSTEM', '/home/geleneco/public_html/store/system/');
define('DIR_DATABASE', '/home/geleneco/public_html/store/system/database/');
define('DIR_LANGUAGE', '/home/geleneco/public_html/store/catalog/language/');
define('DIR_TEMPLATE', '/home/geleneco/public_html/store/catalog/view/theme/');
define('DIR_CONFIG', '/home/geleneco/public_html/store/system/config/');
define('DIR_IMAGE', '/home/geleneco/public_html/store/image/');
define('DIR_CACHE', '/home/geleneco/public_html/store/cache/');
define('DIR_DOWNLOAD', '/home/geleneco/public_html/store/download/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', '********');
define('DB_USERNAME', '*****************');
define('DB_PASSWORD', '*****************');
define('DB_DATABASE', '*****************************************');
define('DB_PREFIX', 'cart_');
?>

Newbie

Posts

Joined
Thu Apr 09, 2009 12:18 am

Post by ThePath » Tue Jul 14, 2009 6:26 pm

Hi,

Remember and add a trailing backslash at end of https urls so should read:

Code: Select all

define('HTTPS_SERVER', 'https://www.gelenecomputers.com/store/');
define('HTTPS_IMAGE', 'https://www.gelenecomputers.com/store/image/');

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by Qphoria » Tue Jul 14, 2009 6:33 pm

And the admin one needs to have admin in it... its funny.. but this messed me and another person up. Seems to be a commonly overlooked bit

in admin config.php
define('HTTPS_SERVER', 'https://www.gelenecomputers.com/store');
should be
define('HTTPS_SERVER', 'https://www.gelenecomputers.com/store/admin/');

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by ThePath » Tue Jul 14, 2009 9:09 pm

Yup I learned by my mistook, missed the trailing backslash and none of my images showed up, looked at it for 15 mins before I saw it......grrrrrr

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by danastasio » Sun Jul 19, 2009 1:34 pm

AWESOME!! That seems to have done it! ;D the only other thing i can't figure out is when you are on an ssl page (i.e. https://www.mysite.com/something/something/something) and you click a link, it takes you to a regular http page. the ssl box is checked on the settings page so maybe its some code that i dont know about?
thanks so much for you help!

Newbie

Posts

Joined
Thu Apr 09, 2009 12:18 am

Post by ThePath » Thu Jul 23, 2009 5:36 pm

As far as I know if the page doesnt require to be secure then it will be displayed on http prob because if it was all on https it would be slower etc.

Glad you got it working though.

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by danastasio » Thu Jul 23, 2009 9:12 pm

Yeah, i figured that out yesterday, thanks!

Newbie

Posts

Joined
Thu Apr 09, 2009 12:18 am

Post by tahnmeep » Fri Jul 24, 2009 4:02 am

...anyone get the SSL figured out for the blank config files in 1.3.0?

New member

Posts

Joined
Sun Jul 05, 2009 1:24 pm


Post by Daniel » Fri Jul 24, 2009 4:07 am

tahnmeep wrote:...anyone get the SSL figured out for the blank config files in 1.3.0?
what are you talkng about?

run the installer.

if you need ssl copy the http version of your site to the ssl part

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by tahnmeep » Fri Jul 24, 2009 5:09 am

Yes, that worked on version 1.2.8 just fine, however on 1.3.0 my config.php files under the root and admin/ folder are completely blank files. No code at all. I've run the installer multiple times and I have SSL enabled under my admin panel.

New member

Posts

Joined
Sun Jul 05, 2009 1:24 pm

Who is online

Users browsing this forum: No registered users and 22 guests