Forums

Migrating WordPress from local copy to web MAJOR PROBLEM (4 posts)

  1. jfudem
    Member
    Posted 2 years ago #

    HI Forum,
    PLEASE HELP ME!!!
    I have been working on locally hosted WordPress Website, which has been running offline on my macbook using the application MAMP.

    Today I finally purchased a Domain and host and was ready to upload the site to the web. I should have created a WordPress export file but sadly I did not. Instead I just changed the URL of my site from the localhost address to my newly purchased Domain. This promptly caused my local version to stop working and didn't transfer my site to my new domain (I should have been smarter).

    Now I would like to create the export file from my local site but I am unable to access it. I still have all my wordpress files complete with plugins and themes stored on my hard drive and backed up but I can't get WordPress to compile them and display my local site properly.

    I assumed that when I changed the URL of my site I must have changed changed an important configuration file and caused a fatal error. I restored my wordpress parent folder with a backed up version which predates my stupid changes, however the local version still no longer runs.

    Please help me so I can save my site without rebuilding it.

    Thanks,
    Jonathan

    P.S. I also looked in the Wp-config.php file since I thought that might be the culprit and it doesn't look like there is any info there relating to where my site is hosted (and it didn't change after I made my stupid error).

  2. jonradio
    Member
    Posted 2 years ago #

    The URL changes are made in the MySQL database that WordPress uses.

    I would start by getting your local copy working again. I think this will cover it:
    http://codex.wordpress.org/Moving_WordPress#If_you_forget_to_change_the_locations

    Then, I would try again to move the site to your new domain name and web host using these instructions:
    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server

    I've used both and they worked fine.

  3. jfudem
    Member
    Posted 2 years ago #

    Hi Thanks for your response. Unfortunately I still can't get it working. The first link says to paste this code into Wp-login.php:

    update_option('siteurl', 'http://your.domain.name/the/path' );
    update_option('home', 'http://your.domain.name/the/path' );

    I pasted those lines and used http://localhost/8888/ as my domain and then added the file path to my the folder that houses all my wordpress files, but the site still doesn't load. That page also says that this solution works if you can still access the login page but I can't even do that. When I go to my local host address in a browser all I see is a blank page which tells me that localhost isn't responding. I also checked My local host application MAMP which still seems to be working and is looking for the site's files in the right location.

    Is there any way to fix this?

  4. jonradio
    Member
    Posted 2 years ago #

    Have you read the documentation linked to by that page? It links here:
    http://codex.wordpress.org/Changing_The_Site_URL

    Personally, I always use phpMyAdmin to directly update the two rows in the options table in the database with the correct URL. This is described on that linked page in the section "Changing the URL directly in the database".

    My second choice, though I've never had to use it, is described in the "Edit wp-config.php" section.

    Hope that one of those works for you.

Topic Closed

This topic has been closed to new replies.

About this Topic