Rename Your Admin

From Zen Cart(tm) Wiki
Revision as of 10:47, 23 June 2010 by Swguy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Renaming your admin is an important basic security measure for your Zen Cart. You want the name to be hard for bad guys to just guess.

Pick a random series of at least 8 letters and numbers for your new admin name. As an example, we will use the string "testabc123" (do not use this string! Use one you have thought up yourself.)

  1. Edit the file admin/includes/configure.php. Make these two changes:
        1. Change
           define('DIR_WS_ADMIN', '/admin/'); to
           define('DIR_WS_ADMIN', '/testabc123/');
        2. Change
           define('DIR_WS_HTTPS_ADMIN', '/admin/'); to
           define('DIR_WS_HTTPS_ADMIN', '/testabc123/');
        3. Change
           define('DIR_FS_ADMIN', '/home/slothe/public_html/admin/'); to
           define('DIR_FS_ADMIN', '/home/slothe/public_html/testabc123/');
  2. Rename your admin directory using your file transfer software to testabc123
  3. Update all your bookmarks, favorites, etc. to use the new URL to your admin panel, http://your-store.com/testabc123

If your shop is in a subdirectory, the same steps apply. Suppose the subdirectory is called "store".

  1. Change
     define('DIR_WS_ADMIN', '/store/admin/'); to
     define('DIR_WS_ADMIN', '/store/testabc123/');
  2. Change
     define('DIR_WS_HTTPS_ADMIN', '/store/admin/'); to
     define('DIR_WS_HTTPS_ADMIN', '/store/testabc123/');
  3. Change
     define('DIR_FS_ADMIN', '/home/slothe/public_html/store/admin/'); to
     define('DIR_FS_ADMIN', '/home/slothe/public_html/store/testabc123/');