Skip navigation

Changed IPs - no websites anymore

296 Views 6 Replies Latest reply: Jul 31, 2013 3:40 PM by William H. Magill1 RSS
defmetal Calculating status...
Currently Being Moderated
Jul 29, 2013 6:03 PM

Ok here is a fun one that I could use a hand with.

 

Normally with older OSX server this would be an easy fix but we've for some reason upgraded from snow leopard server to mountain lion.

 

Well unfortunately we just changed corporate headquarters locations and we've had to go through some IP address changes.

With this change, I've been unable to get our websites to load on our new addresses.

 

Can someone walk me through this assuming I know nothing about mac osx web hosting?

 

Here is what I've done: 

Go to Network, change the static IP settings to our new ones.

Go to Server app, change host name, and IP address

Go to Web in server app, change the websites to match the new IP addresses.

 

Restarted the servers.

I can remote desktop to the server from home.

 

 

We want to avoid reformatting the entire server and starting over, but changing things in server.app does not seem to solve the problem and get our websites back online.  Please assist, thanks for any helpful information.

  • Camelot Level 8 Level 8 (45,670 points)
    Currently Being Moderated
    Jul 29, 2013 8:09 PM (in response to defmetal)

    There are a number of dependencies on the server's IP address.

     

    Apple provide a script that updates most of the dependencies, so you should use that any time you change your server's address:

     

    /usr/sbin/changeip <oldIP> <newIP>

     

    (you might need to search for changeip since it's location varies across different OS versions)

     

    No guarantee it'll fix your problem, but it's a start, and worth doing anyway.

     

    If it doesn't, check the Apache error logs (/var/log/http/error_log by default) to see if there are any startup warnings.

  • Camelot Level 8 Level 8 (45,670 points)
    Currently Being Moderated
    Jul 30, 2013 10:37 AM (in response to defmetal)

    Like I said:

     

    (you might need to search for changeip since it's location varies across different OS versions)

    Try:

     

    # locate changeip

    You may find in Mountain Lion it's located at:

     

    /Applications/Server.app/Contents/ServerRoot/usr/libexec/changeip

  • William H. Magill1 Level 2 Level 2 (200 points)
    Currently Being Moderated
    Jul 31, 2013 3:25 PM (in response to Camelot)

    Under 10.8.4:

     

    > locate changeip

     

     

    WARNING: The locate database (/var/db/locate.database) does not exist.

    To create the database, run the following command:

     

     

      sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

     

     

    Please be aware that the database can take some time to generate; once

    the database has been created, this message will no longer appear.

  • William H. Magill1 Level 2 Level 2 (200 points)
    Currently Being Moderated
    Jul 31, 2013 3:40 PM (in response to defmetal)

    I'm just going through the same thing... one other problem which happens is that the hostname and server names get "confused."...

    Using Server Manager/ select the server/ select network tab...

    verify that the "Host name" is the correct internet address... click the edit tab -- the bloody server manger app will want to append .home to the hostname entry.

    The page will also display the IP address involved.

     

    Note that this will (hopefully) propigate the change(s) to other services under OSX Server on Mountain Lion.

     

    I'm finding lots of issues that OSX Server is having while trying to change addresses/hostnames....

     

    Watch the log file via console while you are starting and stopping services... also frequent reboots are necessary to verify that certain changes "hold"!!!!!!

     

    I'm still looking for "the rest" of the solutions...

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.