Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressをローカルサーバーからライブサイトに移動する方法(2つの方法)

WordPressユーザーの多くは、コンピューター上のローカルサーバーを使用してサイトで作業することを好みます。これにより、オンラインで変更を公開する前に、個人的にサイトで作業することができます。

最終的には、ライブサーバーに移行し、オンライン訪問者がアクセスできるようにする必要があります。この移行は、本番サイトでサイトが正しく機能するようにするために非常に重要です。

私たちは多くのローカルサイトに携わってきたので、コンテンツをライブサイトに移行する最も簡単な方法を学ぶ必要がありました。

この投稿では、WordPressをローカルサーバーからライブサイトに移行する方法をステップバイステップで説明します。

How to move WordPress from local server to live site (2 methods)

なぜWordPressをローカルサーバーからライブサイトに移行するのか?

WordPressブログをローカルサーバーに構築することは、訪問者に影響を与えることなくサイトの変更をテストする安全な方法です。

サイトの完成度が高まったら、次のステップはローカルサーバーからライブサイトに移行することです。

ローカルサーバーからライブサイトにサイトを移動する2つの方法を紹介しよう。

最初の方法はWordPressの移行プラグインを使用するもので、初心者におすすめです。

2つ目の方法では、WordPressをローカルサーバーからライブサイトに手動で移動する方法を紹介します。

自分に合った方法を選べばいい:

WordPressサイトを移行する前に

WordPressをローカルサーバーからライブサーバーに移行するには、いくつかの準備が必要です。

まず、コンピューター上のローカルサーバー(localhostとも呼ばれる)でWordPressサイトが稼動しており、そのサーバーにフルアクセスできると仮定する。

次に、ドメイン名と ホスティングサービスが必要です。

私たちは、貧弱なプロバイダーや無料のホスティングサービスから始めて後悔した初心者から数え切れないほどの話を聞いてきました。私たちの経験では、適切なホスティングサービスを選択することは、任意のサイトの成功に不可欠です。

あなたの決定を容易にするために、私たちはBluehostを使用することをお勧めします。Bluehostは公式推奨のWordPressホスティングサービス会社で、WPBeginnerユーザーに限定割引+ドメインとSSLを無料で提供しています。

基本的に、月額1.99ドルから始めることができる。

あなたは偉大なBluehostの代替をしたい場合は、Hostingerを見ることができます。彼らはまた、無料のドメイン名とWPBeginnerユーザーに排他的な割引を提供しています。

もう少し支払う余裕があるなら、SiteGroundをチェックしよう。WPBeginner読者向けの特別価格もあります。

サイトの立ち上げにお困りの方は、ステップ・バイ・ステップのガイドに従ってください。

最後に、FTPプログラムと、ローカルサーバーのサイトをライブサイトにアップロードするためのFTPの使い方を知っている必要があります。

準備はいいですか?WordPressサイトの移行を始めましょう。

動画チュートリアル

Subscribe to WPBeginner

もし、文章での説明がお望みなら、このまま読み進めてほしい。

方法1:移行プラグインを使ってWordPressをローカルサーバーからライブサイトに転送する(推奨)

この方法は簡単で、初心者におすすめです。WordPress移行プラグインを使用して、WordPressをローカルホストからライブサイトに移行します。

ステップ1:Duplicatorプラグインのインストールとセットアップ

まず、ローカルサイトにDuplicatorプラグインをインストールして有効化する必要があります。詳しくは、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

プロのヒント Duplicatorのプロバージョンもあり、安全なバックアップ、クラウドストレージ、簡単なサイトの復元などが可能です。

有効化した後、Duplicator ” Packagesページで’新規作成’ボタンをクリックしてください。

Create new package for migration

バックアップに名前を付ける画面になります。

そして、「次へ」ボタンをクリックする。

Name backup package

Duplicatorはいくつかのテストを実行し、すべてが正常かどうかを確認します。

すべての項目が「Good」となっていれば、「Build」ボタンをクリックする。

Build package

サイトのサイズによっては、この処理に数分かかる場合があります。完了するまで、このタブを開いたままにしておく必要があります。

