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

WindowsコンピューターにWordPressをインストールする方法(2つの方法)

長年WordPressでウェブサイトを構築してきた経験から、ローカルのWordPressをコンピュータにセットアップすることがいかに重要かを学びました。

WordPress を個人のマシンに置くことで、本番サイトを危険にさらすことなく新機能を試したり、WordPress 開発に深く入り込んだり、本番前にウェブサイト全体を構築したりすることができます。WordPressプロジェクト専用のサンドボックスを持つようなものです。

Windowsユーザーなら、WordPressをローカルにセットアップする方法は数多くある。しかし、私たちは最も簡単な2つの方法に絞りました。このガイドでは、どのバージョンを使っていても、WindowsコンピューターにWordPressを簡単にインストールする方法をご紹介します。

How to Install WordPress on a Windows computer

なぜWindowsにWordPressをインストールすべきなのか?

Windowsユーザーであれば、WordPressをローカルにインストールすることでいくつかのメリットがある。

ローカルのWordPressインストールは、本番のウェブサイトに影響を与えないテスト環境を作成します。ローカルサーバーまたはローカルホストと呼ばれるこのセットアップは、WordPressの個人的な遊び場です。

WordPressの開発者は、定期的にローカルインストールを仕事に使っている。例えば、新しいプラグインやテーマの実験に使ったり、Gutenbergブロックエディタにアップデートする前にサイトをテストしたりするためです。

しかし、それはプロだけのものではありません。WordPressを初めて使うのであれば、ローカルのセットアップは学習に最適です。機能を調べたり、テーマやプラグインをテストしたり、ライブサイトを壊す心配をせずに自由に実験することができます。

WindowsでWordPressをローカルにインストールした場合、自分だけがサイトを見ることができることに注意することが重要だ。公開用のウェブサイトを作成したい場合は、ドメイン名と ウェブホスティングが必要です。

技術的には、XAMPPを使ってWindowsにWordPressをインストールすることは可能で、以前チュートリアルを書きました。

とはいえ、XAMPPよりもさらに簡単なWordPressのローカル環境を構築する方法を2つ見つけました。以下のリンクをクリックして、興味のある方法に進んでください:

方法1:Studioを使用してWindowsにWordPressをインストールする(迅速かつ簡単)

最初の方法では、Studioを使う。これは、WordPress.comを管理・運営しているAutomattic社製のローカルWordPressソフトウェアで、WordPressソフトウェアをベースにしたウェブサイト・ビルダーである。

この方法を最初に説明しよう。なぜなら、この方法の方がはるかに早く、シンプルであるため、全くの初心者に最適だからだ。

まず、Studio by WordPress.comのウェブサイトを開きます。そして、「Download for Windows」ボタンをクリックします。

Downloading Studio by WordPress.com

それが済んだら、ダウンロードしたファイルを開いてインストールを開始する。

アプリケーションがインストールされていることを示すポップアップウィンドウが表示されます。

Waiting for Studio by WordPress.com to install

これで、最初のサイトを追加できる。

これを行うには、新規ローカル・ワードプレス・サイト名を入力し、「サイトを追加」をクリックするだけです。サイト名は、そのサイトを簡単に識別できるものであれば、どのような名前でもかまいません。

Adding a local site to Studio by WordPress.com

ローカルのWordPressサイトのダッシュボードが表示されるはずです。

WordPressのダッシュボードにアクセスしてウェブサイトを編集するには、右上の「Start」ボタンをクリックするだけです。これで、ローカルウェブサイトにパソコンからアクセスできるようになります。

Launching a Studio by WordPress.com local website

Start」ボタンが「Running」に変わったら、ページ左上の「WP Admin」リンクをクリックする。

これでローカルのWordPress管理ページに移動します。

Logging in to the WordPress admin of a Studio by WordPress.com local website

これで設定はほぼ完了だ。ローカルのウェブサイトを構築する際に必要と思われるその他の設定を探ってみよう。

