Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Rename Admin folder instructions does not work - did something wrong

    I did standard installation. Then follow the rename admin instructins to rename 3 instance of 'admin' to 'admin2' in configure.php. Then rename my folder from admin to admin2.

    Fail. When I got to www.xxx.com/admin2, I get

    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/admin2/includes/configure.php on line 12

    I think there is more to do? But that is all the instructions

  2. #2
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Re: Rename Admin folder instructions does not work

    what is wrong with this config??

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


    /*************** 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://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://www.online-shop.hk');
    define('HTTPS_SERVER', 'https://www.online-shop.hk');
    define('HTTP_CATALOG_SERVER', 'http://www.online-shop.hk');
    define('HTTPS_CATALOG_SERVER', 'https://www.online-shop.hk');

    // 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', '/admin2/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin2/');
    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', '/var/www/html/admin2/');
    define('DIR_FS_CATALOG', '/var/www/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');
    define('DB_SERVER_USERNAME', 'xxx');
    define('DB_SERVER_PASSWORD', 'xxx');
    define('DB_DATABASE', 'xxx');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    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', 'database');
    define('DIR_FS_SQL_CACHE', '/var/www/html/cache');

    ?>

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

    Default Re: Rename Admin folder instructions does not work

    There's nothing wrong with that file that I can see - and your Login page for the admin panel comes up onscreen just fine.

    But using 'admin2' in place of 'admin' isn't going to fool any potential hacker. You need to change it to something really hard to guess.

    Vger

  4. #4
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Re: Rename Admin folder instructions does not work

    Hi then what is the problem? It does not work, I pull down the whole installation and restore my old 1.26. And it works. So the one that you see it work is the old one.

    I only choose to change to admin2 because my web admin is on /admin/ so I cannot access the cart admin without changing the folder. Last time I remember requiring to change all instance of admin to admin2 and ADMIN to ADMIN2, but I dont see it in the latest 1.36. What am I doing wrong?

  5. #5
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: Rename Admin folder instructions does not work

    did you change BOTH configure.php files? There is one in includes/configure.php and one in admin/includes/configure.php

    It works fine when you go to http://www.online-shop.hk / admin2 ... not sure whats not working...

  6. #6
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Re: Rename Admin folder instructions does not work

    hi, i pulled down everything, then start from scratch, now its ok. I dont know what happened before. I think there was some old config file somewhere or what. Thanks for all the input.

 

 

Similar Threads

  1. v153 Something wrong with my admin folder
    By keithduong in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 8 Oct 2014, 07:55 PM
  2. Log in after rename Rename "admin" folder does not work
    By flashmxfreak in forum General Questions
    Replies: 3
    Last Post: 3 Sep 2011, 12:38 PM
  3. Followed recommendations to rename admin folder - now doesn't work
    By alicia1234 in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 12 Aug 2011, 12:45 AM
  4. ADMIN user does not work! can resend PW but admin name wrong?
    By catalinabydesign in forum General Questions
    Replies: 3
    Last Post: 23 May 2009, 11:47 AM
  5. Links in Admin area don't work after admin folder rename
    By bhfruitcakeco in forum General Questions
    Replies: 8
    Last Post: 27 Dec 2007, 06:55 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