Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Having Trouble With Configure

    Hi all...

    I've downloaded ZC v1.3.8 and i've completed the extraction and uploaded all the files to my server...

    I'm having problems of trying to run the installer, which i think got to do with the configure.php file both in the mydomain.com/includes and mydomain.com/admin/includes...

    Below are my configure.php files from the includes folder;

    <?php
    /**
    * dist-configure.php
    *
    * @package Configuration Settings
    * @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
    * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
    * @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://www.antoniopc.com');
    define('HTTPS_SERVER', 'https://www.antoniopc.com');

    // 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', 'httpdocs/antonipc/');
    define('DIR_WS_HTTPS_CATALOG', 'httpsdocs/antonipc/');

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

    // * 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', '/inetpub/vhosts/antoniopc.com/httpdocs/antonipc/');

    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_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'sample');
    define('DB_SERVER_PASSWORD', 'sample1234');
    define('DB_DATABASE', 'sample_data');
    define('USE_PCONNECT', 'false');
    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', 'none');
    define('DIR_FS_SQL_CACHE', 'www.antoniopc.com/httpdocs/antonipc/cache');

    ?>
    and my configure.php from the folder admin/includes

    <?php
    /**
    * dist-configure.php
    *
    * @package Configuration Settings
    * @package Admin
    * @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
    * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
    * @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
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.com
    /*
    * URL's 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.antoniopc.com/');
    define('HTTPS_SERVER', 'https://www.antoniopc.com/');
    define('HTTP_CATALOG_SERVER', 'http://www.antoniopc.com/antonipc/');
    define('HTTPS_CATALOG_SERVER', 'https://www.antoniopc.com/antonipc/');

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

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

    // * DIR_WS_* = Webserver directories (www.antoniopc.com/httpdocs/antonipc/)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', 'www.antoniopc.com/httpdocs/antonipc/admin/');
    define('DIR_WS_CATALOG', 'www.antoniopc.com/httpdocs/antonipc/');
    define('DIR_WS_HTTPS_ADMIN', 'www.antoniopc.com/httpsdocs/antonipc/admin/');
    define('DIR_WS_HTTPS_CATALOG', 'www.antoniopc.com/httpsdocs/antonipc/');

    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', 'www.antoniopc.com/httpdocs/antonipc/admin/');
    define('DIR_FS_CATALOG', 'www.antoniopc.com/httpdocs/antonipc/');

    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', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'sample_user');
    define('DB_SERVER_PASSWORD', 'sample1234');
    define('DB_DATABASE', 'sample_data');
    define('USE_PCONNECT', 'false');
    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', 'none');
    define('DIR_FS_SQL_CACHE', '/httpdocs/antonipc/cache/');

    ?>
    When i go to http://www.antoniopc.com/antonipc/nddbc.html the note there states that i'm having problems in order to connect to the database...

    Anything wrong hjere?

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

    Default Re: Having Trouble With Configure

    You need to change the dist-configure.php file names to configure.php and change the permissions to (temporarily) 777.

    What I usually do is upload the Zencart zip file, extract it to the root directory using my hosting account's File Manager, and then point my browser to the root directory (www.mysite.com) to start the installation. The installation routine will tell you what permissions need to be changed to install.

  3. #3
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Having Trouble With Configure

    Quote Originally Posted by stevesh View Post
    You need to change the dist-configure.php file names to configure.php and change the permissions to (temporarily) 777.

    What I usually do is upload the Zencart zip file, extract it to the root directory using my hosting account's File Manager, and then point my browser to the root directory (www.mysite.com) to start the installation. The installation routine will tell you what permissions need to be changed to install.

    I've already changed it when I uploaded the files onto the server, and the appropriate permission was already done via Control Panel (windows hosting so no 777 commands )

    dist-configure.php (includes) to configure.php
    dist-configure.php (admin/includes) to configure.php

    The problem also lies whereby I can access anything if I just use the URL such as www.antoniopc.com or antoniopc.com/antonipc/

    I need specifically to point to a file ex. www.antoniopc.com/antonipc/dbbc.html only then, i can get something...if not, i there server will come out with a message

    "403 - Forbidden: Access is denied"

    or when I want to access the installation directory, (http://www.antoniopc.com/antonipc/zc_install/)

    "404 - File or directory not found."


  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Having Trouble With Configure

    Code:
    // * 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', 'httpdocs/antonipc/');
    define('DIR_WS_HTTPS_CATALOG', 'httpsdocs/antonipc/');
    I think it shoud be:

    Code:
    // * 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', '/antonipc/');
    define('DIR_WS_HTTPS_CATALOG', '/antonipc/');
    ie: remove httpdocs
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Having Trouble With Configure

    Same type of problem with your:

    admin/includes/configure.php

    ... should be:

    PHP Code:
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

    // * DIR_WS_* = Webserver directories (www.antoniopc.com/httpdocs/antonipc/)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN''/antonipc/admin/');
    define('DIR_WS_CATALOG''/antonipc/');
    define('DIR_WS_HTTPS_ADMIN''/antonipc/admin/');
    define('DIR_WS_HTTPS_CATALOG''/antonipc/'); 
    20 years a Zencart User

  6. #6
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Having Trouble With Configure

    No luck...still the same... :-(

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Having Trouble With Configure

    Quote Originally Posted by antonio_zth View Post

    or when I want to access the installation directory, (http://www.antoniopc.com/antonipc/zc_install/)

    "404 - File or directory not found."

    I'm puzzled... How did your configure.php files get completed if you have not run the install yet?
    20 years a Zencart User

  8. #8
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Having Trouble With Configure

    Quote Originally Posted by schoolboy View Post
    I'm puzzled... How did your configure.php files get completed if you have not run the install yet?
    I did it manually...fill in the necessary details then upload to the appropriate folder...

    Shouldn't I?

  9. #9
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Having Trouble With Configure

    The configure.php files are built automatically during the initial install.

    (Assuming that you have created a database and you know its name, username and password) all you need do is:

    1. Upload all ZC folders and files to your server (DOCS folder not necessary to upload)
    2. Change permissions of certain files and folders (see DOCS FOLDER in the ZC software for install instructions).
    3. Rename dist-configure.php files to configure.php files and make sure they are writeable.

    run the install...

    ... and follow on-screen instructions.
    20 years a Zencart User

 

 

Similar Threads

  1. v139h having trouble with d/l product
    By BamaPlants in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 30 Jun 2012, 05:35 AM
  2. Having trouble with fonts
    By Faeriescraps in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 13 Jun 2012, 04:00 PM
  3. Having Trouble With Attributes
    By HBELLC in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 18 Aug 2011, 02:12 AM
  4. Having trouble with my website
    By tjturner in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Jun 2011, 10:21 AM
  5. Having trouble with Checkout
    By trafficzombie in forum Basic Configuration
    Replies: 1
    Last Post: 6 Jul 2009, 09:49 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