Forums / General Questions / Problem with server switch, IP address vs. domain name

Problem with server switch, IP address vs. domain name

Locked

Started by yeah on 11 Aug 2010, 11:29 PM · Views: 1,445

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
11 Aug 2010, 11:29 PM
#1
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Problem with server switch, IP address vs. domain name

I have looked for an answer to this and just can't find it so maybe one of you can help me. Keep in mind this is my very first experience with zen cart and I know zero php so idiot terminology and examples will help me most. Thanks! Story follows...

I recently switched a shop from its current cart (which had quit functioning properly) over to a new host and zen cart. I installed/set up the zen cart site using the ip address so that the old cart could still be up and running while no one but me could see the zen cart site. When the old cart completely stopped working and the zen cart seemed close enough to done I redirected the site new zen cart host.

Everything seems pretty peachy and likes its working. However, I can not get the IP address switched out to the site address. I read the tutorials on it and altered the admin/includes/config.php file as follows from:
define('HTTP_SERVER', 'http://74.220.215.247');
define('HTTPS_SERVER', 'https://74.220.215.247');
define('HTTP_CATALOG_SERVER', 'http://74.220.215.247');
define('HTTPS_CATALOG_SERVER', 'https://74.220.215.247');
to:
define('HTTP_SERVER', 'http://hoopclothes.com');
define('HTTPS_SERVER', 'https://hoopclothes.com');
define('HTTP_CATALOG_SERVER', 'http://hoopclothes.com');
define('HTTPS_CATALOG_SERVER', 'https://hoopclothes.com');

and then the includes/config.php from:
define('HTTP_SERVER', 'http://74.220.215.247');
define('HTTPS_SERVER', 'https://74.220.215.247');
to:
define('HTTP_SERVER', 'http://hoopclothes.com');
define('HTTPS_SERVER', 'https://hoopclothes.com');

Then I ran the fix_cache_key.php and looked at the site. Eeeekkk! It lost all formatting, all the images and basically looked like total cr@p besides the fact that it could no longer find the zen cart admin stuff and kept returning 404 errors there.
Why? Help. I understand not.

12 Aug 2010, 2:52 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Problem with server switch, IP address vs. domain name

One, are you sure that you own a private Secure Certificate for your domain?

Two, make sure that the two configure.php files on your server are using your new setting ... when I go to your site, they change back to the IP address ...

Usually that will happen if your configure.php files are set to 444 as that means they cannot be overwritten via FTP upload ... they need to be 644 or higher ...

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!

12 Aug 2010, 7:01 AM
#3
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Problem with server switch, IP address vs. domain name

Thanks for responding!
We are not using our own SSL because all our payment transactions go through paypal. If we change this later we will secure the site more thoroughly.
I did reset the config.php files to 755, but good advice.
Right now I have the old config.php files loaded as once I do the edits listed above, changing out the IP to the domain name, the site becomes completely unreadable/unusable (loses all admin contact, all site formatting and images).
Other thoughts?

12 Aug 2010, 1:33 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Problem with server switch, IP address vs. domain name

I seem to be able to get to the images via the domain name ... and I can get to each page via the domain name ...

I am not sure what else to have you look at other than to make sure you have the domain name on the configure.php files rather than the IP address ...

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!

12 Aug 2010, 5:41 PM
#5
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Problem with server switch, IP address vs. domain name

I'm not sure what else to do either. I keep thinking there must be something I missed changing somewhere. I'll attach a picture of what happens when I load the domain name edited config.php files to better explain what happens. Maybe this will clue someone in on things have gone astray.

12 Aug 2010, 6:40 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Problem with server switch, IP address vs. domain name

It may be more useful for you to set the configure.php files correctly for your domain name so we could see this in action ...

Again, when updating the files on the server, be sure that they actually get updated and that the permissions are not stopping them from being updated ...

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!

12 Aug 2010, 7:01 PM
#7
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Problem with server switch, IP address vs. domain name

Since the cart is active I don't really want to leave the site in an unusable state for more than a couple minutes at a time. Its working fine as is, I really just want to lose the IP address in the address bar and replace it with hoopclothes.com.
I am pretty positive the config files are being updated because I delete the original ones every time I try this and then upload the edited ones (edits detailed in my original post). I reset the permissions to 755 and double check this every time.
There's got to be something else I'm just missing somehwere?

12 Aug 2010, 7:38 PM
#8
dan1165 avatar

dan1165

New Zenner

Join Date:
Feb 2006
Posts:
4
Plugin Contributions:
0

Re: Problem with server switch, IP address vs. domain name

All your content, images and links are pointing to: 74.220.215.247

Back up your database!!!

Do a sql dump on your database and do a find and replace:

Find: 74.220.215.247
Replace with: hoopclothes.com

Hit replace all.

Load the update back into your database.

Hope that works for you!

Dan

12 Aug 2010, 8:01 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Problem with server switch, IP address vs. domain name

Not the best idea ...

The better idea is to really find the problem ...

I would suggest that you view the file, on the server, for the file:
/includes/configure.php

and look to see are you using your domain name or the IP Address?

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!

12 Aug 2010, 8:45 PM
#10
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Problem with server switch, IP address vs. domain name

Got it solved! Working perfectly now.
Dan was right. Except I also had to delete a couple references to '/~hoopclot' in the includes/config.php DIR_WS fields and in the admin/includes/config.php DIR_WS fields.
Hallejuah!

12 Aug 2010, 8:57 PM
#11
dan1165 avatar

dan1165

New Zenner

Join Date:
Feb 2006
Posts:
4
Plugin Contributions:
0

Re: Problem with server switch, IP address vs. domain name

Spoke with her on the phone, problem solved.

Her config files were pointing to /~hoopclot/ and not to the root directory. Cleaned that up along with any extra database links pointing to the IP address and her site is running fine.

Dan

12 Aug 2010, 11:18 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Problem with server switch, IP address vs. domain name

Thanks for the update that fixing the configure.php files on the server resolved this problem ... :smile:

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!