Results 1 to 8 of 8
  1. #1

    Default Problem Accessing Admin After Changing Folder Name

    just a quick question. i just changed my admin folder name and also fixed the file name in the config file, for security reasons. i did exactly what it said to do in the docs file. but now when i go to admin nothing comes up its just a blank page.
    this is the config file. can someone have a look and tell me whats wrong.
    i changed the pass and username


    Code:
    <?php
    //
    /**
     *
     * @package Configuration Settings
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     */
    
    
    // Define the webserver and path parameters
      // Main webserver: eg, http://localhost - should not be empty for productive servers
      // 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
      /* 
       * 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
       */
      define('HTTP_SERVER', 'http://enchantedlingerie.com');
      define('HTTPS_SERVER', 'https://enchantedlingerie.com');
      define('HTTP_CATALOG_SERVER', 'http://enchantedlingerie.com');
      define('HTTPS_CATALOG_SERVER', 'https://enchantedlingerie.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', '/img/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', '/img/');
      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', '/home/enchante/public_html/img/');
      define('DIR_FS_CATALOG', '/home/enchante/public_html/');
    
      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'); // eg, localhost - should not be empty
      define('DB_SERVER_USERNAME', 'user');
      define('DB_SERVER_PASSWORD', 'pass');
      define('DB_DATABASE', 'enchante_zen');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'
    
      // 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/enchante/public_html/cache');
    
    ?>
    i just dont see whats wrong.

    if anyone has a clue i would greatly appreciate it.

    thanks so much

  2. #2

    Default Re: Problem Accessing Admin After Changing Folder Name

    now when i go to admin i get these errors

    Warning: main(/home/enchante/public_html/includes/autoload_func.php): failed to open stream: No such file or directory in /home/cara1977/public_html/img/includes/application_top.php on line 145

    Warning: main(/home/enchante/public_html/includes/autoload_func.php): failed to open stream: No such file or directory in /home/cara1977/public_html/img/includes/application_top.php on line 145

    Fatal error: main(): Failed opening required '/home/enchante/public_html/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cara1977/public_html/img/includes/application_top.php on line 145


    i dont know what is going on.

    if anyone has any ideas i would greatly appreciate them.

    thanks muchly

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,105
    Plugin Contributions
    11

    Default Re: Problem Accessing Admin After Changing Folder Name

    unless you renamed your admin folder "img", your errors appear to be in the DIR_WS* section of the configure file beginning on line 38

  4. #4

    Default Re: Problem Accessing Admin After Changing Folder Name

    thanks so much for the advice. yes i did change admin directory to img. i did this exactly as it stated in the docs.

    Code:
    1- Open your admin configuration file: admin/includes/configure.php
    In this file, change all instances of /admin/ to your chosen name:
    
    Change this section:
    
    // 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', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    
    Change this section:
    
    // * 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', '/home/mystore.com/www/public/admin/');
    define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');
    
    
    2- Rename your admin directory
    i have done this before without problems.
    i switched everything back to admin but now i get the exact same error messages as when i renamed it to img.
    i just don't get it.

    Cara

  5. #5
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Problem Accessing Admin After Changing Folder Name

    If you look at the error you'll see the problem - the DIR_FS pathway you are using is incorrect. This is the pathway the error is showing:
    /home/cara1977/public_html/img/

    Vger

  6. #6

    Default Re: Problem Accessing Admin After Changing Folder Name

    why is it incorrect?
    this is what i don't understand.

    i changed the name of my admin folder to img
    so shouldn't that be the path.
    i only changed the areas in admin that the docs said.

    thanks for the input

    Cara

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,105
    Plugin Contributions
    11

    Default Re: Problem Accessing Admin After Changing Folder Name

    so, now you're back at image or admin?

    and, can you show us the DIR_FS portion of your admin/includes/configure.php?

  8. #8

    Default Re: Problem Accessing Admin After Changing Folder Name

    i figured it out. for some reason the paths were all wrong and the database pass and user was also wrong. i don't have a clue how this happened, thank you both for the help, it got me going in the right direction.

    thanks so much

    Cara

 

 

Similar Threads

  1. 404 error after changing name od admin folder
    By wagnerguy in forum Basic Configuration
    Replies: 27
    Last Post: 24 Dec 2011, 06:10 AM
  2. Backup ZC Broken after changing admin folder name
    By SethF in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 13 Nov 2011, 04:42 PM
  3. Problems after changing name of admin folder
    By pbhewitt in forum General Questions
    Replies: 4
    Last Post: 2 Oct 2010, 01:01 PM
  4. 403 error after changing name of admin folder
    By YZ250 in forum General Questions
    Replies: 8
    Last Post: 7 Jul 2009, 07:40 AM
  5. Problems after changing admin folder name
    By barbaraj1111 in forum General Questions
    Replies: 2
    Last Post: 26 Aug 2008, 08:41 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR