Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jun 2007
    Posts
    19
    Plugin Contributions
    0

    Default SSL setup - should I duplicate files?

    I set up our Zen Cart before our SSL certificate was installed. After adding the SSL certificate and editing the configure.php files to enable SSL, I get 404 error messages when I try to access the login page.

    A knowledge base article that I consulted ("How do I configure for SSL/HTTPS (secure socket layer) after I have installed Zen Cart?") says "You may have to load the whole catalog into an HTTPS directory also." Right now everything is in the "httpdocs" directory. There is a second "httpsdocs" directory on the server, which presently contains nothing.

    The web host suggested that I should duplicate the entire Zen Cart installation in the httpsdocs directory. Would that work? (It seems strange to me on a purely intuitive level, so I haven't tried it yet.) Or are there specific files that should be placed in the httpsdocs directory?

    Should I go ahead with the web host's suggestion? Or should I just run the Zen Cart installation again now that the SSL certificate is in place? Or ... something else?

    This is my first Zen Cart installation. Everything else seems to be working fine, but this issue is stumping me. For now, I have "dis-enabled" SSL in the configure.php file so that I can at least access all pages.

    I posted a similar message earlier and got some assistance, but the problem remains. Thanks in advance.

    xlawdog
    Site: www.blacksaks.com
    Host: Dotster
    SSL certificate from GoDaddy

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: SSL setup - should I duplicate files?

    yes you will need to place a copy of the files there,
    you will also need to make the modification in the configure files inthe new folders

    changing httpdocs to httpsdocs
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Jun 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: SSL setup - should I duplicate files?

    Thank you. Just to confirm - should I place copies of ALL files in both directories?

    xlawdog

  4. #4
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: SSL setup - should I duplicate files?

    Yes
    all files
    Zen cart PCI compliant Hosting

  5. #5
    Join Date
    Jun 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: SSL setup - should I duplicate files?

    Thanks again. I'll give it a try.

    xlawdog

  6. #6
    Join Date
    Jun 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: SSL setup - should I duplicate files? New: error message

    [FONT=Verdana]I copied all files to the httpsdocs directory and did a new install.

    Now when I go to the main page (the non-SSL page), I get the original template rather than our template, with no indication that my database is loaded - i.e., no products, etc.

    When I go to the admin login page, I am taken to the https page, but I get the following error message:

    [/FONT] [FONT=Verdana]Warning: main(DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/103711/webspace/httpsdocs/admin/includes/languages/english.php on line 50

    Warning: main(DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/103711/webspace/httpsdocs/admin/includes/languages/english.php on line 50

    Fatal error: main(): Failed opening required 'DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php' (include_path='.:/php/includes') in /usr/local/pem/vhosts/103711/webspace/httpsdocs/admin/includes/languages/english.php on line 50

    It seems to me, with my limited knowledge of Zen Cart's PHP code, that I'm missing a file called "meta_tags.php," but I don't see any indication in my Zen Cart download that there is any such file in the admin directory or its subdirectories.

    I'd like to fix this problem first and then worry about the template and database (maybe I just need to reinstall the database?). Any suggestions?

    Thanks.

    xlawdog[/FONT]

  7. #7
    Join Date
    Jun 2007
    Posts
    19
    Plugin Contributions
    0

    Default Update: Re: SSL setup - should I duplicate files? New: error message

    Update: I fixed the database / template problem.

    For the error message, I started a new thread: "Error message on SSL admin login page."

    xlawdog

  8. #8
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: SSL setup - should I duplicate files?

    please post your configure file here WITH NO DB NAMES OR PASSWORDS
    Zen cart PCI compliant Hosting

  9. #9
    Join Date
    Jun 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: SSL setup - should I duplicate files?

    Here is my configure.php file from the httpsdocs admin/includes directory:

    Code:
    <?php
    /**
     *
     * @package Configuration Settings
     * @copyright Copyright 2003-2006 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.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      define('HTTP_SERVER', 'http://blacksaks.com');
      define('HTTPS_SERVER', 'https://blacksaks.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', '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_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', '/');
    
    // * 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', '/usr/local/pem/vhosts/103711/webspace/httpdocs/');
    
      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', '***');
      define('DB_SERVER_USERNAME', '***');
      define('DB_SERVER_PASSWORD', '***');
      define('DB_DATABASE', '***');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // 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', 'database'); 
      define('DIR_FS_SQL_CACHE', '');
    
    ?>
    Thanks for your help.

    xlawdog

  10. #10
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: SSL setup - should I duplicate files?

    replace
    define('DIR_FS_CATALOG', '/usr/local/pem/vhosts/103711/webspace/httpdocs/');
    with
    define('DIR_FS_CATALOG', '/usr/local/pem/vhosts/103711/webspace/httpsdocs/');
    just noticed, you said this if from your admin,

    this is the wrong configure.php file to be in admin/includes/
    Zen cart PCI compliant Hosting

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 [Duplicate] Should read /logs/ not /cache/
    By simon1066 in forum Bug Reports
    Replies: 3
    Last Post: 19 Oct 2012, 04:28 PM
  2. Replies: 6
    Last Post: 25 Mar 2012, 08:40 PM
  3. Should I go for dedicated SSL or free shared SSL? What's the deal?
    By calvinrobinson in forum General Questions
    Replies: 3
    Last Post: 28 Oct 2010, 03:00 PM
  4. What should I do if duplicate Table module?
    By lesliez in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 16 Aug 2006, 05:15 PM

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