Forums / Upgrading from 1.3.x to 1.3.9 / Can't access my admin after renaming

Can't access my admin after renaming

Locked

Views: 11,472

Results 21 to 40 of 40
This thread is locked. New replies are disabled.
15 Jul 2009, 7:42 PM
#21
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

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.

After looking at computer code for a while - I think I'm going crazy but the voice in my head assures me that I'm not! http://www.jecphotography.com/mystore

16 Jul 2009, 12:57 PM
#22
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

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.

After looking at computer code for a while - I think I'm going crazy but the voice in my head assures me that I'm not! http://www.jecphotography.com/mystore

29 Jul 2009, 3:49 PM
#23
blindin1eye avatar

blindin1eye

New Zenner

Join Date:
Jul 2009
Posts:
2
Plugin Contributions:
0

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

29 Jul 2009, 4:01 PM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

29 Jul 2009, 4:18 PM
#25
blindin1eye avatar

blindin1eye

New Zenner

Join Date:
Jul 2009
Posts:
2
Plugin Contributions:
0

Re: Can't access my admin after renaming

:oops: Thankz for the quick response.

29 Jul 2009, 5:44 PM
#26
liam1964 avatar

liam1964

New Zenner

Join Date:
Mar 2009
Location:
PA, USA
Posts:
31
Plugin Contributions:
0

Re: Can't access my admin after renaming

ebusinessman:

the upgrade is not complete.

check if you have function zen_get_languages() in this file:

admin\includes\functions\general.php
I am having a similar issue. I CAN access my admin interface after changing the admin folder. But if I try to use any of the tools there such as configuration/my store I get an error message say the orginal admin folder could not be found (The requested URL /catalog/admin/configuration.php was not found on this server.). I have checked my admin\includes\functions\general.php file and it does not contain the function zen_get_languages() line in it ... could this be my problem, and if you think it is, could you please tell me exactly what I need to add and where please. ... as always, thanks to everyone for all your help :-)

PS. I have triple checked my admin/includes/configure.php file, and unless I am more stupid than I thought it is correct

29 Jul 2009, 6:40 PM
#27
liam1964 avatar

liam1964

New Zenner

Join Date:
Mar 2009
Location:
PA, USA
Posts:
31
Plugin Contributions:
0

Re: Can't access my admin after renaming

liam1964:

I am having a similar issue. I CAN access my admin interface after changing the admin folder. But if I try to use any of the tools there such as configuration/my store I get an error message say the orginal admin folder could not be found (The requested URL /catalog/admin/configuration.php was not found on this server.). I have checked my admin\includes\functions\general.php file and it does not contain the function zen_get_languages() line in it ... could this be my problem, and if you think it is, could you please tell me exactly what I need to add and where please. ... as always, thanks to everyone for all your help :-)

PS. I have triple checked my admin/includes/configure.php file, and unless I am more stupid than I thought it is correct
Oh Ok, how stupid do I feel now ... all I had done wrong was I forgot to change the permissions to the configure.php file, so the changes I was trying to make were not being saved ... how embarasing <<BLUSH>>

3 Aug 2009, 7:33 PM
#28
pablodiablo avatar

pablodiablo

New Zenner

Join Date:
Jul 2009
Posts:
6
Plugin Contributions:
0

Re: Can't access my admin after renaming

I seem to be having the same problems. I have attempted to rename my admin folder and made the relevant changes to the file admin/includes/configure.php (where admin is now the renamed name).

My store is still working perfectly but when I attempt to access the admin section, I get the "Hello. Thank you for loading Zen Cart™." page.

I have downloaded the admin/includes/configure.php file to check that the changes actually 'took' and it seems fine. I am logging in via SSH to make the permissions changes without any problems.

I have since reversed all my steps and renamed the folder back to admin, but all I can get is the Thankyou for loading ZenCart page.

Please can someone help me, I'm fairly new to PHP and Zencart and this is worrying me sick.

3 Aug 2009, 7:41 PM
#29
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't access my admin after renaming

The "Hello. Thank you for loading" message is a result of having bad or unusable content in the configure.php file. So, either your edits corrupted the file, or you entered wrong paths when you edited things.

.
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 Aug 2009, 3:04 AM
#30
flyred77 avatar

flyred77

New Zenner

