Forums / Basic Configuration / System Setup Required after attempting to enable SSL

System Setup Required after attempting to enable SSL

Locked
Results 1 to 12 of 12
This thread is locked. New replies are disabled.
06 Jan 2010, 18:44
#1
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

System Setup Required after attempting to enable SSL

Morning' Folks,
I am running Zen-Cart 1.3.8. I recently upgraded my PayPal account to Website Payments Pro, and subsequently enabled this payment module in my store. Then I quickly realized that, whoops, I need an SSL certificate. So I upgraded to secure hosting with a privately signed SSL certificate from my host (dreamhost).
I was following the Enable SSL tutorial (https://www.zen-cart.com/tutorials/index.php?article=14) to enable SSL on my zen-cart store. All was well and I could access my store via https no problem. Then I made the required changes to my configure.php files, and suddenly the System Setup Required page popped up. So I uploaded unedited copies of the configure files but the System Setup Required page is still there. I tried running Dr. Byte's fix_cache_key utility as that seemed to fix this issue for other people in a similar mess, but I don't think I'm doing it right because all that happens is it loads a System Setup Required page where the heading text is orange instead of black.

My store is here:
http://www.joshuacripps.com/zencart/store/

Here are the changes I made to the configure.php files:

---------------------------------------------------
from ../store/includes/configure.php
---------------------------------------------------
define('ENABLE_SSL', 'false'); ------------> define('ENABLE_SSL', 'true');


------------------------------------------------------------
from ../store/admin/includes/configure.php
------------------------------------------------------------
define('ENABLE_SSL_ADMIN', 'false'); -------------> define('ENABLE_SSL_ADMIN', 'true');

In both files the servers were set up as follows:

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

Not being able to access my store is kinda bumming me out, so I'd appreciate any help I could get on solving this dilemma.

Thanks, Zenners!

~Josh
06 Jan 2010, 18:59
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: System Setup Required after attempting to enable SSL

The "Thank you for loading Zen Cart" screen appears for exactly the reasons mentioned on that page.
Most likely your edits to the configure.php files have broken something. Or maybe the files didn't upload at all. Or maybe you set their permissions too restrictive, such that they can't be read.

Additionally, running fix_cache_key is pointless unless you've been changing servers or changing folders in which your Zen Cart setup resides.

Also, uploading blank copies of configure.php is counter-productive. If you're going to revert back to how things were before you made your recent changes, you'll want to use backup copies you made just before you did the edits. If you use blank/default contents, that info is worthless and is going to trigger the "Thank you for loading" screen ... because there's no working information in the files.
06 Jan 2010, 19:27
#3
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: System Setup Required after attempting to enable SSL

Hi DrB.

Thanks for replying. When I said that I uploaded unedited copies of the configure files, I meant that I reverted back to the files as they were just before I made the edits. So I'm pretty sure these files are ok, but just in case I goofed something up, I requested backup files from my host from a week ago (since which time I haven't done anything to the store other than attempt to enable SSL).

As for the file permissions, I was very careful about setting the permissions as I uploaded. I set the files on the server to 644 so that I could overwrite them, then I set them back to 444 after I had uploaded the new configure files.

Any other guesses or things I could try?

Thanks,

Josh
06 Jan 2010, 19:29
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: System Setup Required after attempting to enable SSL

If you set them to 644 again, what happens when you visit the site?
06 Jan 2010, 19:44
#5
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: System Setup Required after attempting to enable SSL

Set to 644, unfortunately no change in the site. Still System Setup Required
06 Jan 2010, 19:50
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: System Setup Required after attempting to enable SSL