概要」タブにあるように、StudioダッシュボードからすぐにWordPressフルサイトエディタメニューにアクセスできます。また、’File explorer’をクリックしてWordPressウェブサイトのフォルダやファイルを開いたり、’Terminal’をクリックしてWP-CLIを使用してウェブサイトを管理することもできます。

共有」タブに切り替えると、WordPress.comアカウントにログインし、ローカルのウェブサイトをクローンしてWordPress.comのサーバーにアップロードすることができます。これにより、クローンサイトは一時的にオンラインになり、クライアントやチームメンバーとデモサイトを共有するのに便利です。

Sharing a Studio by WordPress.com local website

Studio を使用する代わりに、ブラウザからローカル Web サイトに直接ログインしたい場合があります。その場合、wp-adminの認証情報を知っておく必要があります。

これらを見つけるには、「設定」タブに切り替えて、ワードプレスの管理者ユーザー名、パスワード、ログインURLをそこで見つけることができる。

Locating a Studio by WordPress.com admin credentials

アシスタント」ボタンをクリックすれば、ビルトインAIチャットボットとコミュニケーションをとることができる。

ここでは、すべてのプラグインを一度に更新したり、WordPressのコアバージョンを更新したり、カスタムブロックのコードを作成したりといった作業をStudioに依頼することができます。

Using the Studio by WordPress.com AI assistant

ローカルサイトでの作業が終わったら、右上の「実行中」ボタンにマウスオーバーし、「停止」と表示されるまで待つ。

そして、ウェブサイトを停止するボタンをクリックする。

Stopping a Studio by WordPress.com local website

Studioの欠点は、WordPressの環境を自分好みに設定できないことです。つまり、あらかじめ選択されているPHPバージョン、ウェブサーバー、データベースを使用する必要があります。

これは、特定のサーバー構成でウェブサイトやプラグインをテストする必要がある場合、欠点になる可能性があります。

ローカルのWordPress環境をよりコントロールする必要がある場合、またはローカルのセットアップを特定のライブサーバーの設定に合わせる必要がある場合は、ローカルWPを使用する次の方法をチェックアウトすることができます。

方法2:ローカルWPを使ってWindowsにWordPressをインストールする(よりカスタマイズ可能)

まず、Local WPソフトウェアをダウンロードし、Windowsコンピューターにインストールする必要があります。ローカルWPのサイトに行き、「無料でダウンロード」ボタンをクリックするだけです。

Local WP landing page

その後、プラットフォームを選択するポップアップウィンドウが表示されます。ドロップダウンメニューから「Windows」を選択してください。

次に、姓名、勤務先のEメールアドレス、電話番号などの詳細情報を入力してソフトウェアをダウンロードします。

Inserting some information to download Local WP

詳細を入力したら、’Get it Now’ボタンをクリックするだけです。

その後、ソフトウェアは自動的にコンピュータにダウンロードされます。それ以外の場合は、「ここをクリック」リンクをクリックしてダウンロードを開始することができます。

Waiting to download Local WP

ファイルをダウンロードしたら、セットアップウィザードを起動します。

ここで、ソフトウェアを全ユーザーにインストールするか、あなただけにインストールするかを選択する必要があります。

オプションを選択したら、「次へ」ボタンをクリックします。

Choose user profiles for software

次のステップでは、ソフトウェアをインストールする「インストール先フォルダー」を選択できます。

参照」ボタンをクリックしてパスを設定し、「インストール」ボタンをクリックするだけです。

Select your installation path

ローカルWPソフトウェアがWindowsコンピューターにインストールされます。

完了したら、セットアップ・ウィザードで「ローカルで実行」チェックボックスをチェックし、「完了」ボタンをクリックします。

Run local software

ソフトウェアがWindows端末上で起動します。

次のステップは、新しいローカルウェブサイトを追加することです。そのためには、一番下にあるプラス「+」ボタンをクリックするだけです。

