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. divine

    Nice article,

    Everything was go fine until the signing up on wordpress Admin, i’ve had d domain name for a long time and I can’t remember my wp-admin login details. What can I do to rectify this problem?
    Secondly, I tried visiting my site, it opened but the site kept saying the page could not be found, I need help pls

  3. monica

    Hi there,
    So, My site is runing and seems to work on the Lovalhost/mysite
    DB connection is good, settes permalinks to default.

    BUT:

    all the links fo to the domain (live site) what I’m missing?
    O.o

    Thanks in advance, great tuto

  4. rdllngr

    Everything worked for me. Thanks a lot!

  5. Alem

    Helped me go live :-) Thank you.

  6. aqeel

    hi plz help i am having this errer when i click import my database plz help

    Error
    SQL query:


    — Database: `testword`

    — ——————————————————–

    — Table structure for table `wp_commentmeta`

    CREATE TABLE IF NOT EXISTS `wp_commentmeta` (

    `meta_id` BIGINT( 20 ) UNSIGNED NOT NULL ,
    `comment_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT ‘0’,
    `meta_key` VARCHAR( 255 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
    `meta_value` LONGTEXT COLLATE utf8mb4_unicode_ci
    ) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci AUTO_INCREMENT =1;

    MySQL said: Documentation

    #1046 – No database selected

    • Prasanna

      at the top of everything type USE ;
      eg if my database name is wordpress then type

      use wordpress;

  7. Ngeshlew

    Needless to say, you are the website that I always come to check whenever I want to migrate my local WordPress site to a live server.
    Thank you guys for the easy steps.

  8. Wafir Manakad

    Hey,

    Thanks a lot.

    I had two queries:

    1. On my new website (destination website), I am copying the old files onto an empty public html folder. That is the way right? There is no need to pre-install wordpress on new site?

    2. Everything was fine right until the end. I am moving my website from one domain to another.

    Finally when I open the new domain, part of the website loads, and partly there are errors. This is the error message:

    Warning: include_once(/home/laprimaa/public_html/wp-content/themes/charlottetheme/charlottetheme/theme/plugin/advanced-customizer/lib/ctAdvancedCustomizerMethods.class.php) [function.include-once]: failed to open stream: No such file or directory in /home/laprimaa/public_html/wp-content/themes/charlottetheme/charlottetheme/framework/createit/ctFilesLoader.class.php on line 143

    Does this mean I have not uploaded my files correctly?

    Any help would be much appreciated.

    Best Regards

  9. sandeep kumar singh

    how we can give the link of other page except home . i have given the url of home but by using your tutorial i have added post query but my site is not working till now .so please give me information to resolve this.

  10. Shubhayan Ghoshal

    Shouldn’t we be replacing the website name -> localhos/{dirname} for ‘guid’ column rather than post_content column?

  11. justin

    Okay everything was sailing smooth until I went to import the new database. Upon trying to import it it only puts in wp_commentmeta, wp_comments, wp_links, wp_options and then spits out the error code: ” #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘?’ at line 2 “. Now the whole site is down and I don’t have a clue what the heck it is referring too when it says “line 2”. Line 2 of what? And of course the Manual is so friggin helpful man I’ve never seen such helpful stuff (is there a way to type sarcastically?) Please help…

  12. Frosty

    Thanks mate. You are a diamond! Ran into a few problems, mainly 123 reg php address was incorrect but got there in the end.

    Many many thanks

  13. kathy

    Hi, I am trying to import the database but appear to be getting an error. Any ideas anyone? I’m new to wordpress land.

      • kathy

        I’ve exported my local database and tried to import and it’s returning the below.

        Database: `root_wordpress-trunk`
        Table structure for table `wp_comments`

        #1046 – No database selected

        Any help would be greatly appreciated.

  14. Rob

    Hello,

    I have migrated my site from local to host server. I followed all steps and everything went right but finnaly, I am missing content (posts, pages etc.). Does anybody has any advice?

  15. Yosifov

    Hallo, all worked nice so far, but I reached the step 5 where phpmyAdmin is not giving me the option to edit siteurl and home..

  16. amin

    thanks for this tutorial ,
    I follow this steps and it work correctly i have domain and hosting from godaddy.

  17. Adeel Ashraf

    really awsome work (Y)

  18. kanav

    do i need to copy all of my data on a live server with preinstalled wordpress ?

    like godaddys managed wordpress ?

  19. Claire

    Hello,
    I have followed all of the steps above, and everything has gone correctly up until the very last part.
    I have edited and uploaded the wp-config.php file and now my webpage is just a blank screen and I have not been able to get into edit it in wordpress. I thought I had lost the whole thing…. I changed the urls in php.myadmin back to local/wordpress and can access it again.

    What is going wrong please? Any help appreciated!

    Thanks, Claire

    • WPBeginner Support

      Undo the changes you made to wp-config.php you have probably missed something when editing it.

      管理者

      • Katy

        Ok I’m having the same problem and I’ve uploaded and reuploaded and changed the wp-config.php file. If I deliberately put in something incorrect it shows error establishing database connection. When I put in the correct information I just get a blank page. Blank page for /wp-admin as well.

    • Jessica CHu

      I’m having this same problem… I’m also not able to get access to wordpress back despite changing the wp-config back to the original settings. Have been through all the instructions step by step. I’m using MAMP and Filezilla on EasySpace… Please help!

  20. Michelle Whittaker

    Thank you so much! This was exactly the step-by-step resource I needed! I did get a dB error trying to import the gzipped file but I went back and exported the dB as a zip file and imported into new dB and that worked fine.

  21. Chris Jacobsz

    Hi,

    Thank you for the excellent article. I am a novice and struggled with Duplicator but got my website up and running by following these instructions step by step. Only one thing, my SQL query to update the broken image links did not work. So I had to do it manually.

    Thanks very much.

    Chris

  22. Mike

    Excellent article!!!

    One thing to note: Please be sure you know the SQL host server name before you begin! It took me a little while to figure out that “localhost” in the wp-config.php file needed to be changed to the name of my hosting server.

    Everything in the article is spot on and saved me hours of moving my Dev site to my hosted provider….

    • Arjun

      Mike, I am using godaddy and how do I find out my SQL host server name? Currently leaving it as ‘localhost’ in wp-config.php file is not helping. Any help appreciated. Been trying but with no luck.

  23. Maggie Walker

    Thank you SO SO SO much for this article!!! I am setting up a WP site for a friend for the first time and it was SO helpful to have this article to walk me through the process of going from local to live! I’m a Front End Dev so the help with all of the PHP, SQL, and FTP was incredibly useful.

  24. darrync

    hmm, not working for me.
    I went through and did this first time and had problems with php.errors.

    So I tried a 2nd time and then i finally got the the ‘Error Establishing Database Connection error’

    Then progressed until yes i saw my live site.
    However when i click on the login to WP admin on the now live site, it takes me to a directory of wp-admin and the whole WP GUI is not shown!

    This leads to me think there was an WP install problem…or..?

    Note I am a newbie to WP, PHP, CSS, so please explain as if to talk to a 5yo child please :DDDD

    thanks

    • WPBeginner Support

      You need to update WordPress urls. If you can use the admin area then go to Settings > General and make sure you have the URL of your live site in both fields.

      管理者

  25. obai and hill

    I am following the steps and they are very clear and works well every time.
    However, this time i followed the steps and when i reached to step 6 where i will have to set up the WP account, the website worked without giving me the error establishing database connection message.
    The problem is i can access the new website wp-admin and the pages redirect me to the testing domain. please help

  26. Dave

    Thanks for the article. Very helpful!

    I have a question. My current live site (fatcow hosting) is running on a very old version of wordpress. My new local site is ready with the latest of everything. I wanted to create a subdomain and test this new site live on different devises and browsers before actually taking it live.

    My question is can I have 2 versions of wordpress running on my hosting site? Will ask the host too, but thought I would ask here as well. So the idea is have my current site which is outdated running while I beta test my new site. Once the new site is all good, then I will replace the old with the current. Good idea? Silly naive thinking from a beginner?

    Thanks for any help!

    -Dave

  27. Bhaumik Dhandhukia

    Thank you very much. My site is live and running.

  28. Shaheryar

    Thank you!!!!!!!!!!! Life saver article.

    Helped me a lot!!!!!!!!! I did everything step by step. Had to change database names accordingly, had to fix broken links manually but hey, its just small stuff to change which I fixed it quickly.

    Really appreciate your time and effort to create such a userful site.

    Thanks.

  29. cyberwaver

    I did everything mentioned here. Mine is am transferring from one host to another host I followed every step here but my website is still showing blank.
    check any help will be appreciated.

  30. Wellbein

    Hello . I tried all the process and it seems lie I’m the only one here who s a problem. The problem is the white screen. I can’t troubleshoot because the screen is blank. OMG. I am very sure that I followed the instructions when in fact it isn’t my 1st time to migrate a local site to the live site. What does the white screen means? Please help!! :(

  31. Don_Kihot

    I have developed child theme locally, what are the steps to upload to live server?

  32. george

    thanks for d dis update, my site uploaded well but d pages are not opening fulling, d post and home page open well but the page just open half well. pls help me

  33. olenyash

    Best guide i have been through so far — on everything. Thank you a tonne

  34. Dale Powell

    This article has saved my life since the day it was published. Can’t thank you enough

  35. Osama

    Great Work !

    This Transfer Method Works Good Work

    Thank You

  36. Ben

    Excellent article. I’ve just followed it step by step for my new business website I’ve been developing on WAMP.

    Keep up the great work!

    Ben.

  37. Rudra

    Really great thanks man

  38. Juan C

    THANKS MAN!!!!!

  39. Matthew Eaton

    At step 5, I cannot alter the site url or home. It won’t give me the option of editing.
    What went wrong?

    • Chris

      There is an icon like “pencil”, you can click that

  40. Adam

    When I import all files and database I have error 500 on subpages… Why??

  41. anthony

    when I import my database not all of the tables are there. I’m wondering what I’m doing wrong….

    • Jay Doshi

      Firstly You have to select your database(Click on your create database name) and then import your .sql file.

  42. Kailashkumar

    Sir i want to upload WordPress site form local host to live server.

  43. Robin

    One tip maybe I can help someone with this.
    My database from my localserver was far too big to import due to the import limit.
    I have used the 7ZIP program to zip my exported database to a gzip file.
    This has solved the problem for me.

    Thanks for the article! At the moment my website is uploading…

  44. Thijs

    Thank you very much for the tutorial. I regret to say that after step 5 everything went blank.
    The site is gone and I am not able to recover the information.
    I can not believe that creating a simple site can be so difficult.

  45. Robin

    Thanks for the info.

    Tomorrow I am going to replace my wordpress website. I am reading some people are having issues with the thaccess file. Do I have to change the site adress in this file or not?

    Thanks!

  46. Claudio

    This was certainly a very helpful tutorial, but why go through such a lengthy process when you can just export and import everything? There might be a couple of things missing like the media library but that’s really easy to download and upload.
    I’ve been creating child themes for a while and this what i do for my clients:
    – create the whole child theme abs site offline
    -once finished simply select expert everything from the settings
    -install WordPress on the line host
    -select import and point it to the xml file produced before
    -that’s it! All your post and pages should be there now
    – simply install the cold theme you’ve created and tweak what ever looks “funny”.
    I hope this helps.

  47. Aurang Zeb Khan

    I am trying since 2 days, “i spend almost full day” but could not succeed. I wanted to try a simple website with only one post so that i could get to know how the whole process will go when i complete my site in the wordpress.
    I have done all the steps successfully but when i try to import database to the hosting website an error occurs and i dont know how to solve this. i am using SmartFTP. can anybody help?

  48. Alex Evans

    Hi, I understand this process, but can anyone send me a link or tell me the process for taking a locally hosted WP site and uploading it to go live, where there already exists a site on the domain?

    For example if I’m creating a new site for someone and now I need the locally hosted site to appear for said domain instead of the hold one.

    I’m confused on how DNS works

  49. Raja Asad

    Hi ,
    please anyone help me out
    actually i did all these steps that mentioned above but still couldn’t upload my site form local host to live server
    what else i do ?

  50. Asad

    Hi ,
    i did these all steps but yet i am able to transfer my site from local to c panel
    please suggest one thing more is there already word press install on c panel or we have to install it there ?

  51. PAUL

    Hi

    Thanks for an excellent article – clear, concise, well-illustrated and easy to follow. I’ve been uisng Duplicator for ages, but it just decided – this time – that it wasn’t going to play fair!

    Everything worked perfectly until Step 7. The SQL query fixed some, but not all, path changes. I then resorted to the Velvet Blues plugin, which fixed all but one path. I’m still struggling to find a solution for the following:

    I have a plugin which utilises its own (two) stylesheets. While Velvet Blues has changed the path to one stylesheet, the other doesn’t want to change. Any ideas how I can effect this manually?

    Thanks and regards
    Paul (“Webbo”)

返信を残す

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