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
    Hertfordshire, UK
    Posts
    9,915
    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.
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  3. #3
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    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: http://tutorials.zen-cart.com/index.php?article=73
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Hertfordshire, UK
    Posts
    9,915
    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 !
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  5. #5
    Join Date
    May 2007
    Posts
    29
    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
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    29
    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. Rename Admin folder
    By axip in forum Basic Configuration
    Replies: 39
    Last Post: 20 Nov 2010, 09:56 PM
  2. Admin Folder Rename Not Working for me
    By J. Smith in forum General Questions
    Replies: 2
    Last Post: 25 Feb 2008, 03:57 AM
  3. 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
  4. Rename Admin folder instructions does not work - did something wrong
    By ronwong in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 4 Dec 2006, 11:49 AM
  5. Trying to rename my admin folder but cant
    By fanmap81 in forum General Questions
    Replies: 10
    Last Post: 8 Nov 2006, 04:28 AM

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
  •