Join Date:
Jul 2009
Posts:
8
Plugin Contributions:
0

Re: Can't access my admin after renaming

Ahh,

I too have followed the instructions as given, and have the exact same problem. Interesting. My site is new and at the latest version. The changes are saving. I have changed to the new name as instructed and then changed back. Changing to the new name gives me the Welcome to Zen Cart page, changing back to admin lets me back in.

I will hit it again tomorrow and let you know if I figure anything out. Right now, my brain needs a rest. Please post if you find the solution. Like you, I am pretty comfortable that I am doing things correctly, so...

I'll keep you posted.

Regards

AnUncommonFind.com

4 Aug 2009, 3:32 AM
#31
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't access my admin after renaming

Again, the "Thanks for loading Zen Cart" page is a direct result of the configure.php file not being present, or not readable, or not accessible due to file permissions problems, or containing information that points to the wrong folders.

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.

5 Aug 2009, 6:04 PM
#32
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Can't access my admin after renaming

beyre:

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.

6 Aug 2009, 2:16 PM
#33
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

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! :wacko:

31 Aug 2009, 4:42 PM
#34
girlyracer avatar

girlyracer

New Zenner

Join Date:
Dec 2006
Posts:
11
Plugin Contributions:
0

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!!!!!!!!!!

31 Aug 2009, 4:53 PM
#35
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: Can't access my admin after renaming

I used FileZilla FTP ... and now know what you mean by refreshing.
I still have to yet to rename the admin folders of the various websites in question ... to see if that was the issue or not. But just wanted to give an update.

31 Aug 2009, 5:16 PM
#36
uswebworx avatar

uswebworx

Zen Follower

Join Date:
Sep 2006
Location:
USA
Posts:
297
Plugin Contributions:
0

Re: Can't access my admin after renaming

girlyracer:

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!!!!!!!!!!

Curious when you went to access the admin folder you did change the url right? Not being funny or mean, but I'll admit I overlooked it as well.

Signature not needed

31 Aug 2009, 7:52 PM
#37
girlyracer avatar

girlyracer

New Zenner

Join Date:
Dec 2006
Posts:
11
Plugin Contributions:
0

Re: Can't access my admin after renaming

Yep changed the url and that's when I got the page 404 error. Have changed it all back to admin for the time being. Will probably take another look at it tomorrow. I'd had enough of it for today, fresh pair of eyes tomorrow :wink:

31 Aug 2009, 10:21 PM
#38
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't access my admin after renaming

Every time I've renamed an admin folder I've used these steps: https://www.zen-cart.com/tutorials/index.php?article=33
The 404-Not-Found message will generally only happen if you've not actually renamed the folder successfully (using your FTP program or whatever tool you choose).

.
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 Sep 2009, 8:54 AM
#39
girlyracer avatar

girlyracer

New Zenner

Join Date:
Dec 2006
Posts:
11
Plugin Contributions:
0

Re: Can't access my admin after renaming

Hi DrByte, yes I am using these very same instructions. Just now I tried again, this time I did it from my CPanel using the file manager. Changed the configure.php in admin/includes, then went across and changed the admin file. Kepts the slashes as they were, there are no extra spaces, everything has been done to the letter. Again, same problem, I just keep getting "Page not found".

I am really starting to feel like I'm bashing my head against the wall here. Could there be something else stopping this from working? Is there another file I should be looking at? Could there be a corruption somewher?

I just can't understand why it won't work when I rename the folders yet when I revert back to calling everything "admin" I can log in and gain access.

I must admit I'm not that savvy on more complex issues but this is the first real problem I've had that I've not been able to resolve. Everything else I've managed to sort out using the great advice given here on the forum.

Short of re-installing zencart and re-building my shop, which I don't really want to do, what else can I do? Anyone? Please???

13 Sep 2009, 3:01 PM
#40
girlyracer avatar

girlyracer

New Zenner

Join Date:
Dec 2006
Posts:
11
Plugin Contributions:
0

Re: Can't access my admin after renaming

Result!!!!

Just tried it again and it worked.

:clap::clap::clap:

I had Ceon URI Mapping (SEO) installed and it was obviously changing the static URI. I just went in and put in an exception for the configure.php and it worked.

Can't believe I was so stupid not to have realised this before.

Thank you every one who replied to my query.