Add a new local site

その後、ローカル・ソフトウェアでサイトを作成することができる。

新規サイトを作成する」オプションを選択し、「続ける」ボタンをクリックします。ブループリントまたは既存のウェブサイトファイルからサイトを作成するオプションもありますが、デモンストレーションのために最初のオプションを使用します。

Creating a new local WordPress site with Local WP

次に、「My WordPress Website」のように、ローカルウェブサイトの名前を入力します。

また、ローカルサイトのドメインとローカルサイトのパスを入力できる詳細オプションもあります。デフォルトでは、ドメインはウェブサイトのタイトルを使用しますが、ダッシュで区切られます。

完了したら、’Continue’ボタンをクリックするだけです。

Naming the new local WordPress site with Local WP

その後、ローカルサイトの環境を選択する必要がある。

Preferred’環境を使用すると、ソフトウェアが自動的にPHPバージョン、Webサーバー、MySQLバージョンを選択します。一方、’カスタム’を選択し、環境の詳細を入力することもできます。

Local WPは最新のPHPバージョンを提供します。ウェブサーバーは、NginxまたはApacheから選択できます。また、データベースはMySQLまたはMariaDBから選択できます。

PHP、ウェブサーバー、データベースのバージョンによっては、正しく動作させるためにいくつかの依存関係をダウンロードする必要があることに注意してください。

Configuring the local WordPress environment with Local WP

次に、ローカルウェブサイト用のWordPressユーザー名とパスワードを入力します。さらに、すべてのメール通知を受け取るWordPressのメールアドレスを選択するオプションもあります。

その他に、WordPressのマルチサイト・ネットワークを持っているかどうかを尋ねる詳細オプションがある。そうでない場合は、「いいえ」をクリックしてください。

これらの詳細を入力したら、「サイトを追加」ボタンをクリックするだけです。

Creating local WordPress site credentials with Local WP

ソフトウェアがWordPressをインストールし、サイトを立ち上げます。

ローカルのウェブサイトを立ち上げるには、右上にある「Start site」ボタンをクリックする。

Launching the new local WordPress site made with Local WP

次に、「WP Admin」ボタンをクリックすると、WordPressの管理者ログイン・ページが表示されます。

ローカルのウェブサイトを設定する際に入力したユーザー名とパスワードを入力し、「ログイン」ボタンをクリックするだけです。

Login page example

これで、Windowsコンピューターでローカルサイトを編集できるようになりました。

完了したら、「サイトを停止」ボタンをクリックして、Local WPソフトウェアからサイトを停止することを忘れないでください。

Stopping the local WordPress site with Local WP

プロからのアドバイス: ログインプロセスをスキップしたい場合は、Local WPでワンクリック管理者ログインを有効にすることができます。

これを行うには、ローカルWPダッシュボードに戻り、’One-click admin’ボタンを’On’と表示されるまで切り替えます。次に、ドロップダウンメニューで、このワンクリック・ログイン機能を使用できる管理ユーザーを選択します。

Enabling one-click admin login with Local WP

代替案WordPress Playgroundを使ってテーマやプラグインなどをテストする

WordPress Playgroundは、ウェブブラウザ上で直接WordPressを試すことができる革新的なツールです。実際のウェブサイトに影響を与えることなく、新しいWordPressテーマ、プラグイン、機能を試すことができる仮想のサンドボックスです。

WordPress Playgroundは、いくつかの重要な点で、ローカルのWordPress環境とは異なります。

まず、永久的なローカル・セットアップとは異なり、コンピューターにインストールする必要がなく、使用するたびにリセットされる。ローカル・インストールが1台のコンピューターに縛られるのに対し、ブラウザーがあればどのデバイスからでもアクセスできる。

WordPress Playgroundは迅速なテストや学習に理想的ですが、Windowsコンピュータ上のローカルWordPress環境は、長期的な開発プロジェクトにより柔軟性を提供します。

