Forums / Templates, Stylesheets, Page Layout / Problem renaming admin folder - v1.38a

Problem renaming admin folder - v1.38a

Locked

Views: 4,108

Results 21 to 40 of 48
This thread is locked. New replies are disabled.
16 Mar 2010, 8:37 PM
#21
drbyte avatar

drbyte

Sensei

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

Problem renaming admin folder - v1.38a

If you go to www.your_domain.com/shop/your_admin/login.php ... what happens?
Assuming it gives you the login prompt, and you try to login, now what happens? Is that when the 404 now appears?

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

16 Mar 2010, 8:51 PM
#22
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Hi DrByte,

by doing what you say it takes me to the login page but I then get link broken http 404 file not found

I was doing https://www.mysite.com/shop/my_admin which I was always able to signin on before this change.

I have a screen grab here, it takes me to my shop home page?

16 Mar 2010, 9:10 PM
#23
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

  1. It's taking you to your shop home page strictly because that's how your site has been set up to handle 404-not-found conditions.

  2. The fact that going to the login.php directly works shows that you've got the files in the right folder.

  3. The reason going to just /shop/my_admin/ gives you a redirect is because when you don't specify a filename, the server assumes index.php and, since the first thing index.php does is verify whether you're logged in, since you're not yet logged in, it's trying to redirect you to the login page. Hence the difference between going direct to the login.php page yourself.

  4. Your redirects are clearly the problem, and the admin redirects are always built based on the info in your /admin_folder_name/includes/configure.php file.

So ... your edits to the admin configure.php file are your problem.

Please post what you have in your admin configure.php file now. Feel free to mask the actual admin foldername and replace your URL with my_domain.com. And of course your database details.
Please don't mask anything else.

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

16 Mar 2010, 9:33 PM
#24
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Ok just let me get that info

16 Mar 2010, 9:53 PM
#26
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

Jay76:

Ok just let me get that info
I got your PM

Here's your problem.

Contrary to the FAQ instructions which indicate to merely change the literal "/admin/" to "/your_new_admin/", you decided to take it further and also change other stuff too, specifically the foldername where your whole store+admin resides.

Specifically, you changed "/shop/admin/" to "/your_new_admin/" .... and since you dropped the "/shop/" part, it's looking just for "/your_new_admin/" ... which doesn't exist because it's really located at "/shop/your_new_admin/".

So ... go back and make sure that the "/shop/" part is put back where you took it out.

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.

16 Mar 2010, 9:57 PM
#27
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Hi DrByte...... I am sure that was posted on this thread #11 to change to this so that is why that is the way it is.

So with that changed it should work hey?

thanks for your help

16 Mar 2010, 10:12 PM
#28
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Also to mention I recall it having the /shop in the configures file before and did not work so I am touching wood on this if it works, will soon be calling it a night I think

16 Mar 2010, 10:34 PM
#29
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

ok it works on this basis

http://www.**********.co.uk/shop/my_admin/login.php

but takes an age to sign in, really slow!

without putting the login.php it just results on the 404 error posted earlier as per the picture.

16 Mar 2010, 10:34 PM
#30
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

[QUOTE]Hi DrByte...... I am sure that was posted on this thread #11 to change to this so that is why that is the way it is/QUOTE]

Obviously, the guy who wrote post 11 is an idiot, and whose advice should never be followed by anyone at any time.

Seriously, sorry to have added to your frustrations by leading you astray. You did however have /shop/ in an earlier, failed attempt.

Hope you post how you fixed it so we can all learn how.

Good Luck
Dalton

Skin that 'un pilgrim, and I'll bring ya' another.
Running 1.3.9h with a few mods here

16 Mar 2010, 10:36 PM
#31
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

Without putting login.php, you're basically putting index.php, like this: www.my_domain.com/shop/my_admin/index.php ... which is the same place that the login.php will redirect you to after you've succesfully authenticated your login in login.php

"really slow" sounds really odd, and should have no bearing on the rename.

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

16 Mar 2010, 10:38 PM
#32
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

