Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2008
    Posts
    10
    Plugin Contributions
    0

    Default How do I edit the 2 configure.php files correctly?

    This my first foray into PHP and I'm struggling right away. I installed all the "catalog" files in a folder called "store" in the correct location on my server, in the htdocs folder. I completed the "pre-install" process fine. I now get the dreaded "You are seeing this page for one or more reasons:" page when I go to http://www.mydomain.com/store/
    I am very sure that I have not edited the configure.php files correctly. I do not know what the virtual URL is or the main server address and I do not know where in those documents to put the database name and password.
    Can someone help with rather explicit instructions on how to do this?
    Thanks for any help.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I edit the 2 configure.php files correctly?

    Those files are built by the installer. Did you run zc_install yet?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: How do I edit the 2 configure.php files correctly?

    Yes I ran it and it all seemed to work just as it should. When it was all done and I was presented with the options to View Shop or go to Admin I chose to view the shop and there was the "You are seeing this page for one or more reasons:" page. I determined that Reason1 did not apply and went to Reason2 as the likely culprit...

    2 Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
    If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
    See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.


    I then proceeded to research the problem and arrived here......

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I edit the 2 configure.php files correctly?

    Okay.

    Please post the contents of your /includes/configure.php file, but blank out the DB_PASSWORD setting
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: How do I edit the 2 configure.php files correctly?

    <?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.mydomain.com/store/');
    define('HTTPS_SERVER', 'http://www.mydomain.com/store/');

    // 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', 'www.mydomain.com/store/');
    define('DIR_WS_HTTPS_CATALOG', 'www.mydomain.com/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', './../');

    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', '205.178.146.31');
    define('DB_SERVER_USERNAME', 'merchant');
    define('DB_SERVER_PASSWORD', 'BLANKED');
    define('DB_DATABASE', 'firstshop');
    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', './../cache');

    // EOF

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I edit the 2 configure.php files correctly?

    These don't look correct. They would normally be /store/:
    Code:
      define('DIR_WS_CATALOG', 'www.mydomain.com/store/');
      define('DIR_WS_HTTPS_CATALOG', 'www.mydomain.com/store/');
    The ./../ is definitely incorrect here. It should be the actual filesystem path to your /store/ folder:
    Code:
    // * 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', './../');
    
      define('DIR_FS_SQL_CACHE', './../cache');
    Who are you hosted with?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: How do I edit the 2 configure.php files correctly?

    NW Solutions

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I edit the 2 configure.php files correctly?

    Hmmm .... You won't want to hear this, but there are known problems with hosting Zen Cart on Network Solutions hosting.
    The primary problem is that their server configuration won't let Zen Cart switch in and out of SSL mode correctly when necessary. Thus far their tech support folks don't seem to want to fix the problem.

    I'm not sure why your server is detecting the server's working path to be "./../" instead of the correct full path. You'll need to find the correct full path in order to continue.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: How do I edit the 2 configure.php files correctly?

    Ok, if I am not using an SSL is this still a problem? When I do speak to Netsol what am I asking them for, the full path? Will they know what I mean?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I edit the 2 configure.php files correctly?

    The "physical path" requested by the installer is what is entered in the DIR_FS_CATALOG entry.
    That path is the full filesystem path to the "web root" of your hosting account, plus the foldername where you have uploaded Zen Cart to, if any.

    As you will see in the configure.php file comments, it is often something like: /var/www/vhost/accountname/public_html/store/

    Code:
    / * 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', '/the/path/to/webroot/and/zencart/goes/here/');
    You mentioned "htdocs" ... which would be equivalent to the common "public_html" or "httpdocs" on other servers.
    You need to find out the full filesystem path to *your* htdocs folder.

    Zen Cart normally can auto-detect that information. But, alas, netsol is a funny duck.

    You might be able to get away with trying /htdocs/ or just / ... it's worth a try ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Would it be easier to do a fresh install and edit the configure files?
    By dgarrett20 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 7 Oct 2010, 12:21 AM
  2. how do i create the two configure php files?
    By kevinmorong in forum Installing on a Windows Server
    Replies: 3
    Last Post: 27 Jun 2010, 09:10 PM
  3. Creating the configure.php files
    By twoturtles in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Aug 2009, 10:02 PM
  4. Creating the configure.php files
    By barryv4 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 12 Jul 2007, 10:54 AM

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