Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2010
    Posts
    77
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  3. #3
    Join Date
    Aug 2010
    Posts
    77
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  5. #5
    Join Date
    Aug 2010
    Posts
    77
    Plugin Contributions
    0

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

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  7. #7
    Join Date
    Aug 2010
    Posts
    77
    Plugin Contributions
    0

    Default 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?

  8. #8
    Join Date
    Feb 2006
    Posts
    4
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  10. #10
    Join Date
    Aug 2010
    Posts
    77
    Plugin Contributions
    0

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 13
    Last Post: 28 Jul 2016, 04:15 PM
  2. v139h Server Information page not updated with switch to new server.
    By divinelighting in forum General Questions
    Replies: 2
    Last Post: 25 Aug 2012, 03:25 PM
  3. Replies: 2
    Last Post: 24 Feb 2009, 09:43 AM
  4. switch the display of order of first name and last name on each address
    By weber in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Nov 2008, 07:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR