Forums / Installing on a Linux/Unix Server / Followed recommendations to rename admin folder - now doesn't work

Followed recommendations to rename admin folder - now doesn't work

Locked

Views: 4,853

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Nov 2008, 9:08 PM
#1
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Followed recommendations to rename admin folder - now doesn't work

I successfully installed Zen Cart on my shared hosting site with HostMySite. Yay! I could access my store using https://www.mysite.com/shop, and I got to the admin panel by going to https://www.mysite.com/shop/admin and logged in successfully.

So then I followed the recommendations here for tightening up security:
http://www.zen-cart.com/wiki/index.php/Important_Site_Security_Recommendations

I edited the admin/includes/configure.php file, changed "admin" to "myNewNAME" in the three places they said. Absoultely no typos, I'm positive. Verified that the changes were indeed in the configure.php file up on the server.

Renamed the admin folder to "myNewNAME".

Went to https://www.mysite.com/shop/myNewNAME ...
I get the Hello... screen telling me I've reached that screen because either I haven't installed Zen Cart yet or there's an error in the config.

I put the original configure.php file back up on the server and name my directory back to "admin". I still have the same problem.

I AM able to access my storefront.

How do I recover from this?

14 Nov 2008, 9:22 PM
#2
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: Followed recommendations to rename admin folder - now doesn't work

I figured out what I did wrong. When I changed the admin path in configure.php, I started with a local copy. Duh. So ... that didn't have any of my setup stuff in it (database etc). So of course it's objecting. :wacko:

14 Nov 2008, 9:23 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Followed recommendations to rename admin folder - now doesn't work

1 Delete the /admin/includes/configure.php from the SERVER
Load your original configure.php with the /admin for the directory

Does it work?

If so, this was probably because the permissions on the configure.php did not allow you to overwrite the file on the server so the old settings were there ...

2 Look for typos ... make sure that you have cleaned up all references and that /admin is back where it belongs ...

Does it work?

If so ... human error ... :smile:

3 Compare all contents of the two configure.php
/includes/configure.php
/admin/includes/configure.php

These files are different, but they are very very similar ... make sure they match ...

4 rename the directory /admin to /fred
Now rename it back to /admin

make sure you made no typos, did not add space(s) etc.

Did it work?

I know, that sounds like a lame test ... but you would be amazed ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Nov 2008, 10:02 PM
#4
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: Followed recommendations to rename admin folder - now doesn't work

See my second post above ...
I was able to recover. I was able to edit the admin/includes/configure.php file to put the correct info back in. I used the info that I found in includes/configure.php. Phew! :clap:

14 Nov 2008, 11:01 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Followed recommendations to rename admin folder - now doesn't work

Thanks for the update ... you must of posted while I was writing that little story on fun things to try and then I saved it, hit Page Down, Hit Top and hit New Posts ... never looking to see that you came back on the solution ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Mar 2010, 1:29 PM
#6
iskanderul avatar

iskanderul

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Followed recommendations to rename admin folder - now doesn't work

I've made the exact changes talked above, but the when I access mystore/mynewadmin it still redirectis tu /admin/

and I've tripled check.. both configure files are edited.. any suggestions?

it can be from .htaccess? ai have simple seo urls installed

16 Mar 2010, 1:47 PM
#7
iskanderul avatar

iskanderul

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Followed recommendations to rename admin folder - now doesn't work

I figure it out, I don't know but from some reason I've got this error when trying to overwrite.

Response: 553 Can't open that file: Permission denied
Error: Critical file transfer error
Command: DELE configure.php

So I delete the file and is all ok.

Bluehost hosting account. I hope this will help others.

11 Aug 2011, 3:19 AM
#8
enginarat avatar

enginarat

New Zenner

Join Date:
Mar 2011
Location:
Marco Island, FL
Posts:
71
Plugin Contributions:
0

Re: Followed recommendations to rename admin folder - now doesn't work

I have same exact problem just like other people above. I see they solved their problem but I still can't although I followed all the suggestions here. My host confirms that I did all the right things but it just won't work for some reason. :frusty:
My version is 1.3.8a and I have Ceon's URL Manager installed.

Here is my website if you want to take a look at it.

Any help (including professional) will be highly appreciated.

Thanks in advance.

11 Aug 2011, 11:45 PM
#9
enginarat avatar

enginarat

New Zenner

Join Date:
Mar 2011
Location:
Marco Island, FL
Posts:
71
Plugin Contributions:
0

Re: Followed recommendations to rename admin folder - now doesn't work

Zen cart admin re-naming problem solved.:clap:
Apparently it was the .htaccess file under store where we had SEO URL re-write rules. One of them was refering to the old "admin" folder name. Changing it to the new folder name put us back in business. Of course you have to apply all other basic instructions at the following link first;
https://www.zen-cart.com/tutorials/index.php?article=33