Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2008
    Posts
    16
    Plugin Contributions
    0

    Default Is it ok to Rename the admin folder?

    Hi,
    I was wonder if it is ok to simply rename the admin folder? this might make it a little bit harder for the hackers to find it.
    Cheers

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Is it ok to Rename the admin folder?

    It is often asked, and common wisdom is that one should re-name the admin folder.

    It's not too complicated to re-set the paths to the newly-named folder... the path/directory name changes you need to make are in:-

    includes/configure.php
    and
    admin/includes/configure.php

    (Naturally, if you re-name ADMIN before you change the settings (paths) in admin/includes/configure.php, you will have to (in your c-panel or ftp) navigate to the appropriate directory to find that configure.php file.)

    Set your site to "Down for Maintenance" while you make the changes - it should take about 5 to 10 minutes to change the folder name, and the references in the two configure.php files.
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Is it ok to Rename the admin folder?

    It's even less complicated than Schoolboy makes it, although he's got the right idea.

    To rename the admin folder, you don't need to go down-for-maintenance, and you don't need to touch the /includes/configure.php file.

    You only need to touch the /admin/includes/configure.php file, after renaming your admin folder itself.

    The process is documented in your Zen Cart files ... see the /docs/ folder or look up the topic in the tutorials/FAQs area: https://www.zen-cart.com/tutorials/index.php?article=73
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Is it ok to Rename the admin folder?

    Ah, thanks doc... just shows how long ago I did this myself !
    20 years a Zencart User

  5. #5
    Join Date
    May 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Is it ok to Rename the admin folder?

    Hi

    I just did this and got the following error:
    ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?

    So I checked the configure file again ensuring that it has saved properly. There are only 3 places to change it and they are correct. The folder and the edits were all compatible but still get the above error.

    SO... after about 4 hours of faffing about I decided just to rename it all back to admin and guess what:

    ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?

    same error... what am I missing??

    rgds

    Mick

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Is it ok to Rename the admin folder?

    You will get that message when the configure.php file does not exist, or cannot be read due to overly restrictive permissions, or when the content of the file does not validate.

    I suspect you've changed a setting to point to a folder that doesn't exist.

    Please post the admin configure.php file contents here ... and replace your private admin folder name with MYFOLDER, and mask the password.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Is it ok to Rename the admin folder?

    Thanks.

    I eventually just uploaded the entire admin folder again from a backup and its working again. Just shows the importance of backups.

    Still dont know what caused the trouble but Ill be back if it doesnt work when I try to change it again.

    Thanks again Dr Byte.

    rgds

    Mick

 

 

Similar Threads

  1. v150 how to rename the admin folder name of zencart 1.5.0,urgently
    By simonzang in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 16 Feb 2012, 09:29 AM
  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. Rename Admin folder
    By axip in forum Basic Configuration
    Replies: 39
    Last Post: 20 Nov 2010, 09:56 PM
  4. Rename Admin folder
    By alimtlai in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 4 Jan 2010, 12:27 PM

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