[QUOTE=daltonkost;857906]> Hi DrByte...... I am sure that was posted on this thread #11 to change to this so that is why that is the way it is/QUOTE]

Obviously, the guy who wrote post 11 is an idiot, and whose advice should never be followed by anyone at any time.

Seriously, sorry to have added to your frustrations by leading you astray. You did however have /shop/ in an earlier, failed attempt.

Hope you post how you fixed it so we can all learn how.

Good Luck
Dalton

Hey Dalton,

No bad blood mate, sorry if it came across that I was blaming you for suggesting what you put on your post..... not the case as you were trying to help me so I thank you for that.

I have back ups anyway so no big deal, ;-)

16 Mar 2010, 10:41 PM
#33
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

DrByte:

Without putting login.php, you're basically putting index.php, like this: www.my_domain.com/shop/my_admin/index.php ... which is the same place that the login.php will redirect you to after you've succesfully authenticated your login in login.php

"really slow" sounds really odd, and should have no bearing on the rename.

Just feels like I am on dial up to get into the admin now, was really fast before and was on the old admin named folder?? strange

16 Mar 2010, 10:43 PM
#34
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

Okay, I just did this for myself fresh, with the https://www.zen-cart.com/tutorials/index.php?article=33 FAQ as a guide:

  1. Unzip a clean copy of v1.3.8a to my PC.
  2. Upload all the files to a new folder on my server: ****/public_html/teststore/ (so, that gives me an admin folder of "/teststore/admin/", similar to your "/shop/admin/")
  3. Run zc_install, and set it all up (setting permissions etc as instructed).
  4. Test my admin login in the /teststore/admin/ folder so I know it works.
  5. Use my FTP program to download the new /teststore/admin/includes/configure.php file to my PC.
  6. Use Notepad++ to change the 3 references to "admin" to "myadmin" (so they now look like "/teststore/myadmin/" etc), as the FAQ says
  7. Save the changes to my PC
  8. Upload the changes back to the server.
  9. Use my FTP program to rename my "admin" folder to "myadmin"
  10. Visit www.my_domain.com/teststore/myadmin ... and it brings me to my login page. I enter the admin username/pwd, and it logs me in and takes me to my admin home screen.

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

16 Mar 2010, 10:45 PM
#35
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Jay76

I didn't take as bad blood, nor that you were laying blame, just felt bad I gave you poor advice.

Obviously, the guy who wrote post 11 is an idiot, and whose advice should never be followed by anyone at any time Just joking around.

Glad things are coming together

Dalton

Skin that 'un pilgrim, and I'll bring ya' another.
Running 1.3.9h with a few mods here

16 Mar 2010, 10:46 PM
#36
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

and even without using login.php on the end?

Mine just brings up an error which I dont know why?

but yours works straight off

16 Mar 2010, 10:48 PM
#37
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

What if you put index.php instead of login.php? Does that give you the error too?

And in both cases, the redirect will be visible in your browser URL address bar. What's it changing to? (before it jumps to your /shop/page_not_found.php)

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

16 Mar 2010, 10:57 PM
#38
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

by putting shop/my_admin it just brings up the error 404 page not found as before.

By putting the full path shop/my_admin/index.php it changes the last part to login.php and loads slowly.

Really strange, works on the full path but something not right still

16 Mar 2010, 11:04 PM
#39
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

Your webserver errorlog may tell you the actual cause of the 404 error (ie: the file/path it's looking for but cannot find). You should be able to access that in cPanel under something like "apache error log".

I've no idea why it's so slow though. Is it slow to load the login page, or slow to switch from login page to next page? And once it gets TO the next page, does it go along fine in something like orders or products pages? If so, then it could be that your server is having trouble connecting to the Zen Cart server to check for latest version details. https://www.zen-cart.com/tutorials/index.php?article=81

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

16 Mar 2010, 11:09 PM
#40
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

yes I will check that out, once in the admin area it is fine.... I am now having access issues to the server through ftp and Cpanel on the shop so maybe you are on the ball with this :D