完了すると、「インストーラ」と「アーカイブ」パッケージのダウンロードオプションが表示されます。両方のファイルをコンピューターにダウンロードするには、「ワンクリックダウンロード」リンクをクリックする必要があります。

Download package files

アーカイブ」ファイルはWordPressサイトの完全なコピーです。WordPressのコアファイル、画像、アップロード、テーマ、プラグイン、WordPressデータベースのバックアップがすべて含まれています。

インストーラ」ファイルは、サイトを含むアーカイブファイルを解凍することで、移行プロセス全体を自動化するスクリプトです。

ステップ2: WordPressサイトのデータベースを作成する

インストーラを実行したり、WordPressウェブサイトをローカルホストからホスティングサービスサーバーにアップロードしたりする前に、新しいライブウェブサイト用のMySQLデータベースを作成する必要があります。

すでにMySQLデータベースを作成している場合は、このステップは省略できる。

データベースを作成するには、ホスティングサービスのcPanelダッシュボードにアクセスする必要があります。次に、「データベース」セクションを探し、「MySQLデータベースウィザード」アイコンをクリックします。

MySQL Database Wizard

次の画面では、新しいデータベースを作成する欄がある。

データベースの名前を入力し、「データベースを作成」ボタンをクリックします。

Name new database

cPanelはあなたのために新しいデータベースを作成します。

その後、新規ユーザーのユーザー名とパスワードを入力し、「Create User」ボタンをクリックします。

Create new database user

次に、作成したユーザーをデータベースに追加する必要があります。

まず、「すべての権限」のチェックボックスをクリックします。

Check all privileges

その後、下にスクロールして「変更を加える」ボタンをクリックし、変更を保存します。

これでWordPressサイトでデータベースを使用する準備が整いました。データベース名、ユーザー名、パスワードは本当に〜してもよいですか?この情報は次のステップで必要になります。

ステップ3:ローカルサーバーからライブWordPressサイトへのファイルのアップロード

ここで、アーカイブとインストーラファイルをローカルサイトからホスティングサービスアカウントにアップロードする必要があります。

まず、FTPクライアントを使用してライブサイトに接続します。接続したら、サイトのルートディレクトリが完全に空であることを確認してください。

通常、ルート・ディレクトリは/home/public_html/フォルダーです。

WordPressホスティングサービス会社によっては、サインアップすると自動的にWordPressがインストールされます。もしそこにWordPressのファイルがあるなら、削除する必要がある。

その後、Duplicatorから空のルートディレクトリにarchive.zipとinstaller.phpファイルをアップロードします。

Upload archive and installer files

ステップ4:移行スクリプトの実行

移行ファイルのアップロードが完了したら、ブラウザーで以下のURLにアクセスする必要があります:

http://example.com/installer.php

example.com」を自分のドメイン名に置き換えることをお忘れなく。

Duplicator 移行ウィザードが起動します。

インストーラはいくつかのテストを実行し、スクリプトを初期化します。

Duplicator migration wizard step 1

Setup セクションでは、MySQL ホスティングサービス、データベース名、ユーザ名、パスワードを入力するよう求められます。

ホスティングサービスはローカルホストになるでしょう。その後、先のステップで作成したデータベースの詳細を入力します。

その後、’Validate’ボタンをクリックし、入力した内容が正しいことを確認します。

Validate settings

その後、「Next(次へ)」ボタンをクリックして進みます。

Duplicatorはアーカイブから新しいデータベースにWordPressデータベースのバックアップをインポートします。

また、ローカルサイトと新しいライブサイトを指すURLも更新されます。

管理者ログイン」ボタンをクリックして、ライブサイトのWordPress管理エリアに入ることができます。

Admin login

ライブサイトにログインすると、Duplicatorは自動的にインストールファイルをクリーンアップします。

これですべてです。ローカルサーバーからライブサイトへのWordPressの移動は成功です。

方法2:WordPressをローカルサーバーからライブサイトに手動で転送する。

この方法では、WordPressをローカルサーバーからライブサイトに手動で移動する方法を紹介します。最初の方法がうまくいかなかった場合や、手動で行いたい場合に役立ちます。

ステップ1:ローカルのWordPressデータベースをエクスポートする

最初に行う必要があるのは、ローカルのWordPressデータベースをエクスポートすることです。そのためにphpMyAdminを使用します。

