WordPress.org

Forums

IP Address Change (8 posts)

  1. skmodifieds
    Member
    Posted 9 years ago #

    Hey guys, I read the previous thread where somebody was having trouble because their IP Address Changed on their Apache Server. I am having the same problem and everybody suggest changing something in the tables, but the person that hosts my server can't find any reference to the IP address in the tables. Please help! Thanks

  2. skmodifieds
    Member
    Posted 9 years ago #

    bump

  3. skippy
    Member
    Posted 9 years ago #

    The IP address of your server is not stored in the database, unless you specifically entered an IP address rather than a domain name for the "home" URL.

    What problem(s) are you experiencing as a result of the IP address change?

  4. skmodifieds
    Member
    Posted 9 years ago #

    I have been using a template for my site, so when the IP address changes, the stylesheet does not load and the links are all showing the old IP address. Last time, the only way to fix this was to delete the database, which means I lost my blog. I searched all the files in wordpress for the IP address and it wasn't anywhere, so I had to delete the database.

  5. skippy
    Member
    Posted 9 years ago #

    Whatever frame lives at http://lovesit.net/ is where the IP address is. You'll need to edit that file some how.

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    The siteurl and home values are in the database. If you have phpmyadmin, you can change them by following this:
    http://www.tamba2.org.uk/wordpress/site-url/

  7. hhh
    Member
    Posted 9 years ago #

    You can also change these values through the command line:

    shell> mysql DBNAME -u USERNAME -p
    mysql> show tables;

    (use the table name with _options in the next commands if you changed the table prefix)

    mysql> update wp_options set option_value="NEWPREFIX" where option_name="siteurl";
    mysql> update wp_options set option_value="NEWPREFIX" where option_name="home";

    Just replace NEWPREFIX with the new IP or domain name like "http://new.domain.com/path/to/wordpress".

    I haven't tried this yet, but I think if you make one blank, the site will get relative URLs instead of prefixing all links with the siteurl.

  8. hbee
    Member
    Posted 8 years ago #

    Brilliant! Worked very well, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic