Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2014
    Location
    Essex
    Posts
    9
    Plugin Contributions
    0

    Default Please assist with set up.

    Hi Guys and Gals, I am sorry to bother you with this but I have looked through pages of help and I am still stuck.
    I downloaded the latest working version of Zencart and unpacked from ZC site, purchased a domain name and hosting.
    Uploaded all the files to public_html into a folder I named Zencart.
    Changed all the permissions as stated in the FAQ pages and then entered my address domain name/home/public_html and nearly every other address I could think of but I just get a "why am I seeing this page"
    Any help much appreciated as I know it must be something I have done wrong.
    Thanks in advance.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Please assist with set up.


  3. #3
    Join Date
    Jun 2014
    Location
    Essex
    Posts
    9
    Plugin Contributions
    0

    Default Re: Please assist with set up.

    Quote Originally Posted by lat9 View Post
    Thanks lat9 but that doesnt work.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Please assist with set up.

    That page nearly always means the path information in your configure.php file(s) is wrong. Please post the contents of those files, Xing out the database credentials.

  5. #5
    Join Date
    Jun 2014
    Location
    Essex
    Posts
    9
    Plugin Contributions
    0

    Default Re: Please assist with set up.

    Is this the configure.php file you mean STEVESH.

    /**
    * @package admin
    * @copyright Copyright 2003-2012 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version GIT: $Id: Author: Ian Wilson Thu Aug 16 12:36:12 2012 +0100 Modified in v1.5.1 $
    */


    require('includes/application_top.php');

    $action = (isset($_GET['action']) ? $_GET['action'] : '');

    if (zen_not_null($action)) {
    switch ($action) {
    case 'save':
    // demo active test
    if (zen_admin_demo()) {
    $_GET['action']= '';
    $messageStack->add_session(ERROR_ADMIN_DEMO, 'caution');
    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
    }
    $configuration_value = zen_db_prepare_input($_POST['configuration_value']);
    $cID = zen_db_prepare_input($_GET['cID']);

    $db->Execute("update " . TABLE_CONFIGURATION . "
    set configuration_value = '" . zen_db_input($configuration_value) . "',
    last_modified = now() where configuration_id = '" . (int)$cID . "'");
    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue
    from ' . TABLE_CONFIGURATION;

    $configuration = $db->Execute($configuration_query);

    // set the WARN_BEFORE_DOWN_FOR_MAINTENANCE to false if DOWN_FOR_MAINTENANCE = true
    if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'true') ) {
    $db->Execute("update " . TABLE_CONFIGURATION . "
    set configuration_value = 'false', last_modified = '" . NOW . "'
    where configuration_key = 'WARN_BEFORE_DOWN_FOR_MAINTENANCE'"); }

    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue
    from ' . TABLE_CONFIGURATION;

    $configuration = $db->Execute($configuration_query);

    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
    break;
    }
    }

    $gID = (isset($_GET['gID'])) ? $_GET['gID'] : 1;
    $_GET['gID'] = $gID;
    $cfg_group = $db->Execute("select configuration_group_title
    from " . TABLE_CONFIGURATION_GROUP . "
    where configuration_group_id = '" . (int)$gID . "'");

    if ($gID == 7) {
    $shipping_errors = '';
    if (zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == 'NONE' or zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == '') {
    $shipping_errors .= '<br />' . ERROR_SHIPPING_ORIGIN_ZIP;
    }
    if (zen_get_configuration_key_value('ORDER_WEIGHT_ZERO_STATUS') == '1' and !defined('MODULE_SHIPPING_FREESHIPPER_STATUS')) {
    $shipping_errors .= '<br />' . ERROR_ORDER_WEIGHT_ZERO_STATUS;
    }
    if (defined('MODULE_SHIPPING_USPS_STATUS') and (MODULE_SHIPPING_USPS_USERID=='NONE' or MODULE_SHIPPING_USPS_SERVER == 'test')) {
    $shipping_errors .= '<br />' . ERROR_USPS_STATUS;
    }
    if ($shipping_errors != '') {
    $messageStack->add(ERROR_SHIPPING_CONFIGURATION . $shipping_errors, 'caution');
    }
    }

    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
    <script language="javascript" src="includes/menu.js"></script>
    <script language="javascript" src="includes/general.js"></script>
    <script type="text/javascript">
    <!--
    function init()
    {
    cssjsmenu('navbar');
    if (document.getElementById)
    {
    var kill = document.getElementById('hoverJS');
    kill.disabled = true;
    }
    }
    // -->
    </script>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="init()">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->

    <!-- body //-->
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
    <tr>
    <!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td class="pageHeading"><?php echo $cfg_group->fields['configuration_group_title']; ?></td>
    <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr class="dataTableHeadingRow">
    <td class="dataTableHeadingContent" width="55%"><?php echo TABLE_HEADING_CONFIGURATION_TITLE; ?></td>
    <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CONFIGURATION_VALUE; ?></td>
    <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
    </tr>
    <?php
    $configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key,
    use_function from " . TABLE_CONFIGURATION . "
    where configuration_group_id = '" . (int)$gID . "'
    order by sort_order");
    while (!$configuration->EOF) {
    if (zen_not_null($configuration->fields['use_function'])) {
    $use_function = $configuration->fields['use_function'];
    if (preg_match('/->/', $use_function)) {
    $class_method = explode('->', $use_function);
    if (!is_object(${$class_method[0]})) {
    include(DIR_WS_CLASSES . $class_method[0] . '.php');
    ${$class_method[0]} = new $class_method[0]();
    }
    $cfgValue = zen_call_function($class_method[1], $configuration->fields['configuration_value'], ${$class_method[0]});
    } else {
    $cfgValue = zen_call_function($use_function, $configuration->fields['configuration_value']);
    }
    } else {
    $cfgValue = $configuration->fields['configuration_value'];
    }

    if ((!isset($_GET['cID']) || (isset($_GET['cID']) && ($_GET['cID'] == $configuration->fields['configuration_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
    $cfg_extra = $db->Execute("select configuration_key, configuration_description, date_added,
    last_modified, use_function, set_function
    from " . TABLE_CONFIGURATION . "
    where configuration_id = '" . (int)$configuration->fields['configuration_id'] . "'");
    $cInfo_array = array_merge($configuration->fields, $cfg_extra->fields);
    $cInfo = new objectInfo($cInfo_array);
    }

    if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) {
    echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '\'">' . "\n";
    } else {
    echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id'] . '&action=edit') . '\'">' . "\n";
    }
    ?>
    <td class="dataTableContent"><?php echo $configuration->fields['configuration_title']; ?></td>
    <td class="dataTableContent"><?php echo htmlspecialchars($cfgValue, ENT_COMPAT, CHARSET, TRUE); ?></td>
    <td class="dataTableContent" align="right"><?php if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id']) . '" name="link_' . $configuration->fields['configuration_key'] . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
    </tr>
    <?php
    $configuration->MoveNext();
    }
    ?>
    </table></td>
    <?php
    $heading = array();
    $contents = array();

    switch ($action) {
    case 'edit':
    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');

    if ($cInfo->set_function) {
    eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value, ENT_COMPAT, CHARSET, TRUE) . '");');
    } else {
    $value_field = zen_draw_input_field('configuration_value', htmlspecialchars($cInfo->configuration_value, ENT_COMPAT, CHARSET, TRUE), 'size="60"');
    }

    $contents = array('form' => zen_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));
    if (ADMIN_CONFIGURATION_KEY_ON == 1) {
    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');
    }
    $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
    $contents[] = array('text' => '<br><b>' . $cInfo->configuration_title . '</b><br>' . $cInfo->configuration_description . '<br>' . $value_field);
    $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE, 'name="submit' . $cInfo->configuration_key . '"') . '&nbsp;<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
    break;
    default:
    if (isset($cInfo) && is_object($cInfo)) {
    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');
    if (ADMIN_CONFIGURATION_KEY_ON == 1) {
    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');
    }

    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
    $contents[] = array('text' => '<br>' . $cInfo->configuration_description);
    $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($cInfo->date_added));
    if (zen_not_null($cInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($cInfo->last_modified));
    }
    break;
    }

    if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
    echo ' <td width="25%" valign="top">' . "\n";

    $box = new box;
    echo $box->infoBox($heading, $contents);

    echo ' </td>' . "\n";
    }
    ?>
    </tr>
    </table></td>
    </tr>
    </table></td>
    <!-- body_text_eof //-->
    </tr>
    </table>
    <!-- body_eof //-->

    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Please assist with set up.

    Nope. It will be includes/configure.php.

  7. #7
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Please assist with set up.

    You said that you uploaded the files to the public_html directory on your server. It sounds like you never actually did an install. If that's the case there wouldn't be a config file created yet. It will depend on what you actually uploaded to determine what you need to put in the browser to start the install. If the public_html folder on your server contains a folder called admin then you should be able to enter www.yourdomain.xxx and it should detect that an installation is required. If the folder in public_html is something like zen-cart-v1.5.1-full-fileset-09182012 then your should enter www.mydomain.xxx/whateverthatdirectory is.

  8. #8
    Join Date
    Jun 2014
    Location
    Essex
    Posts
    9
    Plugin Contributions
    0

    Default Re: Please assist with set up.

    Quote Originally Posted by badarac View Post
    You said that you uploaded the files to the public_html directory on your server. It sounds like you never actually did an install. If that's the case there wouldn't be a config file created yet. It will depend on what you actually uploaded to determine what you need to put in the browser to start the install. If the public_html folder on your server contains a folder called admin then you should be able to enter www.yourdomain.xxx and it should detect that an installation is required. If the folder in public_html is something like zen-cart-v1.5.1-full-fileset-09182012 then your should enter www.mydomain.xxx/whateverthatdirectory is.
    I followed the instructions and made a folder called Zencart in my public_html folder then changed the permissions as instructed in the docs page by uploading all the files from the download. Also tried http://www.mydomain.co.uk/home/fraga...art/zc_install.

  9. #9
    Join Date
    Jun 2014
    Location
    Essex
    Posts
    9
    Plugin Contributions
    0

    Default Re: Please assist with set up.

    Quote Originally Posted by stevesh View Post
    Nope. It will be includes/configure.php.
    This is the one in includes/configure.php




    /**
    * dist-configure.php
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2012 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version GIT: $Id: Author: DrByte Tue Jul 31 17:24:25 2012 -0400 Modified in v1.5.1 $
    * @private
    */
    // 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://localhost');
    define('HTTPS_SERVER', 'https://localhost');

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

    // * 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', ''); // prefix for database table names -- preferred to be left empty
    define('DB_CHARSET', 'utf8');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', '');

    // 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', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');

  10. #10
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Please assist with set up.

    define('HTTP_SERVER', 'http://localhost');
    define('HTTPS_SERVER', 'https://localhost');

    If you're installing Zencart locally, we needed to know that. If not, these need to be changed to reflect the server path.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Difficulties in configuring Shipping **Please assist**
    By menonmoon in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 9 Jun 2011, 02:36 PM
  2. Help! Can anyone assist with some customization on my Zen Cart?
    By zuffron7 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Jun 2010, 11:41 AM
  3. Help Please With Set Up
    By Herbal4health in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 May 2009, 01:34 PM
  4. PHPers Needed to Assist With Custom Shipping Mod
    By bumba000 in forum General Questions
    Replies: 0
    Last Post: 3 Apr 2008, 01:31 AM

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