phpMyAdminに慣れていない方は、phpMyAdminを使ったWordPressデータベース管理のガイドをご覧ください。

http://localhost/phpmyadmin/、WordPressデータベースをクリックします。次に、上のメニューバーから「エクスポート」ボタンをクリックします。

Export from localhost

Export method:’オプションで、’Quick’または’Custom’を選択できます。カスタマイザーでは、データベースをエクスポートするためのオプションが増えます。

しかし、「クイック」を選択し、「Go」ボタンをクリックしてデータベースをダウンロードすることをお勧めします。

Export WordPress database using phpMyAdmin

ステップ2:WordPressファイルをライブサイトにアップロードする

次に、すべてのウェブサイトファイルをライブサイトに移動する必要があります。

まず、FTPクライアントを開き、ホスティングサービスアカウントに接続します。

ライブサイトに接続したら、正しいディレクトリにファイルをアップロードしていることを確認してください。例えば、サイトを’yoursite.com’にホスティングサービスしたい場合、public_htmlディレクトリにすべてのファイルをアップロードします。

ローカルのWordPressファイルを選択し、ライブサーバーにアップロードします。

Upload WordPress files FTP

ステップ3: ライブサイトにMySQLデータベースを作成する

FTPクライアントがWordPressファイルをアップロードしている間に、データベースのライブサーバーへのインポートを開始できます。

ほとんどのWordPressホスティングサービスプロバイダは、あなたのホスティングアカウントを管理するためにcPanelを提供していますので、我々はcPanelを使用してデータベースを作成する方法を紹介します。

まず、cPanelダッシュボードにログインし、「データベース」セクションにある「MySQLデータベースウィザード」アイコンをクリックします。

Select MySQL database wizard

次の画面では、新しいデータベースを作成することができます。

データベースの名前を入力し、「データベースを作成」をクリックします。

Name and create new database

cPanelは自動的に新しいデータベースを作成します。

次に、新規ユーザーのユーザー名とパスワードを入力し、「ユーザーを作成」をクリックします。

Create new database user

その後、作成したユーザーをデータベースに追加する必要がある。

まず、’All Privileges’ チェックボックスをチェックする。

Check all privileges checkbox

その後、下にスクロールして「変更を加える」をクリックし、変更を保存します。

WordPressサイトの新規データベースの作成が完了しました。

ステップ4:WordPressデータベースをライブサイトにインポートする

次のステップでは、WordPressデータベースをインポートします。

cPanelのダッシュボードに行き、「データベース」セクションまでスクロールダウンし、「phpMyAdmin」をクリックします。

Click on phpMyAdmin

phpMyAdminに移動し、先ほど作成したデータベースをクリックします。phpMyAdminには、テーブルのない新しいデータベースが表示されます。

次に、上部メニューの「インポート」タブをクリックします。インポートページで「ファイルを選択」ボタンをクリックし、最初のステップで保存したローカルサイトのデータベースファイルを選択します。

Import database via phpMyAdmin

その後、ページ下部の「Go」ボタンをクリックします。データベースが自動的にphpMyadminにインポートされます。

ステップ5:サイトURLの変更

次に、データベースのサイトURLを変更して、ライブWordPressサイトに接続できるようにする必要がある。

phpMyAdminで、先ほどインポートしたデータベースのwp_optionsテーブルを探します。

データベースのプレフィックスを変更した場合、wp_optionsの代わりに{new_prefix}_optionsになるかもしれません。

次に、wp_optionsの隣にある「Browse」ボタンをクリックします。または、サイドバーのリンクをクリックして、wp_optionsテーブル内のフィールドのリストがあるページを開きます。

Browse the wp options table

次にoptions_nameカラムでsiteurlオプションを探す必要があります。

次に「編集」アイコンをクリックする。

Edit siteurl in phpMyAdmin

フィールドを編集するウィンドウが表示されます。

入力ボックスoption_valueには、ローカルインストールのURLが表示されます。http://localhost/test のようなものです。

このフィールドに新規サイトのURLを挿入する必要があります。例:https://www.wpbeginner.com.

その後、「Go」ボタンをクリックしてフィールドを保存することができます。

edit the siteurl field

