Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Stuck on install after renaming /admin

Stuck on install after renaming /admin

Views: 1,302

Results 1 to 11 of 11
5 Aug 2011, 10:07 PM
#1
benefit avatar

benefit

New Zenner

Join Date:
Aug 2011
Posts:
2
Plugin Contributions:
0

Stuck on install after renaming /admin

Hi,

I'm new to Zen Cart and this is my first time installing it. Before you ask, yes I did search and read the FAQs.

So, I've uploaded Zen Cart, configurated configurations, etc etc and I've just renamed /admin to /custom (example) since I had to. But now I'm getting the following error when navigating to /custom:

Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.

The only thing I have changed since it was working was defining; DIR_WS_ADMIN, DIR_WS_HTTPS_ADMIN and DIR_FS_ADMIN in /custom/includes/configure.php

Would greatly appreciate any help :smile:

5 Aug 2011, 10:24 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Stuck on install after renaming /admin

That message appears when the content of the configure.php file is invalid.
So, that suggests that your recent edit has broken something.

6 Aug 2011, 9:54 AM
#3
benefit avatar

benefit

New Zenner

Join Date:
Aug 2011
Posts:
2
Plugin Contributions:
0

Re: Stuck on install after renaming /admin

Hi, thanks for your answer.

Here is my /custom/includes/configure.php:

<?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://localhost');
  define('HTTPS_SERVER', 'https://localhost');
  define('HTTP_CATALOG_SERVER', 'http://localhost');
  define('HTTPS_CATALOG_SERVER', 'https://localhost');

  // 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', '/custom/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/custom/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  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', '/custom/');
  define('DIR_FS_CATALOG', '/');

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

?>

and my /includes/configure.php. I've removed passwords, but they are filled in and correct :)

<?php
/**
 * @package Configuration Settings circa 1.3.9
 * @copyright Copyright 2003-2010 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * File Built by zc_install on 2011-08-05 11:39:21
 */


/*************** 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');
  define('HTTPS_SERVER', 'https://www.mydomain.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', '/');
  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/');

  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', '/home/domains/mywebsite.com/public_html/');

  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', 'localhost');
  define('DB_SERVER_USERNAME', '');
  define('DB_SERVER_PASSWORD', '');
  define('DB_DATABASE', '');
  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', '/home/domains/mydomain.com/public_html/cache');

// EOF
6 Aug 2011, 10:03 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Stuck on install after renaming /admin

Right.
Your edits were incorrect:> Benefit:

define('DIR_FS_ADMIN', '/custom/');
define('DIR_FS_CATALOG', '/');

The instructions told you to just replace the mention of "/admin/", not completely remove all other text in those definitions.

Put back the content of those lines the way it was before you made your edits, and then just change the /admin/ to /custom/ as per the instructions.

6 Aug 2011, 5:01 PM
#5
beeshive avatar

beeshive

New Zenner

Join Date:
Aug 2011
Posts:
5
Plugin Contributions:
0

Re: Stuck on install after renaming /admin

I didn't delete anything is the problem. When I'm using the FTP (fileZilla) to upload the zencart files it doesn't work, it says it is but it isn't. the file still remains at 0 content.
I cannot stress to you that I NEVER deleted anything, I only change permissions as the instructions said to do.

6 Aug 2011, 5:20 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Stuck on install after renaming /admin

If the file contains 0 bytes ( I assume that's what you meant) then it didn't upload properly.

The code you posted is for the cart configure.php file. If you're changing the admin folder name, you want to be editing admin/includes/configure.php.

6 Aug 2011, 5:31 PM
#7
beeshive avatar

beeshive

New Zenner

Join Date:
Aug 2011
Posts:
5
Plugin Contributions:
0

Re: Stuck on install after renaming /admin

I'm assuming that's the problem so that's where I'm stuck, since I've tried to manually transfer the file clicking and dragging each one and it still remains at 0 after.
This is my problem...what do I do now, what could be the problem.
And thank you for trying to help, I really appreciate it.
(I did talk to the webhosting company and they said that it should all be working because I had it set up correctly)

:unsure:

6 Aug 2011, 5:50 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Stuck on install after renaming /admin

Could be a permissions thing. Windows or Linux server ? Try uploading the file using your hosting control panel's File Manager.

6 Aug 2011, 5:55 PM
#9
beeshive avatar

beeshive

New Zenner

Join Date:
Aug 2011
Posts:
5
Plugin Contributions:
0

Re: Stuck on install after renaming /admin

I will do that...thank you.:lamo:
:yes: I use windows 7. I've heard such great things about this software too, so I'm really looking forward to using it.
Thank you AGAIN!

6 Aug 2011, 6:02 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: Stuck on install after renaming /admin

Steve was asking about your host's SERVER:P
Linux servers generally deny permission changes thru FTP which could account for you troubles.
The file manager on your SERVER should allow you to modify the file.
Don't forget to set it back to 444 when you're done.

6 Aug 2011, 6:09 PM
#11
beeshive avatar

beeshive

New Zenner

Join Date:
Aug 2011
Posts:
5
Plugin Contributions:
0

Re: Stuck on install after renaming /admin

:shocking:hmmm I you know I just used the file manager at the webhosting site to change permissions. I now have a friend helping me, but she's in Australia and stinking timezones MAKE me patient.
Thank you and it's funny why doesn't network solutions support this program?
They are eager to get off the phone with me as soon as I say no to all the add ons:censored: