Zen Cart Logo
Forums / General Questions / After enabling ssl, site reverted back to install page

After enabling ssl, site reverted back to install page

Locked

Views: 1,200

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
2 Mar 2010, 9:13 PM
#1
john_c avatar

john_c

New Zenner

Join Date:
Jan 2010
Posts:
30
Plugin Contributions:
0

After enabling ssl, site reverted back to install page

I had my site up a going well. Graphics looked good, the site was functional, the only thing left was to enable SSL. After enabling SSL, my site disappeared and I am getting the Zen Cart install page.

My hosting company just added the ssl cert and I suspect that the problem has something to do with the dedicated IP address but I really don't know. At any rate, I am reasonably certain that it's a configuration problem with the configure files.

Can someone help me troubleshoot this? I would greatly appreciate any help!

John

2 Mar 2010, 10:14 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: After enabling ssl, site reverted back to install page

If the problem started after your Hoster added the SSL Cert, might be best to question them.

In order for anyone at the Forum to help, would need to know your URL and possibly some info from your Admin 'configure.php' file.

2 Mar 2010, 10:41 PM
#3
john_c avatar

john_c

New Zenner

Join Date:
Jan 2010
Posts:
30
Plugin Contributions:
0

Re: After enabling ssl, site reverted back to install page

Here's some better information (the web site is www.beautyoutfitters.com.):

Here were my settings before enabling the SSL (I will just do the includes/configure.php file minus the comments):

define('HTTP_SERVER', 'http://www.beautyoutfitters.com');
define('HTTPS_SERVER', 'https://www.beautyoutfitters.com/');

define('ENABLE_SSL', 'false');

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/phpBB2/');

define('DIR_FS_CATALOG', '/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

define('DB_TYPE', 'mysql');
define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'username');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'db_name');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');

define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/jcellini/public_html/beautyoutfitters.com/cache');

My hosting service added a ssl cert, tested it, and emailed me saying it was done:

https://beautyoutfitters.com/

Here were the changes I made:

define('HTTP_SERVER', 'http://www.beautyoutfitters.com');
define('HTTPS_SERVER', 'https://.beautyoutfitters.com/');

define('ENABLE_SSL', 'true');

For the admin/includes/configure.php file, here are the changes:

define('HTTP_SERVER', 'http://www.beautyoutfitters.com');
define('HTTPS_SERVER', 'https://beautyoutfitters.com/');
define('HTTP_CATALOG_SERVER', 'http://www.beautyoutfitters.com');
define('HTTPS_CATALOG_SERVER', 'https://beautyoutfitters.com/');

define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

There seems to be an invalid path and it may be clear to someone who knows php.

Thanks for you help!

3 Mar 2010, 3:42 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: After enabling ssl, site reverted back to install page

define('HTTPS_SERVER', 'https://.beautyoutfitters.com/');

If the . is before you Domain name in your config file, remove it.

3 Mar 2010, 3:40 PM
#5
john_c avatar

john_c

New Zenner

Join Date:
Jan 2010
Posts:
30
Plugin Contributions:
0

Re: After enabling ssl, site reverted back to install page

The . was not before my domain name like in my example. When I copied my example it was originally www. - I removed the www but on the dot. (I was trying a few different variations.) Good call though!

After researching this problem on the web (for several hours) I found a post that described exactly the same problem I had. I called the guy who had the problem and he told me that after his hosting company installed the ssl cert the path to the db was invalid. He emailed his hosting company and asked them to make sure that the path in the configure file was correct. That worked for him - the hosting company corrected the path. I did the same and it worked for me.

Thanks for offering your assistance. I is greatly appreciated!

3 Mar 2010, 4:06 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: After enabling ssl, site reverted back to install page

Glad to hear things got sorted out for you.

3 Mar 2010, 6:08 PM
#7
john_c avatar

john_c

New Zenner

Join Date:
Jan 2010
Posts:
30
Plugin Contributions:
0

Re: After enabling ssl, site reverted back to install page

Update:

Actually, my hosting company did not cause the problem but they corrected the problem for me. The problem turned out to be this: I did not specify a path to my catalog directory. Here is that code:

define('DIR_FS_CATALOG', '/');

I should have entered a path to my Zen Cart catalog file. The hosting company did it for me:

define('DIR_FS_CATALOG', '/home/jcellini/public_html/');

Problem solved!