Forums / Installing on a Linux/Unix Server / made change now locked out of Admin

made change now locked out of Admin

Started by ivanna on 17 Feb 2012, 8:46 PM · Views: 1,321

Results 1 to 10 of 10
17 Feb 2012, 8:46 PM
#1
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

made change now locked out of Admin

I have changed my share IP address to a dedicated IP address and make changes in config.php now I cannot log into Admin.

Should I do more in ip config.php?

Before, on share ip my website was ipaddress/~myid, now on the dedicated ip it is only newipaddress so I change the ip in cinfig.php

was I wrong to do this

This is Urgent please.

thank you
Ivanna

17 Feb 2012, 8:56 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: made change now locked out of Admin

Did you edit both includes/configure.php and YOUR_ADMIN_FOLDER_NAME/includes/configure.php ?

17 Feb 2012, 9:04 PM
#3
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: made change now locked out of Admin

thank you for replying Steve,
yes I edited the IP address of both files.

I have restored those files from backup so it is possible to get in but I do not know if there is something more I should change.

I was in the process of changing the registrar information from godaddy so that this site will become the new live site.I tried to go back to Admin and found I could not.

17 Feb 2012, 9:10 PM
#4
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: made change now locked out of Admin

In /includes/config.php I changed

define('HTTP_SERVER', 'http:new address')
define('HTTPS_SERVER', 'https:new address')

In MY_ADMIN/includes/config.php I changed

define('HTTP_SERVER', 'http://new address');
define('HTTPS_SERVER', 'https://new address')
define('HTTP_CATALOG_SERVER', 'http://new address')
define('HTTPS_CATALOG_SERVER', 'https:/new address')

thank you
Ivanna

17 Feb 2012, 10:42 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: made change now locked out of Admin

You can't run a live store from just an IP address.

But during testing, if you change your store's IP address, you'll need to clear your browser's cache & cookies. Maybe restart the browser too.

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

18 Feb 2012, 3:22 PM
#6
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: made change now locked out of Admin

Hello DrByte,
I am not running the store from an IP address. I think I am not very good with my explanation so I will try again and you will understand my situation much more.

My client has a site that is live. It is with a different host on a different shopping cart.
My client has no support with the host and wanted to move to somewhere with more support.

My opportunity and my first client. :clap:

I create a new site using zen cart and keeping the same name when the change is made.
So I have a site where I use the IP address only so my client can see progress.
I found that I had the folder structure wrong. So I change that. :oops:

Then I learn that I must have a dedicated IP address, so I get one and now I must change IP address in config.php (2 files).*** Is this correct?***

Before I used ipaddress/~myid now I use only ipaddress.

Also I am ready to move the domain from the old host to my host, so I go to the registrar (GoDaddy) and make the change. I then go to 2checkout to make changes there also.

Now I go back to Admin and I cannot get in. Did I make config.php changes wrong? or is my Admin address now wrong. I kept the address the same except for the ip part.

So now I return to my backup files and upload the backup config.php files. Now I can get to Admin.

Here is my problem, I am in the middle of a domain change and config.php is set to the old share IP when it must be dedicated. If it is dedicated, I am locked out. :huh:

How do I fix this please?

I hope I have explained my situation better and you can help me. This is a desparate time for me.

thank you
Ivanna

18 Feb 2012, 3:52 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: made change now locked out of Admin

If the ONLY thing the host changed was the IP address, then the ONLY thing you need to change in the configure.php files is the IP address.
And then clear your browser cache and cookies.

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

18 Feb 2012, 5:25 PM
#8
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: made change now locked out of Admin

DrByte,
I followed your instructions but still had the same problem. I then changed to ie9 and it works. Thank you.

I think Firefox is not clearing the cache even so I did it several times. I have now cleared all cache using CCleaner and I think it is good.

I think today I will uninstall then install Firefox again.

Last night, I went through all my notes checking what I have done and could not find a fault. I think it must be the cache.

thank you so much for helping me. :thumbsup: :clap:

Ivanna.

18 Feb 2012, 5:35 PM
#9
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: made change now locked out of Admin

I have just looked at configure.php again. The writing at the top says this:

// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com

Should I put the domain name in somewhere now that I am making the switch?

As now I have everything defined with IP address

thank you
Ivanna

18 Feb 2012, 9:11 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: made change now locked out of Admin

Yes. Replace the IP address with the domain name.

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