次に、上記と同じ手順でホーム・オプション名を設定します。wp_optionsメニューは数ページにわたることがあります。通常、ホームオプションは2ページ目に設定されます。

次に、ホームURLを更新し、ライブサイトのURLと同じにする。

ステップ6: ライブサイトのセットアップ

データベースのインポートとコンテンツのアップロードが完了したら、次はWordPressの設定です。

このとき、サイトには「Error establishing a database connection(データベース接続の確立エラー)」というエラーが表示されているはずです。

これを修正するには、FTPクライアントを使用してサイトに接続し、wp-config.phpファイルを開きます。

以下のコード行を探すことになる:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */
define( 'DB_USER', 'username_here' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

先に作成したデータベース名、ユーザー名、パスワードをプロバイダーとして入力する必要があります。

次に、wp-config.phpファイルを保存し、WordPressホスティングサービスサーバーにアップロードします。

さて、あなたのサイトにアクセスすると、それはライブであるべきだ。

その後、WordPress管理画面にログインし、設定 ” 一般に移動する必要があります。その後、何も変更せずに一番下までスクロールし、「変更を保存」ボタンをクリックします。

Save general settings

これにより、サイトのURLが必要な場所に修正されるようになります。

それができたら、設定 ” パーマリンクに行き、スクロールダウンして「変更を保存」をクリックし、すべての投稿リンクが問題なく機能していることを確認してください。

Save permalinks settings

WordPressサイトをあるドメインから別のドメインへ、またはローカルサーバーからライブサイトへ移動する際には、必ずリンク切れや画像の欠落に直面します。

URLを更新する2つの方法をご紹介します。あなたに最適な方法を選んでください。

1.Search & Replace Everythingプラグインを使ってURLを更新する(推奨)

これを解決する最も安全な方法は、Search & Replace Everythingを使用することです。これは強力なWordPressプラグインで、複雑なデータベースクエリーを書くことなく、簡単にサイトの一括更新作業を行うことができます。

まず、Search & Replace Everythingプラグインをインストールして有効化する必要があります。

有効化した後、Tools ” WP Search & Replaceページにアクセスしてください。

Search and replace URLs from local to live site migration

ここから、’Search for’フィールドにローカルサイトのURLを、’Replace with’フィールドにライブサイトのURLを入力する必要があります。

少しスクロールして、テーブルの下の「すべて選択」をクリックします。これにより、プラグインがデータベース内のあらゆる場所で古いURLを探すようになります。

Select tables

ここで「検索と置換のプレビュー」ボタンをクリックして続行する。

プラグインは、古いURLのすべてのインスタンスをデータベースから検索し、結果をプレビューします。

Preview changes

問題がなければ、「すべて置換」をクリックして変更を保存する。

変更についての警告が表示されます。続行するには「はい」をクリックしてください。

プラグインはデータベースを更新し、ローカルのURLを現在のサイトのURLに置き換えます。

2.手動でURLを更新する(上級者向け)

URLを更新するもう一つの方法は、以下のSQLクエリーを使うことである:

UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/test/', 'www.yourlivesite.com/');

phpMyAdminにアクセスしてデータベースをクリックし、上部メニューから「SQL」をクリックして上記のクエリーを追加するだけです。

ローカルサイトとライブサイトのURLに変更し、「Go」ボタンをクリックすることを本当に〜してもよいですか?

Fixing WordPress images and broken URLs after moving to live site

これで完了です。これでローカルサーバーからライブサイトへのWordPressの移行は成功です。

うまくいけば、あなたのライブサイトはスムーズに稼働しています。エラーにお気づきの場合は、WordPressの一般的なエラーガイドをご覧いただき、トラブルシューティングにお役立てください。

この投稿が、WordPress をローカルサーバーからライブサイトに移行する際にお役に立てば幸いです。また、ライブサイトからローカルサーバーへの移行に関するガイド、または WordPress 移行の実践的な手順に関する究極のウェブサイト移行チェックリストもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

アバター

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

909件のコメント返信を残す

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk

    Thanks for the SQL command. You really saved me a lot of time. My current procedure was to open the backup in a text editor and use the function to replace the overwrite URL. Only then could I upload the database dump where it belongs. This command to change the original URL to the new one is new to me and really saves me a lot of time.

    • WPBeginner Support

      Glad to hear it was helpful :)

      管理者

  3. mohadese esmaeeli

    Hello.Thank you for your comprehensive explanation.
    I have completed all the mentioned steps. However, instead of displaying the content of my site, a page opens with the following message at the top: “Index of /my db name,” and below it, all the folders and files inside the database are listed.

    • WPBeginner Support

      You would want to check to ensure you have an index.php file and that your tool to have the site running locally is active.

      管理者

  4. Md Tanvir Hossain

    Thanks. As a New user. it is very helpful

    • WPBeginner Support

      You’re welcome, glad to hear our guide was helpful!

      管理者

  5. MARYKATHLEEN GIARROCCO

    Can I move my WordPress local host to another local host?

    • WPBeginner Support

      If you wanted to you certainly could!

      管理者

  6. Olajesu

    This is a lifesaver. I thanks you for your easy and understandable content.

    • WPBeginner Support

      Glad you found our content helpful!

      管理者

  7. Afridi Mohamed

    This guide was very straightforward and really helped me.

    • WPBeginner Support

      Glad our guide helped!

      管理者

  8. Ana-Maria

    This was a life saver! Very clear instructions for uploading WP manually. Thank you so much!

    • WPBeginner Support

      Glad our guide was helpful!

      管理者

  9. Khoa

    Thank you so much, it’s very clear.

    • WPBeginner Support

      Glad our guide was helpful!

      管理者

  10. Tamara

    Great, detailed guide, thank you. My site looks great from the front end but backend doesn’t really function like it does on my local server.

    Do you also need to update the guid column of the wp_posts table?

    • WPBeginner Support

      No, you don’t need to update that column.

      管理者

  11. Yueshuya Yingjun

    It helps me a lot. Thank you very much!

    • WPBeginner Support

      You’re welcome, glad our guide was helpful :)

      管理者

  12. Paavanan Vellan

    Thanks a lot for this guidance! Really simplified my migration process. <3

    • WPBeginner Support

      Glad our guide was helpful :)

      管理者

  13. Sharad Gaur

    Once I transfer my local website to live environment, then after using live site for at least 1 month and created lot’s of post and comments, I made design changes and added new pages and categories in my local site. Now, how I can transfer my this new design to live where earlier design and live website already exist?

    • WPBeginner Support

      You can import your content from the live site using Tools>Export if it is only posts, pages, and comments on the live site. This would be duplicating that content and not removing it from your live site.

      管理者

  14. Kevin

    In buying a domain and web host to move my wp local site to a live serve, do I need to purchase a WordPress hosting or an ordinary web hosting???
    I’m confused because some web hosting services have WordPress hosting and web hosting as two different options.

    • WPBeginner Support

      It would depend on the hosting provider, some you can place it on either and one is optimized for WordPress while other hosts only allow WordPress on their WordPress hosting.

      管理者

  15. Bob Cline

    Step 4. Runing The Migration Script
    After you have uploaded the migration files, you need to visit the following URL in your browser:

    example.com/installer.php

    Don’t forget to replace example.com with your own domain name.

    I do this, but the Duplicator Migration Wizard never starts. Any ideas?

    • WPBeginner Support

      You would want to ensure you placed the files in the correct folder on your hosting for the most common reason for that issue.

      管理者

  16. Ameer Hamza

    Hi! i want to move my local wordpress site to another local wordpress site using xampp so method will work for me or not?

    • WPBeginner Support

      You should be able to use this method for transferring to a different localhost as well.

      管理者

  17. Armel

    Hi dear team,
    Thanks for this helpful article.
    Please, if my domain has already an existing website and i wanted to update with my new website developed in localhost, how can i update my new website ?
    Thanks for all

    • WPBeginner Support

      You would want to create a backup of the current live site, remove the live site, then follow the instructions in this guide.

      管理者

      • Armel

        Thanks for your reply

  18. JC

    I followed your steps for the manual process. Everything worked until i tried to update the posts in the PHPmyadmin. The urls doesn’t seem to update when i run the query.

    • WPBeginner Support

      You would want to ensure you replace the localhost/test and the yourlivesite.com with the correct addresses.

      管理者

  19. Montu

    I am setting up my site using manual method (method #2) and have followed till step no. 4 without any error.

    However, after added my DB login details in wp-config.php file, now the site (WP set up page) is not appearing and the site keeps loading with a blank screen eternally.

    I don’t know if something is missing or went wrong. I see no error message, just a blank, loading screen.

  20. Susan R.

    Thank you, thank you, thank you!! I am a novice, but your tutorials gave me the confidence to build a WP site on Localhost and then upload it to my new host. All went smoothly. I really appreciate all that you provide.

    • WPBeginner Support

      Glad our guides could help you :)

      管理者

  21. Paa

    I used the manual method and have issues.

    Homepage of the site shows on the live server however other pages when I click redirect me to localhost pages and I cannot seem to find out to solve this.

    • WPBeginner Support

      The most common reason for that specific issue would be if you skipped the Velvet Blues step in this guide to update your URLs

      管理者

  22. Marek

    Can I change my test site to live site in-place ? I mean I need to convert test site into live site on the same localhost.

  23. Zion

    Pls what do you mean by
    “To fix this, connect to your website using an FTP client and edit wp-config.php file?”

  24. Ken

    When I am editing the staging site, there would be orders happening on my live site. How do I make sure that when I upload my staging site into my live site that the new orders would also be captured?

    Thanks

    • WPBeginner Support

      You would want to pause receiving orders during that update process to prevent issues

      管理者

  25. Jana Boswell

    WOW, this is perfect! I could NOT migrate my site or get any of this to work before. Working with my hosting company didn’t help – they only gave me bits of information that didn’t make any sense to me. I followed your step-by-step instructions and my site is up and running! I can’t thank you enough!

    • WPBeginner Support

      Glad our guide was helpful :)

      管理者

  26. MarkT.

    Where can I find my login info? I didn’t see the login details from the steps, now I cannot login in to my wordpress dashboard.

    • WPBeginner Support

      You would use the same login information from your local installation to log into your site.

      管理者

  27. Deb Marvin

    Is there a way to migrate part of a development site and not the whole site?

    I would like to migrate certain updated pages and content that is ready to go live without also migrating functionality or content that is still under development.

    • WPBeginner Support

      You could manually do what it sounds like you’re wanting to do by using the built-in exporter under Tools>Export and selecting the specific pages

      管理者

  28. Edidiomg

    If in the place of using an FTP, I decide to compress and upload to my cpanel then extract there, will it make any difference?

    • WPBeginner Support

      As long as your hosting provider allows you to do that it should be fine.

      管理者

  29. Angela Grace Vaculik

    Hello,
    I have tried to upload my wordpress site created on my localhost, and used Method 1. All went well until I got to the Duplicator portion – Step 2. There is no “port” field as shown on your screenshot, so I just enter “localhost”. When I click “test database” I get a fail warning to “verify host connection” which says “unable to connect user to host”. I tried some of the troubleshoot steps to resolve but none of these work. One of the troubleshoot points states “On some servers, the default name ‘localhost’ will not work. Be sure to contact your hosting provider”. Could this be the problem?

    • WPBeginner Support

      More than likely, you would want to reach out to the support for your hosting provider and they should be able to assist.

      管理者

  30. Hawareyaw Petros

    Is it possible to transfer a single post from local to live word press site?

    • WPBeginner Support

      You would go under Tools>Export and select the single post using the options available there :)

      管理者

  31. Oladipupo Ajisegiri

    This post is a life saver!!!

    • WPBeginner Support

      Glad our guide was helpful :)

      管理者

  32. david kule

    thank you guys!!
    i followed the steps it’s working for me
    your save my life

    • WPBeginner Support

      You’re welcome :)

      管理者

  33. Sunita

    Really Thanks:)…It’s a great tutorial and it’s very helpful to me..
    one thing i asked you..can you tell me how to open wp dashboard after this??

    • WPBeginner Support

      You would want to add /wp-admin to the end of your domain and that should bring you to the login page where you would use the same login information as on your local install.

      管理者

  34. Sunita

    Really Thanks:)…It’s a great tutorial and it’s very helpful to me..

    • WPBeginner Support

      You’re welcome :)

      管理者

  35. gerardo

    HI! i have a live site fully operational but on localhost i make a new site, mostly design. If i migrate it using some pluguin like duplicator, the info from the old site would be deleted?

    • WPBeginner Support

      It would not remove your local site but if you’re trying to install it where a site is already installed then you would run into overwriting issues.

      管理者

  36. Grace Lee

    After moving my website to a live site, will I still be able to edit and make changes to it? Thanks!

    • WPBeginner Support

      Yes, you would be able to :)

      管理者

  37. Ifeanyi

    Easy to follow guide. Even easier than some videos i have watched on youtube.

    • WPBeginner Support

      Glad you’ve found our content helpful :)

      管理者

  38. Temidayo Marvel

    Great solution to my Problem.
    Thanks

    is it safe and easy to use premium themes and plugins on the wampsever while testing and setting up the WordPress site locally, or do I need to deploy my themes and plugins after importing the site to a livehost.

    • WPBeginner Support

      You would want to check with the support for the theme and plugins you’re wanting to use for if they work on local sites or not.

      管理者

  39. Israel

    Thanks for the guide, it really helped!

    • WPBeginner Support

      You’re welcome :)

      管理者

  40. Jason Bar

    I got lost on the part “connect to your live site using an FTP client.”

    That is completely different tutorial where there is no hyperlink to see it.

  41. Janith

    Method 1 worked fine afrter few refreshes in the step 2. Thanks

    • WPBeginner Support

      Glad our guide was able to help :)

      管理者

  42. Ashley Davies

    Thanks for the article, I have run into a problem doing method 1. In step 4, when I visit the url at mysite/installer.php, I get an error from duplicator as follows:

    ‘Archive not found! The ‘Required File’ below should be present in the ‘Extraction Path’. The archive file name must be the exact name of the archive file placed in the extraction path character for character.’

    Any help with this would be greatly appreciated

    • WPBeginner Support

      You would want to check with your hosting provider that the file is located in the correct location in your files.

      管理者

  43. STEPHEN OFORI

    Wow… I can believe my eyes. It worked perfectly with the first option. God bless you.

    • WPBeginner Support

      Glad our guide was helpful :)

      管理者

  44. Temitope Durotoye

    Thank you so much for this… Really helped me a lot.

    • WPBeginner Support

      You’re welcome, glad our guide was helpful :)

      管理者

  45. Elías Sánchez

    I suffer with this kind of stuff, in fact today i spent a lot of hours doing this migration from local to a server.

    Reading and following this helped a lot.
    Thanks for sharing!

    • WPBeginner Support

      You’re welcome, glad our guide could help with this process :)

      管理者

  46. Yusuf Omotoso

    The post is really helpful just like many other posts. Thank you

    • WPBeginner Support

      You’re welcome :)

      管理者

  47. Luz Manalo-Cruz

    Hi. I’ve successfully migrated from localhost to livesite! Yay! What now do I do with the localhost?

    • WPBeginner Support

      That would be a personal preference question whether you would like to keep it or remove it.

      管理者

  48. Luz Manalo-Cruz

    Hi! Using Method 1, all went well until Step 4 – the migration wizard doesn’t launch when I type in example.com/installer.php (I changed example.com to my domain). Instead I get a Page Not Found. I’ve tried this twice now and I get the same Page Not Found screen on Step 4. Am I missing a step?

    • WPBeginner Support

      You may want to ensure you placed the file inside the correct folder, you can check with your hosting provider and they should be able to assist.

      管理者

  49. Habibul Islam

    Thanks. I have done migration by 1st method.

    • WPBeginner Support

      Glad our guide could assist :)

      管理者

  50. Milutin

    If someone has problems on Method 1 Step 4 with cPanel host name (error text: No such file or directory), instead of localhost, try mysql. This step always bugs me off nad frustrates me.

    Thanks for the great tutorial! Used it multiple times!

    • WPBeginner Support

      Thanks for sharing what worked for you :)

      管理者

  51. Purushothaman Gempuraj

    Thanks. The first Duplicator based method worked for AWS based AMI Linux server 2 which had external database connection as well.

    • WPBeginner Support

      Glad our recommendation worked for you :)

      管理者

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。