If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / admin folder name change problem

admin folder name change problem

Locked

Started by luther on 26 Nov 2009, 8:42 AM · Views: 2,418

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Nov 2009, 8:42 AM
#1
luther avatar

luther

New Zenner

Join Date:
Oct 2009
Posts:
27
Plugin Contributions:
0

admin folder name change problem

http://localhost/mystore/Catalog/zen-cart-v1.3.8a-full-fileset-12112007/index.php/admin
Site not upgraded
No add ons
Looked at FAQS and Forum
Last Frday

I renamed my admin folder for security purposes and now I cannot open it. I attempted to replace all of the changes back to their original state, but I must have missed something. The attachments show the error dialog. There are some text attachments that show the paths and the upper portion of my configuration file. I am running this on localhost until I perfect my configuration. Then I will move it to a regular server. I hope someone can take a look and provide me some guidance.

The password is not a problem. It is the changes that I made that now affect the path to the Admin configuration. I can open the regular store.

26 Nov 2009, 10:33 AM
#2
kdays avatar

kdays

Zen Follower

Join Date:
May 2008
Posts:
239
Plugin Contributions:
0

Re: admin folder name change problem

Did you change the admin folder name in BOTH of the required sections of the admin/includes/configure.php file?

Your attachments did not show up and the link is not working so can't look at the exact situation of your site at the moment. Did you take a copy of the file before making the changes? If yes, reload it and make the changes again.

27 Nov 2009, 11:11 PM
#3
luther avatar

luther

New Zenner

Join Date:
Oct 2009
Posts:
27
Plugin Contributions:
0

Re: admin folder name change problem

kdays:

Did you change the admin folder name in BOTH of the required sections of the admin/includes/configure.php file?

Your attachments did not show up and the link is not working so can't look at the exact situation of your site at the moment. Did you take a copy of the file before making the changes? If yes, reload it and make the changes again.

I checked the attachments. The sizes were too large. These attachments should work better.

Yes, I made changes in both places. This is a copy of the configuration file after I tried to return it to its original condition:

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

// 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', '/admin/');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/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', 'C:/Users/Luther/Documents/catalog/admin/');
define('DIR_FS_CATALOG', 'C:/Users/Luther/Documents/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/');


End of Config file.

This is the url that I use for the main page:
For the store: http://localhost/mystore/Catalog/zen-cart-v1.3.8a-full-fileset-12112007/index.php

For the Admin Page:
http://localhost/mystore/catalog/zen-cart-v1.3.8a-full-fileset-12112007/admin/login.php?

This brings up the Admin Login page. When I fill out the admin Login dialog box, and click on Login; I am taken to http://localhostdir_ws_adminlogin.php/. The page that comes up now has the error message: "DNS error"-"cannot find the server localhost dir admin login php." It also states, "Oops! This link appears to be broken."

For clarity I am attaching the jpegs that show all of this.

27 Nov 2009, 11:43 PM
#4
baddog1369 avatar

baddog1369

New Zenner

Join Date:
Oct 2009
Location:
Columbus, Ohio
Posts:
38
Plugin Contributions:
0

Re: admin folder name change problem

Is your admin directory in root or should the path have /catalog/ in front of it? Like this:
define('DIR_WS_ADMIN', '/catalog/admin/