Forums / Installing on a Linux/Unix Server / Problems with installation

Problems with installation

Locked
Results 1 to 9 of 9
This thread is locked. New replies are disabled.
21 Jul 2008, 00:28
#1
bmw2182 avatar

bmw2182

New Zenner

Join Date:
Jul 2008
Posts:
4
Plugin Contributions:
0

Problems with installation

I'm installing ZenCart on Ipower (linux server). I installed the files on my pc and ftp'd them to store in the httpdocs folder. I did create my database with MySQL. I renamed the dist_configure.php files in both locations to configure.php. I changed the permissions on all the folders like it said. When I point my browser to the zc_install, I don't get an error message, however, it's trying to download a file from my website to my pc. What am I doing wrong?

This is the first time I'm trying to install ZenCart, so I'm sure it's something simple, but I'm ready to tear my hair out. I would expect it would come up to an installation screen.

Any help would be appreciated.
21 Jul 2008, 11:28
#2
stevesh avatar

stevesh

Black Belt

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

Re: Problems with installation

If you're getting a file download box when you run the Zencart installation, it's probably a PHP problem, and would be a question for your host.
29 Jul 2008, 01:27
#3
bmw2182 avatar

bmw2182

New Zenner

Join Date:
Jul 2008
Posts:
4
Plugin Contributions:
0

Re: Problems with installation

I was able to complete the installation and it goes through fine. I'm going to http://www.ecopelagicon.com/store/admin to login to continue to set things up and I get the following message:

Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /var/www/vhosts/ecopelagicon.com/httpdocs/store/admin/includes/application_top.php on line 61

Warning: main() [function.include]: Failed opening 'includes/configure.php' for inclusion (include_path='\') in /var/www/vhosts/ecopelagicon.com/httpdocs/store/admin/includes/application_top.php on line 61


Any ideas? I've checed the application _top.php file and it refers to the includes/configure.php, and it is there. What am I missing?

It continues with the following as well:
Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons:
This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).


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.


To begin installation ...
The Installation Documentation can be read by clicking here: Documentation
You will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).
The Online FAQ and Tutorials area on the Zen Cart™ website will also be of value if you run into difficulties.
29 Jul 2008, 11:26
#4
stevesh avatar

stevesh

Black Belt

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

Re: Problems with installation

You're looking in admin/includes for the configure.php file, right?

If it's there, make sure the path info in it is correct.
29 Jul 2008, 15:29
#5
bmw2182 avatar

bmw2182

New Zenner

Join Date:
Jul 2008
Posts:
4
Plugin Contributions:
0

Re: Problems with installation

I checked my configure.php in admins/includes and everything appears fine. This is what it has in it: Any ideas?

<?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 "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*
* URLs 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.ecopelagicon.com');
define('HTTPS_SERVER', 'https://www.ecopelagicon.com');
define('HTTP_CATALOG_SERVER', 'http://www.ecopelagicon.com');
define('HTTPS_CATALOG_SERVER', 'https://www.ecopelagicon.com');

// Use 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 (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/store/admin/');
define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_ADMIN', '/store/admin/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

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', '/var/www/vhosts/ecopelagicon.com/httpdocs/store/admin/');
define('DIR_FS_CATALOG', '/var/www/vhosts/ecopelagicon.com/httpdocs/store/');

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', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'admin2');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'ecostore');
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', '/var/www/vhosts/ecopelagicon.com/httpdocs/store/cache');

// EOF
31 Jul 2008, 20:34
#6
bmw2182 avatar

bmw2182

New Zenner

Join Date:
Jul 2008
Posts:
4
Plugin Contributions:
0

Re: Problems with installation

I recently installed Zen-cart on Ipower, but I can't get into the administration area. When I go to http://www.ecopelagicon.com/store/admin I get the following message:

Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /var/www/vhosts/ecopelagicon.com/httpdocs/store/admin/includes/application_top.php on line 61

Warning: main() [function.include]: Failed opening 'includes/configure.php' for inclusion (include_path='\') in /var/www/vhosts/ecopelagicon.com/httpdocs/store/admin/includes/application_top.php on line 61

I have checked the following files:

store/admin/includes - configure.php line 61 says: define('DIR_FS_CATALOG', '/var/www/vhosts/ecopelagicon.com/httpdocs/store/');

store/includes - configure.php line 61 says: // For SQL_CACHE_METHOD, you can select from: none, database, or file

store/admin/includes - application_top.php line 61 says include('includes/configure.php');


Any ideas why I can't get in??? I'm tearing my hair out. I really need to get this resolved before I go on vacation. If you need more information, I'm happy to provide anything that you need. PLEASE HELP - I'm really frustrated.
01 Aug 2008, 05:38
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Problems with installation

bmw2182:

Failed opening 'includes/configure.php' for inclusion (include_path='\') in /var/www/vhosts/ecopelagicon.com/httpdocs/store/admin/includes/application_top.php on line 61

You'll want to get your hosting company to change the include_path to also include the current directory, usually indicated by a "dot": .
01 Aug 2008, 08:04
#8
amit001 avatar

amit001

New Zenner

Join Date:
Jul 2008
Posts:
46
Plugin Contributions:
0

Re: Problems with installation

bmw2182:

I'm installing ZenCart on Ipower (linux server). I installed the files on my pc and ftp'd them to store in the httpdocs folder. I did create my database with MySQL. I renamed the dist_configure.php files in both locations to configure.php. I changed the permissions on all the folders like it said. When I point my browser to the zc_install, I don't get an error message, however, it's trying to download a file from my website to my pc. What am I doing wrong?

This is the first time I'm trying to install ZenCart, so I'm sure it's something simple, but I'm ready to tear my hair out. I would expect it would come up to an installation screen.

Any help would be appreciated.




Use the orignal dist-configure.php

backup your configure.php and use a blank file named configure.php in both location set the permission writable by using your ftp program

it will solve your problem
01 Aug 2008, 16:32
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Problems with installation

Amit001:

Use the orignal dist-configure.php

backup your configure.php and use a blank file named configure.php in both location set the permission writable by using your ftp program

it will solve your problem


No, I disagree. The problem is not with the configure.php files. It's in the include_path setting of the server's PHP configuration