Page 1 of 2 12 LastLast
Results 1 to 10 of 40

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Can't access my admin after renaming

    The detailed steps for the required edits when renaming your admin folder are discussed in the FAQ article on the topic: https://www.zen-cart.com/tutorials/index.php?article=33
    .

    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.

  2. #2
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Can't access my admin after renaming

    Ok, now I have this problem.

    I have a fully functioning store ... so the install went fine ... 100% functioning store.

    I went and did the new security patch and renamed the admin folder - let's call it "abc123".

    In admin/includes .... I changed the admin folder name in the configure.php file in the 3 places to abc123.

    Now when I try to log into admin at, www.site.com/store/abc123 I get a 404 error.

    I reversed the security patch and still nothing.

    So, rename admin folder and change the admin folder name in 3 spots in the admin/includes configure.php file .... what else is there to do to rename the admin folder and have access ????

    Yes, I changed the permissions on the configure.php file.
    Renaming back to admin fixes things.

  3. #3
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Can't access my admin after renaming

    Out of 5 zencarts I've installed in the last 5 months, only one was I able to successfully rename the admin folder. All of them are fully functioning stores with sales and everything.

    It's almost as if there is a missing step that I somehow found out about in the one successfully renamed of store, but can't remember now.

    1) admin/includes/configure.php

    change permissions
    3 spots: change name of admin folder to new name (123abc)
    save and upload
    change permissions back

    2) rename the admin folder to new name (123abc)

    3) go to log into admin

    What am I missing?

  4. #4
    Join Date
    Sep 2008
    Location
    Toronto, Ontario, Canada
    Posts
    469
    Plugin Contributions
    0

    Default Re: Can't access my admin after renaming

    Dr. Byte - just wanted to say thanks for the link - It worked well.

    Turns out that the host had to correct the read/write status of the files - even though my info said everything was set right.

    Now that thats done - just ckecked it now.

    Now for the next item - because when they made the file read only to get rid of the red warning label at top of cart - It looks likes it triggered this to happen after I logged in.

    Hello. Thank you for loading Zen Cart™.

    Have a link for this too?

    I think I recall in the book that there were 2 files I had to configure and then make read only if I'm not mistaken.

    admin/includes/configure is the one we just fixed - is there another one I would need to correct to keep the "Hello. Thank you for loading Zen Cart™." page from coming up? I saw my store last night - it was fine - today when I log in - I see the install page.
    Last edited by janissaire; 15 Jul 2009 at 08:43 PM. Reason: spelling

  5. #5
    Join Date
    Sep 2008
    Location
    Toronto, Ontario, Canada
    Posts
    469
    Plugin Contributions
    0

    Default Re: Can't access my admin after renaming

    Don't need to worry about this - I fixed it - I deleted one of the two configure files by mistake and loaded in the back up - all is good.

  6. #6
    Join Date
    Jul 2009
    Posts
    2
    Plugin Contributions
    0

    Have a Drink Re: Can't access my admin after renaming

    When I did a fresh install of "zen-cart-v1.3.8a-full-fileset-12112007"
    Trying to rename admin to say for example "meathead" I followed
    "https://www.zen-cart.com/tutorials/index.php?article=33" But these fields
    "define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');"
    didn't write to the configure.php file (btw install ran fine) so I edit the config file and add missing fields and change * admin to meathead . I can go to the store and when I type the url for meathead it goes to the log on page, put in u:\p:\ click the login button and I get a 404, The requested URL /admin/login.php was not found on this server.

    What am I doing wrong?

    Thankz

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Can't access my admin after renaming

    There are 2 files named "configure.php". One in the admin folder structure, and one in the non-admin area. They have SOME similarities, but are *intentionally* different.
    Note that the tutorial/FAQ article tells you to edit the admin one. It looks like you edited the wrong one.
    .

    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.

  8. #8
    Join Date
    May 2007
    Posts
    92
    Plugin Contributions
    0

    Default Re: Can't access my admin after renaming

    Quote Originally Posted by beyre View Post
    Ok, now I have this problem.

    I have a fully functioning store ... so the install went fine ... 100% functioning store.

    I went and did the new security patch and renamed the admin folder - let's call it "abc123".

    In admin/includes .... I changed the admin folder name in the configure.php file in the 3 places to abc123.

    Now when I try to log into admin at, www.site.com/store/abc123 I get a 404 error.

    I reversed the security patch and still nothing.

    So, rename admin folder and change the admin folder name in 3 spots in the admin/includes configure.php file .... what else is there to do to rename the admin folder and have access ????

    Yes, I changed the permissions on the configure.php file.
    Renaming back to admin fixes things.
    Just a heads up in case your ftp program has the same issue as mine. I had this same problem and went round and round and round trying to figure out why the heck it was happening. Finally I found out that I needed to refresh my view in the ftp program THEN rename my admin folder and it worked fine after that whereas before I was renaming the admin folder and it showed up as being renamed but when I refreshed saw it was still called "admin". So I refreshed first, renamed it then it took.

  9. #9
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Can't access my admin after renaming

    Not sure what you mean by "refreshing" ... I've disconnected from the website, done to another website, and came back to the website and still see the admin file renamed ... I guess you can call that refreshing.

    It's like, once I have installed Zencart with the default admin file name, setup the store, load products, etc ... and then go to rename the admin file following the proper steps, it won't accept it. The only time I've been successful in renaming the admin file was at the very beginning when I installed the cart for the first time.

    Silly technology!

  10. #10
    Join Date
    Dec 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Can't access my admin after renaming

    Like behre I'm having the same problem. I change the admin folder as per the instructions but I just keep getting a page 404 error. However, when I change everything back to admin, I can gain access.

    I've tried rewriting the permissions for the admin/includes/configure.php. It is really starting to do my head in. Just can't figure out what is going wrong. I've read so many threads with other people having similar problems and theirs seem to work in the end but not mine.

    Help!!!!!!!!!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Can't login to admin after SSl was disabled, How to restore admin access?
    By alpheus in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 20 Dec 2014, 09:34 PM
  2. Cannot Access Admin Area After Renaming
    By games4gamers in forum Basic Configuration
    Replies: 7
    Last Post: 12 Apr 2010, 03:46 PM
  3. Can not access Admin anymore after renaming the folder
    By krystalplayer in forum Customization from the Admin
    Replies: 1
    Last Post: 13 Feb 2010, 11:45 AM
  4. I can't get my admin login to work after renaming the folder.
    By jenpen in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 29 Jun 2009, 02:33 AM

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