• I am trying to understand the process involved for getting a local install uploaded to my remote host. At the moment I am using filezilla to move files around, and I have touched on some areas of MyPhp admin, but essentially just need some kind of basic walk through.

    I guess this is in context to my previous post: http://wordpress.org/support/topic/uploading-wordpress-database-file-from-local-install?replies=1

    Any links to documentation or videos would be great. Like I said I am using filezilla, Mamp (for the local site) and the host is eukhost, so I have dabbled in the control panel there a bit too… All a bit confusing for my simple self.

    Cheers all.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    It is intimidating but easy.

    Use filezilla to load your entire blog to the webhost.

    Create a database.

    Go to the config file and change the database settings from what they were for the local install to the new database settings.

    Go to your site. You should see “install wordpress”

    Make a backup of the website from your local copy.

    Using PHPAdmin, upload the backup into the database. It won’t work because it is trying to access files on your local installation.

    Using a text editor like notepadd++, open the backup file and look for a string that matches the domain name used on your local installation. ( If the backup file is compressed it has to be uncompressed first. )

    Replace that string throughout the file with the URL of your webhost. Make certain that if the folder name changed between the local copy and the webhost that you change the file name as well as the domain name.

    Drop the tables of your database. Import the backup file you just changed.

    Go check your website. You should see it and you should be able to log in.

    If you can’t see the website, you can’t log in, or maybe the website is there with pictures missing, there is still something in the backup file that is pointing to either your local copy or somewhere else. You will have to find that other string and change it to match the URL and folder name on your webhost.

    Once the final URL and folder name changes are made, go back to the database, drop the tables, upload the changed file and everything should work.

    Thread Starter elliotnewman

    (@elliotnewman)

    Thanks Happeh, before I get stuck in, can I try and translate back to you so I am sure I understand…

    upload entire wordpress to remote host using filezilla.
    open the wp-config.php file and replace parts of the local install such as this section: (is there anything that shows me in more detail how and what to change here?)

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wordpress’);
    /** MySQL database username */
    define(‘DB_USER’, ‘root’);
    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘root’);
    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost:8889’);
    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);
    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    Using MAMP – access the myPHP Admin page and export a database.
    Using fantastico on my web host control panel install wordpress (not sure why I need to do this since I already uploaded it via filezilla?)
    Using web host myPHP Admin – import database file

    Done?
    Happah – I guess I am a little confused about what you mean when you say “drop the tables”…?

    Is there anything I am missing here?

    Thanks for helping this poor deprived soul.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Happeh is missing a few steps, like changing the URLs before moving, etc. I highly recommend that you follow the guide that I linked to. It was written specifically for this purpose.

    Thread Starter elliotnewman

    (@elliotnewman)

    aaahhh!!! ok I’m seriously starting to doubt myself here. I’m pretty sure I followed those steps James, here is what I did:

    used fantastico in my hosts control panel to create a wordpress install.

    went to my ftp app and noticed that this install was a fresh one, so I deleted all the files on the server side and replaced them with the local wordpress content and theme files.

    I then edited the .sql and replaced all the “http://localhost:8888/wordpress” with “http://elliotnewman.com/enphotography” – I think about 180 replacements…

    then I imported this file into the database though the myPHPAdmin of my web host, all appeared ok…

    I then checked the URL in the settings:general section of my worpress admin page, and these had been set up correctly.

    But now when you visit the site:

    http://elliotnewman.com/enphotography2/

    I have no content at all. – just the theme seems to be working.

    Is there something I am missing?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    I see the default WordPress post that you get when you first install WordPress. Did export the database from your local server and import that on the remote server? Also, is your wp-config.php file pointing to the right database?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Step by Step howto upload local WP to remote host’ is closed to new replies.