Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    672
    Plugin Contributions
    0

    Default Config.php settings error with shared SSL server

    I am getting two settings errors in my admin control panel pertaining to SSL settings in both of my configure.php files. My server has a shared SSL URL that I can use until I get my site live and purchase a real SSL. So for now my shared SSL is a different web address than for my domain name.

    My Example Domain Name:
    www.MYDomain.com

    Here is the shared SSL URL for my server:
    http://greenwald.websitewelcome.com/~myusername

    I get an error is my admin control panel:
    Code:
    Some potential issues were found in your "admin" configure.php. Failure to correct these issues may result in Zen Cart not functioning as intended. The "admin" configure.php file can be found at /home/MYUSERNAME/public_html/MYADMIN/includes/configure.php.
    • The path to the subdirectory must be removed from HTTPS_CATALOG_SERVER.
    • If the store is in a subdirectory
      • The name of the subdirectory should be placed in DIR_WS_HTTPS_CATALOG.
      • The subdirectory should be preceded and followed by slashes, e.g. /store/.
      • The subdirectory name cannot be included in the HTTPS_CATALOG_SERVER setting.
    Some potential issues were found in your "store / catalog" configure.php. Failure to correct these issues may result in Zen Cart not functioning as intended. The "store / catalog" configure.php file can be found at /home/MYUSERNAME/public_html/includes/configure.php.
    • The path to the subdirectory must be removed from HTTPS_SERVER.
    • If the store is in a subdirectory
      • The name of the subdirectory should be placed in DIR_WS_HTTPS_CATALOG.
      • The subdirectory should be preceded and followed by slashes, e.g. /store/.
      • The subdirectory name cannot be included in the HTTPS_SERVER setting.
    My includes> configure.php looks like this:
    Code:
    define('HTTP_SERVER', 'http://www.MYDomain.com');
      define('HTTPS_SERVER', 'http://greenwald.websitewelcome.com/~myusername');
    
    define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    And my admin> includes>configure.php looks like this:
    Code:
      define('HTTP_SERVER', 'http://www.MYDomain.com');
      define('HTTPS_SERVER', 'http://greenwald.websitewelcome.com/~myusername');
      define('HTTP_CATALOG_SERVER', 'http://www.MYDomain.com');
      define('HTTPS_CATALOG_SERVER', 'http://greenwald.websitewelcome.com/~myusername');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'false');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', 'true');
    
      define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
    // 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_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)
      define('DIR_FS_ADMIN', preg_replace('#.includes$#', '', realpath(dirname(__FILE__) . '/../') . '/'));
      //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/MYUSERNAME/public_html/');
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/home/MYUSERNAME/public_html/logs');
    
      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/');
    I understand this is a setting issue in both of these files since my shared SSL is on a different URL and also has this ~ titlde icon, but I just don't know what modify. I know this is likely a simple settings I just don't know what to try.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Config.php settings error with shared SSL server

    Try setting your admin configure.php file to false for
    Code:
    define('ENABLE_SSL_CATALOG', 'true');
    Set the store front to true for
    Code:
    define('ENABLE_SSL', 'true');
    Post back with what you find
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Config.php settings error with shared SSL server

    Do you have Ultimate URLs, or another alternative URL plugin installed? I know some will warn you when your configuration may cause issues (such as when the relative "path" for HTTP and HTTPS are not the same). When you install a SSL certificate for your domain in the future (and update the configure.php files to match) the message should go away.

    Basically, if you want to test an alternative URL tool the easiest way is to already have the SSL certificate issued to your domain installed (and the configure.php files configured as such), or disable SSL during testing.

    Alternatively, you can just disable the alternative URL tool until you have the new SSL certificate installed (and use the warning as a reminder to get the dedicated SSL certificate, update both configure.php files, and enable the alternative URL plugin before the public launch of the website).

    The problem with your setup for shared SSL (if also using an alternative URL plugin + mod_rewrite) is the use of two different relative web accessible paths (/ and /~user/). When using an alternative URL plugin (which makes use of mod_rewrite to do the heavy lifting for incoming requests), for each request mod_rewrite needs to know the correct relative path (specified using RewriteRule) or things will break. So additional directives would be needed in the .htaccess (and they will be specific to your site - not generic) to support a shared SSL setup.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Config.php settings error with shared SSL server

    Also
    Code:
     define('HTTPS_CATALOG_SERVER', 'http://greenwald.websitewelcome.com/~myusername');
    Should be https://

    And
    Code:
    define('HTTPS_SERVER', 'http://greenwald.websitewelcome.com/~myusername');
    Should also be https://
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    672
    Plugin Contributions
    0

    Default Re: Config.php settings error with shared SSL server

    Quote Originally Posted by kobra View Post
    Also
    Code:
     define('HTTPS_CATALOG_SERVER', 'http://greenwald.websitewelcome.com/~myusername');
    Should be https://

    And
    Code:
    define('HTTPS_SERVER', 'http://greenwald.websitewelcome.com/~myusername');
    Should also be https://
    Problem resolved! I am such a dope. In both files as Kobra pointed about the HTTPS setting URL was only listed as HTTP. Obviously, the defined URL of an HTTPS line should have an HTTPS prefix, yet I overlooked it multiple times. Fresh eyes are always a big help. Thank you both!

  6. #6
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Config.php settings error with shared SSL server

    The kobra strikes again!
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 

Similar Threads

  1. v150 Configure.php with SSL Shared
    By rayw1679 in forum Installing on a Linux/Unix Server
    Replies: 26
    Last Post: 6 Jan 2013, 10:29 PM
  2. hosting with shared ssl on different server
    By johns in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 23 Jan 2008, 06:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR