Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Trouble with SSL and Dedicated Server

    I have zencart v1.3.9

    I have just recently upgraded to this version when i switched hosting companies. I rebuilt the site at the new hosting company, and then today I purchased a dedicated server and an SSL cert from them. I made changes these changes:

    to my includes/configure:
    define('HTTP_SERVER', 'http://www.primitivekeepers.com');
    define('HTTPS_SERVER', 'https://www.primitivekeepers.com');

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


    to my admin/includes/configure:
    define('HTTP_SERVER', 'http://www.primitivekeepers.com');
    define('HTTPS_SERVER', 'https://www.primitivekeepers.com');
    define('HTTP_CATALOG_SERVER', 'http://www.primitivekeepers.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.primitivekeepers.com');

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



    now when i go to the site the webtopper, background, images are gone.
    i am also unable to log into my zencart admin

    any help or direction of help is appreciated, i am really new to this.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Trouble with SSL and Dedicated Server

    Please post the rest of your configure.php - without your Paswords and secret admin name.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Trouble with SSL and Dedicated Server

    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2010-10-27 08:41:40
    */


    /*************** 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.primitivekeepers.com');
    define('HTTPS_SERVER', 'https://www.primitivekeepers.com');
    define('HTTP_CATALOG_SERVER', 'http://www.primitivekeepers.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.primitivekeepers.com');

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

    // 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', '/~primiti7/secrect_admin_name/');
    define('DIR_WS_CATALOG', '/~primiti7/');
    define('DIR_WS_HTTPS_ADMIN', '/~primiti7/secrect_admin_name/');
    define('DIR_WS_HTTPS_CATALOG', '/~primiti7/');

    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/primiti7/public_html/secrect_admin_name/');
    define('DIR_FS_CATALOG', '/home/primiti7/public_html/');

    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', 'znc_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', '');
    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/primiti7/public_html/pcache');

  4. #4
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Trouble with SSL and Dedicated Server

    Code:
    // 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', '/~primiti7/secrect_admin_name/');
    define('DIR_WS_CATALOG', '/~primiti7/');
    define('DIR_WS_HTTPS_ADMIN', '/~primiti7/secrect_admin_name/');
    define('DIR_WS_HTTPS_CATALOG', '/~primiti7/');
    Try removing /~primiti7 from each of the above entries
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Trouble with SSL and Dedicated Server

    ok when i look at the siurce code of your site i see this

    <base href="http://www.primitivekeepers.com/~primiti7/" />
    <link rel="canonical" href="http://www.primitivekeepers.com/~primiti7/" />

    <link rel="stylesheet" type="text/css" media="print" href="includes/templates/classic/css/print_stylesheet.css" />
    <link rel="stylesheet" type="text/css" href="/~primiti7/includes/templates/classic/css/style_jscroller.css" />
    <link rel="stylesheet" type="text/css" href="/~primiti7/includes/templates/classic/css/stylesheet.css" />
    <link rel="stylesheet" type="text/css" href="/~primiti7/includes/templates/classic/css/stylesheet_css_buttons.css" />
    <link rel="stylesheet" type="text/css" href="/~primiti7/includes/templates/classic/css/stylesheet_dotline.css" />

    when i remove the ~primiti7/ the site works and all the images appear.

    Are you sure this section of your configure it correct?

    // 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', '/~primiti7/secrect_admin_name/');
    define('DIR_WS_CATALOG', '/~primiti7/');
    define('DIR_WS_HTTPS_ADMIN', '/~primiti7/secrect_admin_name/');
    define('DIR_WS_HTTPS_CATALOG', '/~primiti7/');
    What happens if you replace it with

    // 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', '/secrect_admin_name/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/secrect_admin_name/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    Webzings Design
    Semi retired from Web Design

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Trouble with SSL and Dedicated Server

    Quote Originally Posted by PK_Lisa View Post
    today I purchased a dedicated server and an SSL cert from them
    Before rushing to fix the problems, be patient. The dedicated server/SSL will require a change in the IP address of your store.

    Your host will have made these changes for you when they set up the new server, BUT it can take several hours before the new address gets propagated through through the network.

    Things will be a little unstable until this process completes.

    Cheers
    Rod

    ps. I also concur with the other response... ~primiti7/ is not a valid path in this instance. The "~" expansion only works for shell commands. The webservers don''t know about home directories.
    Last edited by RodG; 2 Oct 2011 at 05:20 AM.

  7. #7
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Trouble with SSL and Dedicated Server

    Awesome!!! That got me back into my admin. YAY!!

    Now do you know how or point me in a direction on how I can go about getting the site back to looking the way it was before I bought the SSL cert. and dedicated server? My webtopper, background, and images are gone.

  8. #8
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Trouble with SSL and Dedicated Server

    Check your other config - there is one in /includes and one in YOUR_ADMIN/includes/
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  9. #9
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Trouble with SSL and Dedicated Server

    Yep!!! That worked. Thanks so much guys..............You're awesome!!!

  10. #10
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Trouble with SSL and Dedicated Server

    Ok, I have another question now...... How do I go about getting the site directed to the "https" address instead of the "http"?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. SSL install on dedicated fasthosts centos server = blank screen for http???
    By garethrooney in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 10 Nov 2009, 02:05 AM
  2. SSL and dedicated IP
    By nesin in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 7 Nov 2009, 03:28 PM
  3. SSL and Dedicated IP
    By autoace in forum General Questions
    Replies: 3
    Last Post: 14 Oct 2009, 05:29 PM
  4. SSL on a Dedicated Server? OPENSSL?
    By Stuff4Toys in forum General Questions
    Replies: 4
    Last Post: 15 Nov 2007, 11:24 PM
  5. SSL and Admin Login (config file) - only works with dedicated IP???
    By firstimpression in forum General Questions
    Replies: 6
    Last Post: 26 Jan 2007, 10: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