詳しくは、ブラウザでWordPress Playgroundを使う方法をご覧ください。

WindowsコンピュータにWordPressをインストールしました。

あなたのコンピューターにWordPressを入れたら、できることがいくつかあります:

この記事で、WindowsコンピュータにWordPressをローカルにインストールする方法をご理解いただけたでしょうか。Macコンピュータに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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

アバター

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.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

766件のコメントLeave a Reply

  1. muya chris

    thank you for this article

  2. young baykay

    i thought this was to install WordPress as an app on windows not knowing its just another way of creating a WordPress site. buh i have to say that its really interesting and i learn’t something new and the whole process went well..(thumbs up)

  3. Miha

    This has made my day. Thank you!

  4. Hena

    Oh!! you are awesome!! thank you very much :)

  5. Abhishek sharma

    Thanku very much it was very helpful.

  6. Diego Marrs-Segura

    What if you already have a WordPress account and site but you’re still required to fill in the installation form?

  7. Jean Tildesley

    Very helpful article, but when I got to setting up a database for WordPress and clicked on phpmyadmin as instructed, it opened up a localhost page with no content. Can you help please?
    Regards,

  8. Judy H

    Everything installed correctly and I set up a practice web page. After working on it for awhile I left it for several days. When I attempted to log in to the WP admin site for the test web page, it wouldn’t recognize my password. Any ideas on why this happened or how to recover/reset the password?

    Thanks!

  9. Perfect ttorial

    thank you very much for this perfect tutorial….all installin done…..now will try the creation

  10. Sarah Alyea

    Everything worked fantastic. Until I tried to upload the Divy theme and DivyBuilder plugin.

    Received this message for both: The uploaded file exceeds the upload_max_filesize directive in php.ini.

    What to do? Any advice?

  11. tommyt

    awesome post,
    worked like clockwork,
    thanks so much for this great post.
    Tom

  12. Zaeem Shah

    your tutorial was amazing before this tutorial i didnt know about even how to download wordpress on local host after that i am able to download and the main thing is that i am able and got expert in designing a professional website by wordpress thanksss aloot u r doing good job God bless you

  13. Shana

    Followed directions and I am getting a

    “No webpage was found for the web address: http://localhost/phpmyadmin/
    Search Google for localhost phpmyadmin
    HTTP ERROR 404
    error.”
    any ideas?

    • Shana

      This problem is fixed.
      Had to change the port listeners in Apache httpd.conf to port 8080.
      There are 3 listeners to change.
      Also must change the port preference in >Tools>Use a port other than 80.
      Once clicked, it will automatically change it to 8080, or whatever port you have changed to. I suggest using 8080.

      Hope this helps!

      • vasudevan

        thanks! that helped me. you coul have also mentioned that the tools is accessed by right clicking the icon!

  14. Bala

    easy to follow the instruction, my test site on my desktop was up and running in 15 min. Thanks

  15. Philip Venable

    After Wamp installed I attempted to open phpMyAdmin and received this message in Chrome: This localhost page can’t be found

    No webpage was found for the web address: http://localhost/phpmyadmin
    HTTP ERROR 404

    • Shana

      try changing the port in Apache.

    • Claire

      I am having this same error, any solutions yet please

  16. Megha D R

    It was very helpfull… The steps and links mentioned in the article are perfect….
    Thank you

  17. EIRINI TZIMA

    Hello guys, great job!
    I followed your advice step by step up to this point: Now open your web browser and go to http://localhost/mysite/
    The WordPress database setup will start automatically.
    Although the http://localhost/mysite/ seems ok and shows that
    ndex of /mysite

    [ICO] Name Last modified Size Description
    [PARENTDIR] Parent Directory –
    [DIR] __MACOSX/ 2017-03-11 22:45 –
    [DIR] betheme-premium-word..> 2017-03-11 22:45 –
    Apache/2.4.23 (Win32) PHP/5.6.25 Server at localhost Port 80

    WordPress itself doesn’t start automatically so now i am stuck here.
    Any suggestions?
    Thank you so much in advance!
    BR,
    Eirini

    • Shana

      I am having the same issue.
      Any ideas?

    • Marc De Bodt

      I’m also getting the same issue… :-(

  18. Hanif Fadilah

    Really useful tutorial, exactly what i was looking for, thank you very much :)

  19. Cliff

    Fantastic tutorial and so easy to follow.

    Now to create my test website!!

    Thanks

  20. Reg

    Can I lift a WordPress site I already have, along with its theme, widgets etc, and put that onto my local computer and then process that WordPress website into another theme. My main reason for having an interest in this is that when I tried to migrate my WordPress site to a new theme it went wrong. Thankfully I had backed it up and so I could just do a restore. But I would like to move the content into a different theme.

  21. Sirmee

    Thank you so much for the good work. it was easy and straight to the point. More grease to your elbow

  22. Stewart

    Fantastic guide. Simple and easy to follow. I now have a test WP site. Many thanks

  23. Olman

    I solved my problems!

    Note that my first problem was that when copying wordpress into wamp, I only copied wp-admin and not the entire wordpress folder.

    The second problem (“Error establishing connection”) was the the form had auto-filled a password (“Password”) and so was actually not blank.

  24. Olman

    I am receiving the following error message:

    “Error establishing a database connection”

    Any advice on correcting this?

  25. Gary

    I am trying to upload a new theme from a zip file and keep getting this error “The uploaded file exceeds the upload_max_filesize directive in php.ini.” I opened the php.ini from within Wampserver php tools and changed it to 25MB but still same error. Please help

  26. Ed

    Thank you for this article. Very helpful and informational!

    We want to build a WordPress-based Intranet. Is this the process for installing WordPress on a local server first, then using the All-In-One Intranet plugin after?

  27. omar

    I don’t have WAMP or anything like that, but I have apache, php and mysql installed and it worked for development like that for a while already and it works fine, but when I am trying to install WordPress 4.7.2 on step 2 i get the HTTP 500 status.

    The 127.0.0.1 page isn’t working

    127.0.0.1 is currently unable to handle this request.
    HTTP ERROR 500

    I have PHP 7.0.8.

    Any thoughts?

  28. Collins

    This was helpful. But i have a problem. Anytime i tried access my dashboard (wp-admin). There is always a note. It says “Sorry you are not allowed to access this page”. I need your help to ratify the situation. Please

    • WPBeginner Support

      Hi Collins,

      First, make sure you are accessing /wp-admin/ and not a page inside wp-admin like /wp-admin/some-page.php. If the problem persists, then follow our WordPress troubleshooting guide to figure out whats causing the issue and how to fix it.

      Admin

  29. Kevin

    Great Tutorial, but i have a quick question.

    How would i set up a local copy of a wordpress site from a backup? ive offered to help with someones site and i want to install a copy locally which will include a ‘full’ site, webpages and database, to help make the development alot quicker than just uploading stuff to the online test server every time.

  30. Nev Lime

    This was a great help

    Thank you

  31. Pedro

    When I click on phpMyAdmin, it asks for a username and password. Where do I get this information from?
    Thank you.
    Pedro

  32. Lyle Peterson

    Where does the installation program look for VCRUNTIME140.dll? I have it on my computer but the program won’t start because that .dll is not installed.

  33. Alpheus

    hello guys, i find it hard to download the wordpress any one with a clue pls.

  34. sean burns

    I’m stuck here-
    Installing WordPress on Windows with WAMP
    Download a copy of WordPress from WordPress.org. Extract the zip file and copy the wordpress folder. Go to C:\wamp\www (when I paste this to a browser nothing happens) and paste wordpress folder there. You can rename the wordpress folder to anything you want for example mysite, wpbeginner, etc.

    • Alexander Stevenson

      I hope you solved you problem by now, but in case anyone else has an issue here’s what happened.

      I highly recommend against using a browser to access that. That is specifically storage space on your computer. If you go to My Computer you should see Local Disk (C:). This is what the C:\ means. When you open the disk (by double-clicking on it) you should see a list of folders such as Program Files, Windows, and wamp. Open the wamp folder and look for a folder named www. Open that folder, and then paste the wordpress folder in it.

  35. Martina

    thanks a lottttttttt. Now I can make my web. I Love you guys.
    I don’t know why people can’t help, it does not matter I’m glad I found you. :)

    • WPBeginner Support

      Hi Martina,

      You are welcome :) we are glad you find WPBeginner helpful. Don’t forget to join us on Twitter for more WordPress tips and tutorials.

      Admin

  36. Seth Solanki

    HI, I’ve installed WAMP64 and WordPress. I can add pages in WordPress but cannot edit them. I can create new pages and change themes but cannot add or edit any page content. Is this possible?

  37. Carrie

    I have a stupid question. I took a beginners wordpress class which totally sucked!

    Anyway, they had me use Microsoft webmatrix instead of WAMP. The webmatrix does not work correctly. Could I install WAMP or must I now use MS webmatrix? If I do this, will I use the project I was working on for the class?

    I totally lost….

    Thanks

  38. Younes Ouahrani

    when i click phpmyadmin its shows that im not connected on the browser , any help guys ?

  39. Poonam Paul

    My WAMP install went smoothly and created two databases correctly. There are 2 databases and 2 config.php files in my wordpress website. The path for both databases are example.com/httpdocs/wp-config.php and example.com/httpdocs/wordpress/wp-config.php. Both databases have different DB_NAME, DB_USER, DB_PASSWORD, butDB_HOST (IP address) is same.I install httpdocs folder into the www folder properly. I enter db_host in both databases are localhost.
    Now when i view the site and open localhost/wordpress/wp-admin, the error is…
    This site can’t be reached…localhost refused to connect…ERR_CONNECTION_REFUSED

  40. Gobind Singh

    Thanks Sir!! You made it very clear and simple.. I have been trying to do this from a long time. But today I found this article and did it in a flash. I’m really grateful. Thanks.

  41. Divine

    You guys are the best..though I had issues installing my WAMPserver but I managed to fix it. Sincerely this article helped me as i was told by a friend to pay thousands of Nigeria naira before he can help me. More of these guys!!!

  42. Anatole

    You made it very clear and simple to follow. Worked a treat and I didn’t even need to watch a video online. Many thanks.

  43. Alexander

    Thanks for the effort you put into this tutorial. Finally my first wordpress test blog is running on wamp.

  44. Geoffrey

    My WAMP instal went smoothly (updated the Visial C++ packages) ..created a database called wordpress
    My wordpress instal into the www folder went smoothly

    When I open localhost/wordpress/wp=admin I see that the Twenty Fifteen theme is active.

    But wen I view the site or sample page….I don’t see any evidence that the css of the theme has been invoked…just a very plain looking page

    Yes, this is all new to me….I’ve missed something obvious I hope…what did I miss doing>

  45. harish negi

    how to test vaultpress backup in the local wordpress?

  46. steph

    hi, may i know how could actually installl phpMyAdmin? Where to get username and password to login in. Thanks

  47. Sthe

    Can I create a wp website while offline?

    • WPBeginner Support

      Yes you can. However, you may need an internet connection to get help or check out tutorials.

      Admin

  48. Jose Luis

    Hello, just thought i’d let you know that in order to access the localhost you can use root as user and leave the password field in blank.
    Thanx for this article ;-)

  49. mikmoken

    Thanks for this instructions and tutorials on how to install wordpress using wamp. It helps a lot for us beginners.

  50. MelR

    Thanks guys at long last and 70 years of age I’ve achieved it! Thanks to you guys cheers!!

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.