Okay, ON THE SERVER, what is the COMPLETE content of the /includes/configure.php file? (mask out the database password when posting here, but make sure it's correct)
06 Jan 2010, 20:02
#7
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: System Setup Required after attempting to enable SSL

../includes/configure.php
---------------------------------
<?php
/**
 * @package Configuration Settings circa 1.3.8
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://www.joshuacripps.com');
  define('HTTPS_SERVER', 'https://www.joshuacripps.com');

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

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/zencart/store/');
  define('DIR_WS_HTTPS_CATALOG', '/zencart/store/');

  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', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/.canadians/joshuacripps/joshuacripps.com/zencart/store/');

  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 our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'mysql.joshuacripps.com');
  define('DB_SERVER_USERNAME', '*********');
  define('DB_SERVER_PASSWORD', '********');
  define('DB_DATABASE', 'zencart');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home/.canadians/joshuacripps/joshuacripps.com/zencart/store/cache');

// EOF


------------------------------------
../includes/admin/configure.php
------------------------------------
<?php
/**
 * @package Configuration Settings circa 1.3.8
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // Main webserver: eg-http://www.your_domain.com - 
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   *
   * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
   */
  define('HTTP_SERVER', 'http://www.joshuacripps.com');
  define('HTTPS_SERVER', 'https://www.joshuacripps.com');
  define('HTTP_CATALOG_SERVER', 'http://www.joshuacripps.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.joshuacripps.com');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_ADMIN', '/zencart/store/admin/');
  define('DIR_WS_CATALOG', '/zencart/store/');
  define('DIR_WS_HTTPS_ADMIN', '/zencart/store/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/zencart/store/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_ADMIN', '/home/.canadians/joshuacripps/joshuacripps.com/zencart/store/admin/');
  define('DIR_FS_CATALOG', '/home/.canadians/joshuacripps/joshuacripps.com/zencart/store/');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'mysql.joshuacripps.com');
  define('DB_SERVER_USERNAME', '*******');
  define('DB_SERVER_PASSWORD', '********');
  define('DB_DATABASE', 'zencart');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home/.canadians/joshuacripps/joshuacripps.com/zencart/store/cache');

// EOF
06 Jan 2010, 20:07
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: System Setup Required after attempting to enable SSL

What are all the names of the folders in your /zencart/store/includes/ directory?
06 Jan 2010, 20:15
#9
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: System Setup Required after attempting to enable SSL

/zencart/store/includes/ contains:

auto_loaders
classes
extra_cart_actions
extra_configures
extra_datafiles
functions
index_filters
init_includes
languages
modules
templates
06 Jan 2010, 20:22
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: System Setup Required after attempting to enable SSL

Among other things, the system checks for:

- existence of /includes/configure.php
- valid content in that file, including a valid definition of DIR_FS_CATALOG and DB_TYPE
- a check of whether DIR_FS_CATALOG followed by /includes/classes/ points to a real folder on your server
- a check of whether /includes/classes/db/mysql/query_factory.php exists on your server
- a check of whether /includes/autoload_func.php exists on the server
- etc

There are only 3 reasons for any of those to fail:
1. You've got missing files on the server (or you've drag-and-dropped them into other locations by mistake)
2. You've got incorrect settings in the definitions in the configure.php files
3. You've got permissions all screwed up and the various files/folders aren't readable.
06 Jan 2010, 20:28
#11
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: System Setup Required after attempting to enable SSL

Roger. I will check these out and post here when I've looked through this. Thanks so much for your help so far.

~Josh
07 Jan 2010, 02:44
#12
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: System Setup Required after attempting to enable SSL

You absolutely nailed it, Dr. Byte. It turns out the problem was caused by invalid paths in the configure.php file. Instead of the paths being /home/.canadians/joshuacripps/joshuacripps.com/zencart/store/ they should have been /home/joshuacripps/joshuacripps.com/zencart/store/. Not sure what the heck that .canadians thing is but I checked back and it shows up in the paths of every single one of my backup copies of my store, dating back a year and a half. In other words, it's always been there. So why it's a problem now I don't know. Perhaps something my host company did? In any case, problem solved and I'm a happy camper. Thanks mucho!

~Josh