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

    Hi guys tearing my hair out. Original site on local server works well on local server. The live site on the remote server works well on the live server. When I move it to the local host it gives me this php error when installing plugins… i have read all blogs and issue not resolved for me. I tried both the duplicator and manual process but still get this php error :(

    Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in C:\wamp\www\missflairword\wp-includes\update.php on line 457

    • WPBeginner Support

      Seems like your localhost install is unable to connect to the internet. This could happen if Apache is blocked by your network’s firewall. You need to allow apache access to the internet from your windows firewall settings.

      管理者

  3. Checo

    Wow guys, this Tutorial was excellent, precise and very well detailed!!! Thank you very much, you helped me publish my first locally developed wordpress site right on the deadline without any mistakes. Best regards!

  4. Sam

    someone should tell me when you see a better word for Genius, because that is what you guys are. your tutorials has made me a lil’genius.

    Thanks guys

  5. Silvia

    Your tut is the best! I tried several times before and never was able to do it until now! genius! thanks!

  6. Angela

    What a LIFESAVER! I tried several other peoples suggestions and different plug-ins that are supposed to make it easy… Nothing worked until this! Thank you!

  7. gaurav Royal

    thankx a lot .. its working

  8. Ken

    I’ve followed all the steps given. When I access the live site I get everything I can without changing the media URLs.
    I can’t do that yet because I can’t login to the admin area. i get the following errors on the screen above the login box and valid logins are not accepted (checked with myPHP):

    Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /home/cgbookss/public_html/wp-includes/functions.php:1) in /home/cgbookss/public_html/wp-content/plugins/event-commerce-wp-event-calendar/evntgen-scbooking.php on line 519

    Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/cgbookss/public_html/wp-includes/functions.php:1) in /home/cgbookss/public_html/wp-content/plugins/event-commerce-wp-event-calendar/evntgen-scbooking.php on line 519

    Warning: Cannot modify header information – headers already sent by (output started at /home/cgbookss/public_html/wp-includes/functions.php:1) in /home/cgbookss/public_html/wp-login.php on line 424

    Warning: Cannot modify header information – headers already sent by (output started at /home/cgbookss/public_html/wp-includes/functions.php:1) in /home/cgbookss/public_html/wp-login.php on line 437

    Have you any suggestions?

  9. geoff

    can’t seem to get the phpmyadmin to work locally. you seem to haven’t put that in, and the link you have provided to “explain” how to use the phpmyadmin, refers to that running on c panel not locally.
    it would be good if you could explain, running phpmyadmin locally, through webmatrix for explain.

  10. rodrigo

    Was a great help, this tutorial. I had some 500 server errors fixed after editing the htaccess.php file. But I still have no access to the wp-admin dashboard? Anyone got the same emptiness on the backend link? what could be the fix?

  11. Charlie

    I have the same exact issue. Trying to find a solution for this but it seems like one isn’t mentioned here on this page, or in the comments.

  12. hokka

    I have troubles with my new site address. Everything else seems to work just fine.

    In phpmyadmin if I change the siteurl to direct the site to the correct subfolder, the website content disappears when the “home” option value is correct. Then again if I also change my home-value into the same address as the files are in, meaning the same address as siteurl, then I see the content but the address is not what I wanted it to be. I’ve also tried to use Velvet Blues -plugin but nothing happened.

    In my case the WordPress url is different from website url, so basically the changes won’t affect in admin panel Settings.

    Thanks for this great tutorial.

  13. JulioC

    Not sure if was very lucky but in my case I followed all steps and everything worked perfect!!!

    Thanks a lot!

  14. WPBeginner Staff

    The other part of making backups is restoring your sites from backups. cPanel does not make that part easy. Configurations may differ from one site to another. Sometimes user may even want to move to a web host that does not offer cPanel. For more advanced users who can troubleshoot these issues, cPanel backups can be a good option. But for most beginners it can be difficult. There are other backup options as well, take a look at our pick of 7 Best WordPress Backup plugins.

  15. Joey

    BackupBuddy seems to be a bit of an overpriced option when you can simply back up a WP site via Cpanel … are there any other benefits for using BackupBuddy when backing up via Cpanel is easy and free?

  16. jeroen

    Hi, I’m still struggling withe the migration of my local hosted WP multisite to a webserver. Replaced all the urls’s as far as I can tell but still the navigation doens’t work. Ik can enter the root which shows the homepage correctle but clicking a navigation link I get this error.
    “Not Found
    The requested URL /index.php was not found on this server.”

    Although the paths of the menu links(shown on hover) look fine. Any Idea where to go look to solve this? Thanks in advance.

  17. Tim

    After importing the database, I tried to do step 5. However, when I click on wp_options, i do not have an edit spot. It says “current selection does not contain a unique column. Grid edit, checkbox, edit, copy and delete features are not available.”
    Why is this happening?
    Thank you

  18. nirali

    hello can anyone help me.. there is a image path error in hosting.. how to solve it?

  19. WPBeginner Staff

    You can find out your live site’s database information by vising phpMyAdmin through cpanel. Notice the database name, mysql host, mysql username, and password and then fill in that information in your live site’s wp-config.php file.

    On your local site go to localhost/phpmyadmin/ to find out the correct database name.

  20. allison ranieri

    I completed all the steps and now my live site just says Error Establishing database connection and I cannot access my localhost at all – it is just a white screen. When in Step 6 it said to change your config.php file I accidentally changed the info in my local config file instead of the one updated through MySql but I figured that one out and changed the info back in my local file to what I thought it was before, but now when I go to localhost/wordpress (where I had previously gone before) it just shows a white screen. And my live site says Error Establishing Database Connection. So confused. Any help would be lovely.

  21. Prabhjot kaur

    I want to ask something as if i upload my site as a live site then edit link will appear or not ?that are already shown in localserver.

  22. Enoch Ramal

    Almost there but I get this…

    Parse error: syntax error, unexpected ‘define’ (T_STRING) in /home/klbensonsk/public_html/wp-config.php on line 31

  23. vanyoattila

    Hi, I have uploaded my first page with the help of this post and it has been working perfect since than. Now I have a problem with an other site. I went through all the critical points again and again but I have always the same issue. The site is working (with broken links) but I can’t log in to the admin site. I changed the database at phpmyadmin and the wp-config.php file also. They have the same username and same password so they have the same datas and yet I have the problem. How does it possible?

  24. Sybrin

    Hi there, my WordPress website has just moved to a new ip address, and I followed the steps at the bottom to fix broken links. It said that it fixed them but my website is still not displaying properly. Some images are displaying as broken images and some image sliders are not showing up at all. The website also seems a hell of a lot slower. How do I fix this all?

  25. Sybrin

    Hi there, my WordPress website has just moved to a new ip address, and I followed the steps at the bottom to fix broken links. It said that it fixed them but my website is still not displaying properly. Some images are displaying as broken images and some image sliders are not showing up at all. The website also seems a hell of a lot slower. How do I fix this all?

  26. vinamr

    Do i have to install WordPress through my cpanel? or do i straight away upload the files through ftp?

  27. up

    I have had a hard time finding an answer to a simple question: Do you upload the wordpress folder or the contents of the wordpress folder to public_html

  28. Krizia Bianca

    Thank you so much, this tutorial works fine for me! I uploaded my wordpress to a live site. And it run smoothly! :D

  29. GSR

    Hi. I’ve followed all the steps (I think so) and now I no longer have the error message about not having a database connection – instead I now just have a blank white screen. Can you tell me where I’ve gone wrong?

  30. Malik Talib Hussain

    Thanks a lot for such a descriptive guide,I have uploaded my site successfully using this guide.

  31. John

    Thanks for sharing this. It worked for me at a go.

  32. Daniel

    Is it normal that in the step 6, after I updated the wp-config.php file, instead of appearing the homepage of the site (as I viewed in localhost) it appears the installation process?

    PD: I have completed all the previous steps.

  33. duke

    Very easy, some tips to remember, i have to wait a while to transfer local wordpress site to public_html because of the number of themes i am using.

    I forget to grant access to the db user, so i did it and it worked.

    All steps is important, the sql command works great.

    I rename .htaccess to .htaccess_old and it works

    then just update and save permalinks.

    Very easy fix for everything.

  34. BJH

    Thanks for the tutorial.

    Unfortunately it doesn’t work for me. I think that there are so many variables with something like this. Your steps work for you, with your scenario, but for someone else it can be very easy to end up with something else which stops the process working. Migrating wordpress is a real chore in my experience.

    • Lloyd

      I have 30+ years of IT experience including design of large 1000+ user infrastructure, plus extensive hands on program coding.

      I have used WordPress to create one site and I am really happy with the result.

      However, I would have to say that for anything other than simply creating a single production site, WordPress is unbelievably complicated to use for anyone contemplating creating multiple sites, or creating a dev to prod environment. Absolute unmitigated nightmare.

      Is there is anything that the WordPress developers could do to make the actual architecture easier to understand and use that would be great.

  35. Matthew

    Hi,
    Great tutorial, thanks a bunch. I’m doing my first wp redesign for a client who already has a well established blog with posts images etc. I’ve exported all of her data into the local site, designed a new theme with new pages etc. While importing her posts locally and selecting the option to download attachments, the posts have appeared but none of the images and I’m about ready to upload everything to her server.

    Do I just upload the theme files and in doing so will my modifications be present? Or do I need to upload everything as this tutorial suggests. She has over 2000 posts, an image for each, and I’ve got new images, pages, and layout.

    If you can either make a tutorial for moving/importing a redesigned or newly designed blog into an existing blog with posts pages etc. Or point me in the right direction, That would be great.

    The client won’t give me access to the server itself and insists on doing the ftp himself because he saw on the news that he could get his identity stolen or some such nonsense. I explained that he could set access restrictions on a separate login but he insists he do it.

    And the don’t want me working directly on the site because they’re worried about downtime while I update and build it.

    You can’t always be picky when it come to clients and I don’t really have a choice I’m just about done.

  36. Emilio

    Thank you for the tutorial!
    But now that I’ve imported all my site, the logo isn’t showing and my Dashboard doesn’t show the theme functions, I run Divi from Elegant Themes.

  37. Martin

    I’ve imported my database and wordpress install, but none of my pages are showing when I login to the admin panel? I’ve activated the theme, but no pages? Please help!

  38. WPBeginner Staff

    Please go to the admin area -> Settings and make sure that you are using the correct Site Address and WordPress Address.

  39. Christine

    Good day.
    Thanks for this easy to follow tutorial.
    I managed all the steps and my site seems to be connected, except that my theme is missing. All the files are in place with their stylesheets, but the site seems to be displaying plain html.Has anyone else experienced this?
    Not sure how to go about fixing it.

  40. tawanda masvanhise

    thanks for the great tutorial! l have a problem after doing all the steps; my website is displaying
    Error establishing a database connection
    how can i solve this problem?

  41. Claudio Henrique Amorim

    Thank you so much.
    I’m definitely a wp beginner and this post was just of an wonderful help. Everything went on flawless.
    I’m really enjoying working as a web designer and wp developer. And I hope I’ll get more and more of these kind of jobs, and more challenging ones. I learned so much while doing this very first one.
    Thank you again.

  42. WPBeginner Staff

    Seems like your domain is not yet ready or you have uploaded WordPress in the wrong directory on your web server. Please contact your web hosting provider for support.

  43. Elliot Lee

    HELP!!

    I have completed step 1 to step 6, but my site still displays:

    Future home of something quite cool.
    If you’re the site owner, log in to launch this site
    If you are a visitor, check back soon.

    Why is this happening???

  44. Elliot Lee

    I have completed step 1 to step 6, but my website still displays:

    Future home of something quite cool.
    If you’re the site owner, log in to launch this site
    If you are a visitor, check back soon.

    What could be the problem???

  45. Elliot Lee

    HELP!!! Why am I receiving this error in step 4?

    SQL query:


    — Database: `wordpress`

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

    — Table structure for table `wp_commentmeta`

    CREATE TABLE `wp_commentmeta` (

    `meta_id` bigint( 20 ) unsigned NOT NULL AUTO_INCREMENT ,
    `comment_id` bigint( 20 ) unsigned NOT NULL DEFAULT ‘0’,
    `meta_key` varchar( 255 ) DEFAULT NULL ,
    `meta_value` longtext,
    PRIMARY KEY ( `meta_id` ) ,
    KEY `comment_id` ( `comment_id` ) ,
    KEY `meta_key` ( `meta_key` ) ) ENGINE = InnoDB DEFAULT CHARSET = utf8 AUTO_INCREMENT =1;

    MySQL said:

    #1046 – No database selected

    • WPBeginner Staff

      Before you can run this query you need to select the database you want to run it on. If you are using phpMyAdmin then select the database and then click on the SQL to run the query.

  46. Thinh

    Hi, thanks for a easy guide.

    But I wonder how I can export to live when WordPress is already installed live? I redesigned the website from scratch, only thing is that I used the same theme. What would be the best way to get this live?

    Thanks, keep up the good work!

  47. PixelstoLife

    Great tutorial, thanks for the help.
    Like some others, the up_user updates don’t work and the links on my site are still calling the localhost. I’ve also been booted out as the admin user and cannot login to update permalinks etc.
    I’ve found a tutorial to re-instate an admin user via phpmyadmin so I’ll give that a go and see if I can get back in!
    Cheers

  48. Ben

    Great guide, but having a little bit of trouble and wondering if you can help.

    I’ve done everything above, but when I try to go on to the …/wp-admin page I get this: ‘Warning: require(/home/username/public_html/wp-includes/pomo/mo.php): failed to open stream: No such file or directory in /home/username/public_html/wp-settings.php on line 76’

    Any ideas?

  49. lokesh

    I m facing a prlessphp fatal error: load error: failed to find /home1/eminenta/public_html/server/Suman_Creations/wp-content/themes/theme49413/bootstrap/less/bootstrap.lesslessphp fatal error: load error: failed to find /home1/eminenta/public_html/server/Suman_Creations/wp-content/themes/theme49413/style.less oblem when i move my website from local server to live server

返信を残す

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