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. david kule

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

    • WPBeginner Support

      You’re welcome :)

      管理者

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

      管理者

  4. Sunita

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

    • WPBeginner Support

      You’re welcome :)

      管理者

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

      管理者

  6. 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 :)

      管理者

  7. Ifeanyi

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

    • WPBeginner Support

      Glad you’ve found our content helpful :)

      管理者

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

      管理者

  9. Israel

    Thanks for the guide, it really helped!

    • WPBeginner Support

      You’re welcome :)

      管理者

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

  11. Janith

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

    • WPBeginner Support

      Glad our guide was able to help :)

      管理者

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

      管理者

  13. 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 :)

      管理者

  14. Temitope Durotoye

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

    • WPBeginner Support

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

      管理者

  15. 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 :)

      管理者

  16. Yusuf Omotoso

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

    • WPBeginner Support

      You’re welcome :)

      管理者

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

      管理者

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

      管理者

  19. Habibul Islam

    Thanks. I have done migration by 1st method.

    • WPBeginner Support

      Glad our guide could assist :)

      管理者

  20. 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 :)

      管理者

  21. 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 :)

      管理者

  22. Meredith Bashert

    I’m still seeing “error establishing a database connection.” I don’t have a domain name set yet (waiting until the site is complete) so I used the domain name that I used to log in to the FTP client as my option value in my wp_options.

    • WPBeginner Support

      For that error, the domain you set is likely correct but you would want to double-check your username and password for your wp-config file

      管理者

  23. Husain

    Dear WpBeginner team,
    In case i already have a website running on my live server (Hosting) and i want to upload a new site on it, so do i need to manually delete all the old files ?

    Please advise.

    • WPBeginner Support

      If you are using the manual method from this article you would overwrite the files currently on your hosting rather than deleting them.

      管理者

  24. Paul K

    Thank you so much for the instructions. The manual way was way simpler and faster than any plugin I tried.

    • WPBeginner Support

      Glad our guide could help :)

      管理者

  25. Rehman Ali

    Thanks! Just followed and migrated my site using method 1. Thanks!

    • WPBeginner Support

      You’re welcome, glad our recommended method was able to assist :)

      管理者

  26. Lia

    Thank you for that great tutorial! It was really help

    • WPBeginner Support

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

      管理者

  27. JLA

    you forgot to include in method the wp-config.php file to edit database connection

    • WPBeginner Support

      As the database is being copied from your local environment it means you will not need to edit the wp-config normally

      管理者

  28. Oni

    Thank you very much for this update. I really appreciate.

    • WPBeginner Support

      You’re welcome :)

      管理者

  29. Beth

    I am completely stuck on Method 1 Step 3 – when i try to connect in FileZilla it keeps saying “Could not connect to server”. Please help!

    • WPBeginner Support

      The most common reason would be your FTP information being incorrect, if you reach out to your hosting provider they should be able to assist.

      管理者

  30. Shubham

    After exporting my website from local host i couldn’t import it to another wordpress which is live . This was because of file size limit. Any suggestion in this regard.

  31. Peter

    The Mamp guys have now a publish to live site function in the pro version.

    • WPBeginner Support

      Thanks for sharing that information :)

      管理者

  32. Claudia

    Thank you so much for your tutorial. I built the website on localhost, thanks to your tutorial about it. I have a question about this process of going from local to live though.

    I currently have a page online and working. I wantred to change it, so that was the reason I developed the new site on localhost. What I would like to know is if I should do something else before using this tutorial to put the local site live.
    Should I delete all data from the current page and then upload the local one? or what should I do.

    Thank you so much!

    • WPBeginner Support

      If you are wanting to replace the current page, then it would be best to create a backup of the live site and then remove it to replace it with the version you are moving from your local installation.

      管理者

      • Claudia

        Thank you very much for your answer!

        By the way. I LOVE your page, it has been my go-to page to find reliable answers.

        • WPBeginner Support

          Glad we can be helpful :)

  33. Ola Philips

    Thanks for the tutorial, it has helped me a lot , please, after uploading my WordPress file, how do I get to my WordPress dashboard

  34. Sandie

    Thanks for the tutorial. I followed the manual method and the only issue I had was an internal server error on anything but the front page.

    This was because on my development server my WordPress was installed at localhost/SAF, so the Rewrite Base and Rewrite Rule in the .htaccess file had to be updated to remove the SAF/. Might be worth updating the instructions to check for this, based on the comments it looks like a couple of others have had a similar issue.

    • WPBeginner Support

      We’ll certainly look at updating the article to include this information :)

      管理者

  35. liam Donoghue

    I don’t know if i’ve missed something here but i don’t understand the jump in step 3. You’ve said

    ‘Now you need to upload the archive and installer files from your local site to your hosting account.

    First, connect to your live site using an FTP client. Once connected, make sure that the root directory of your website is completely empty.’

    How can I connect an FTP to a live site if it isn’t live yet. I have a c panel which has a database made for my site, a copy of my localhost site on my desktop and a filezilla. Am I connecting filezilla to my hosting account? how do I do that? Some clarity on this would be appreciated :)

    • WPBeginner Support

      Apologies for the confusion, the methods involved in connecting to your host with FTP can vary depending on the host. If you reach out to your hosting provider they should be able to let you know how to connect filezilla to your root folder

      管理者

  36. Fabrice

    Perfect! Thanks a lot, very useful. Worked perfectly.

    • WPBeginner Support

      You’re welcome, glad our article could help :)

      管理者

  37. Alex Legard

    I’m trying to host the WordPress them that I made from scratch. I followed the instructions in this article except for step 7. Now I’m getting the “Stylesheet is missing” error. Help?

    • WPBeginner Support

      For a custom theme, you would want to make sure you have a style.css file in the main folder of the theme and ensure that your computer didn’t rename it style.css.txt

      管理者

  38. Joseph

    I have a very important question as I never see any specific information about JavaScript in using these methods to upload your site to wordpress. My question is this; if I have javascript files and CSS included in my website files for displaying numbers and text, will they still function properly after I upload my website using this method? I need my javascript files. Please help as this is important to me. I want to use this method after I finish my website but Idk if the javascript files included will work as they should. Thanks in advance.

    • WPBeginner Support

      Unless the file was hardcoded to use a file on your local computer then Javascript files should still work the same as some themes use Javascript files and they don’t have any issues.

      管理者

      • Joseph

        Thank you, I will try once my site is complete. I appreciate the help.

        • WPBeginner Support

          Glad we could help :)

  39. Abdelmadjid ZITANI

    Very helpful, thanks a lot for your blog

    • WPBeginner Support

      You’re welcome, glad our articles can help :)

      管理者

  40. Margie

    Great tutorial – thank you so much! Got my site up and running (using your manual method) without just a couple small hiccups that were easily solved with a Google search. Overall, I’m very pleased!

    • WPBeginner Support

      Thank you, glad our guide could help :)

      管理者

  41. TENASU MENSAH

    please i found out that after everything,in the menus and submenus have localhost links like (localhost/test/category instead of http://www.yoursite/category
    is there any solutions?

    • WPBeginner Support

      Did you follow the steps in step 7? You could also recreate the menu links if you wanted.

      管理者

  42. Tenasu mensah

    please how i can find my back-ends after i have transferred the site to live server

  43. Tenasu mensah

    what should i do if the database you are importing is larger than the required amount given?

  44. Johannes

    Thanks a lot for the instructiuons. I had the internal error problem. Luckily I had the htacces file from a previous installation on the server and could just replace the other one.

    Everything running perfectly now.

    • WPBeginner Support

      Thanks for sharing the error you ran into, glad our tutorial could be helpful :)

      管理者

  45. Gimhana Jayasekara

    Awesome work. You helped me so much. I used 2nd method because I prefer manual handling. Works fine.

    • WPBeginner Support

      Glad our guide could help :)

      管理者

  46. Milutin

    Thanks a lot for your help. ALTHOUGH…

    After a lot of effort, I understood the chaos of 2 domains on the job I’ve been given, so now website finally is live. But I cannot complete your tutorial because whatever I click or whatever else I type as URL besides just domain, it gives me error 500… I’ve tried all possible solutions mentioned in your other article, but nothing worked. Would you know the reason of the problem?

    It’s my school’s website. It’s in Serbian, but click on any link and you will see the error in English.

    Thank you again for this tutorial, it helped me A LOT.

  47. Anne-Laure

    Hi I’m having an issue when I try running installer.php I get a 403 Error message. Any ideas what is happenning?

  48. AKG

    Everything went correctly, but i ma not able to login to dashboard of my new copied website

  49. Eddie

    Hi,
    Everything was going smoothly. I was on step 4and uploaded my site. It gave me an “Error Establishing A Database Connection”. I realised my dtabase name was slightly diifferent from the one on my site. I went into phpmyadmin on WAMP and created a new database with the correct name and copied the old database data on the new database. Now the wordpress site on my PC says ” We were able to connect to the database server (which means your username and password is okay) but not able to select the xxxxxx database.
    I restarted my PC and my WP site is blank. Is there anyway I can salvage this? I still have access to WAMP.
    Regards
    Eddie

    • WPBeginner Support

      It could likely be due to how the content was copied, you would want to edit your wp-config file to point to the correct database for your content to be on your site again.

      管理者

  50. JOSHUA

    Thanks it worked very well

    • WPBeginner Support

      Glad our article could help :)

      管理者

  51. Donald

    Things were going smoothly moving form local host to my domain until Step 1 of 4: Deployment
    You are migrating site from the PHP 7.2.11 to the PHP 5.6.38.
    If this servers PHP version is different to the PHP version of your package was created it might cause problems with proper functioning of your website and/or plugins and themes.
    Note: This warning will still show if you choose option #2 and open_basedir is enabled, but should allow the installer to run properly. Please work with your hosting provider or server administrator to set this up correctly.
    Wrote to host but wonder if I can ignore this and just go?

    • WPBeginner Support

      We would recommend reaching out to your hosting provider as some of your plugins/themes may require the newer php and your host should have the ability to help you update the PHP being used for the server.

      管理者

返信を残す

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