Forums / Installing on a Windows Server / Having Trouble With Configure

Having Trouble With Configure

Locked
Results 1 to 14 of 14
This thread is locked. New replies are disabled.
15 Jan 2009, 17:51
#1
antonio_zth avatar

antonio_zth

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

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?
15 Jan 2009, 18:55
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

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.
16 Jan 2009, 02:36
#3
antonio_zth avatar

antonio_zth

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

Re: Having Trouble With Configure

stevesh:

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 :laugh: )

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."

:blush:
17 Jan 2009, 07:50
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: Having Trouble With Configure

// * 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:

// * 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
17 Jan 2009, 07:58
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: Having Trouble With Configure

Same type of problem with your:

admin/includes/configure.php

... should be:

[PHP]// 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/');[/PHP]
17 Jan 2009, 19:30
#6
antonio_zth avatar

antonio_zth

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

Re: Having Trouble With Configure

No luck...still the same... :-(
17 Jan 2009, 19:58
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: Having Trouble With Configure

antonio_zth:



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

"404 - File or directory not found."

:blush:


I'm puzzled... How did your configure.php files get completed if you have not run the install yet?
17 Jan 2009, 22:28
#8
antonio_zth avatar

antonio_zth

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

Re: Having Trouble With Configure

schoolboy:

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?:blink:
17 Jan 2009, 22:49
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

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.
17 Jan 2009, 22:53
#10
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: Having Trouble With Configure

FTP the two dist_configure.php files to their appropriate folders.

DELETE the configure.php files you manually edited.

RE-NAME dist_configure.php files to configure.php

And run the install.

You may have some success...
17 Jan 2009, 23:40
#11
antonio_zth avatar

antonio_zth

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

Re: Having Trouble With Configure

schoolboy:

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.


schoolboy:

FTP the two dist_configure.php files to their appropriate folders.

DELETE the configure.php files you manually edited.

RE-NAME dist_configure.php files to configure.php

And run the install.

You may have some success...


Ok...i tried it on another live server which I also have access and the installation page just pop out with no problem whatsover...

Can it be a server probelm????

To run the installation simply enter the url which is www.antoniopc.com , but, the server kind of not knowing to catch a "*.php" file....a normal html is ok, but .php sadly, not working...

What should I tell my webhost provider??
23 Jan 2009, 08:35
#12
modelim avatar

modelim

New Zenner

Join Date:
Jan 2009
Posts:
1
Plugin Contributions:
0

Re: Having Trouble With Configure

did you finely succeed to install zen?
I need help to configure this two configure.php files
I did sub domain called zen.ibr.co.il

I have uploaded all files there

what now?
I have no experience so please try to explain every step or send me the configured file already with the correct name (zen.ibr.co.il)
thank you
27 Jan 2009, 09:49
#13
antonio_zth avatar

antonio_zth

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

Re: Having Trouble With Configure

modelim:

did you finely succeed to install zen?
I need help to configure this two configure.php files
I did sub domain called zen.ibr.co.il

I have uploaded all files there

what now?
I have no experience so please try to explain every step or send me the configured file already with the correct name (zen.ibr.co.il)
thank you


Yap...I've managed to install zencart after the hosting provider swapped my hosting to another server which is has better "php" capabilities....

I'm now currently updating the cart and at the same time looking for a nice template...anyone knows what template does this site uses:----> http://www.modernopc.com/store/index.php?main_page=index

I like the layout of the product page which includes a dedicated information and picture gallery on the bottom part of the page....
27 Jan 2009, 09:58
#14
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Posts:
10,324
Plugin Contributions:
0

Re: Having Trouble With Configure

modelim:

what now?
I have no experience so please try to explain every step or send me the configured file already with the correct name (zen.ibr.co.il)
thank you


Start by reading the help documents (in the DOCS folder of your ZC package - click on index.html)

Have you made sure that your server is appropriate for ZC? Looks like you are on a MS Server:
Microsoft-IIS/6.0
X-Powered-By: ASP.NET


While you can install on MS server, you need to be aware of how to deal with .htaccess issues (and others).