WEB NOTE
WEB関連の備忘録

初心者におすすめ!簡単にWordPressのローカル開発環境を作れるLocal by Flywheelを解説

WordPress

Local by Flywheelとは、WordPressサイトを作るのに特化した無料のローカル開発環境構築ソフトです。
WordPressのローカル開発環境は、よくXAMPPや、MAMPが紹介されますが、これらのソフトはもともとApache・MySQL・PHPをローカル環境で動かすソフトです。
それに比べ、Local by FlywheelはWordPressサイト制作に特化しているので、インストールが容易なだけでなく、構築後の管理も簡単なのが魅力です。

Local by Flywheelをダウンロード、インストールする

まずは、Local by Flywheelにアクセスし、「FREE DOWNLOAD!」をクリックします。

次に、インストールするプラットフォーム(Windows、Mac、Linux)を選択します。

選択すると、以下のような名前、メールアドレス、電話番号を入力するフォームが出てきます。
すべて入力する必要がなく、メールアドレスのみ入力すれば大丈夫です。(メールアドレスは、適当で大丈夫です。)

入力が完了すれば、下の「GET IT NOW!」をクリックすればダウンロードがはじまります。

ダウンロードをしたファイルをダブルクリックすればインストールできます。

インストールしたら、Local を起動します。
初回起動時は利用規約の同意が求められますので、同意して次に進みます。
利用規約は英語で書かれています。気になる方は、ページの一番下に日本語訳で引用しておきますので、ご確認ください。

進むと、フィードバックを送信するかどうかの確認のポップアップが出てきます。
英文は以下のように書かれています。

To help make Local as great as can be, we’d love if you turned.
Localを可能な限り素晴らしいものにするために、皆様のご意見をお待ちしております。

With this enabled, Local will automatically send errors and warnings back to the team so we can patch things up!
この機能を有効にすると、Local は自動的にエラーや警告をチームに送り返してくれます。

Turn on Error Reporting
エラー報告を有効にする

ポップアップを閉じれば、次に機能の説明画面が表示されます。
右上の×で閉じて大丈夫です。

以下の画面になれば準備完了です。

Local by Flywheelの使い方

新しいサイトを作成する

準備が完了したら、サイトを作成します。
「CREATE A NEW SITE」もしくは、左下にある+ボタンを押します。

すると、サイトを作成する画面に移動します。
移動したら、真ん中のフォームにサイト名を入力し、右下の「CONTINUE」を押します。

移動すると、次にWordPressのバージョンを設定する画面になります。
特にしていななければ、そのまま右下の「CONTINUE」を押し、ユーザー名、パスワード、メールアドレスの設定画面に移動します。
※ユーザー名は後から変更できないので注意してください。

すべて入力が完了すれば、右下の「ADD SITE」を押し、設定完了です。

サイト管理画面の見方

※1 クリックすると、サイトのフォルダーに移動します。
   WordPressのPHPはファイルは移動後、./app/public に格納されています。

※2 Adminページに移動します。注意、プラグインによるログインページの変更はできませんので、ご注意ください。

※3 作成したサイトを表示します。

※4 ローカルサーバーをスタート、停止します。

※5 Web ServerをApache、Nginxから選択できます。

※6 PHPのバージョンを選択できます。

※7 第三者にローカル状況を共有できるリンクを作成します。生成されるリンク横の「DISABLE」を押すか、Local by Flywheelを閉じるとリンクは無効になります。

Local 利用規約の日本語訳

以下の「同意する」をクリックすることで、お客様はWPEngine, Inc.との間で、ローカルソフトウェア(以下「ソフトウェア」)に関するお客様の権利と義務を定義する契約を締結することになります。この契約は、本利用規約と https://wpengine.com/legal/privacy/ にあるプライバシー ポリシーで構成されています(以下、総称して「本契約」といいます)。本ソフトウェアを使用することにより、お客様は本契約の条項に完全に拘束されることに同意するものとします。お客様は本契約に同意する必要はありませんが、本契約は本ソフトウェアに対する権利を付与する唯一の契約です。本契約に同意しない場合は、本ソフトウェアのすべてのコピーをアンインストールしなければならず、いかなる目的でも本ソフトウェアを使用することはできません。ソフトウェアは、販売ではなく、ライセンスされており、すべての適用可能な著作権およびその他の知的財産権法によって保護されています。

本契約は、拘束力のある仲裁を必要とし、集団訴訟または類似の法的手続きに参加するお客様の能力を制限します。お客様の権利を理解するために第6項を注意深くお読みください。

ライセンス権、制限。本契約の期間中、お客様は、(i)当社が随時お客様に提供する文書に従って、その意図した目的のために本ソフトウェアを使用し、(ii)本契約およびすべての商標、著作権、その他の適用される法的通知を含むことを条件に、本ソフトウェアの修正されていないコピーを作成し、配布することができます。お客様は、本ソフトウェアを違法な目的で使用することはできません。あなたは、第三者にソフトウェアをレンタル、リース、または販売したり、タイムシェアリング、アウトソーシング、またはサービスビューロー環境の一部としてソフトウェアを使用することはできません。ここに明示的に規定されている場合を除き、お客様は、理由の如何を問わず、本ソフトウェアのコピー、翻案、リバースエンジニアリング、逆コンパイル、逆アセンブル、または二次的著作物の作成を行うことはできません。WPEngine, Inc.は、本契約書で明示的にお客様に付与されている場合を除き、すべての権利を留保します。

知的財産。WP Engine またはそのライセンサーは、システム生成データ、ログ、修正、改良、アップグレード、二次的著作物、および前記のいずれかの知的財産権を含む、本ソフトウェアのすべての権利、権原、および利益を所有しており、また所有し続けるものとします。本ソフトウェアにサードパーティ製のソフトウェアが含まれている、または組み込まれている場合、当該ソフトウェアは、当該ソフトウェアに付随するライセンス条件に従うものとします。お客様が当社にフィードバックを提供した場合:当該フィードバックは自由かつ無制限に提供されます。当社は、お客様または他のいかなる人に対しても会計処理を行うことなく、いかなる目的でも当該フィードバックを自由に使用し、開示することができます。また、当社は、当社が本ソフトウェアまたは当社が当該フィードバックに基づいて開発または改善するその他の製品またはサービスに対して行う変更、修正、またはアップグレードとともに、当該フィードバックに関するすべての権利、権原、および利益を所有するものとします。ここで付与された明示的な権利を除き、当社は、当社の知的財産のいかなる権利も明示的か黙示的かを問わず付与しません。

補償。お客様は、上記第1条の違反に関連して第三者が提起した請求または要求に関連して、WP Engineおよびその役員、取締役、代理人、従業員を、あらゆる責任、義務、損失、損害、罰則、罰金、利息、その他の費用(合理的な弁護士費用を含む)から補償し、防御し、損害を与えないものとします。

免責事項。本ソフトウェアは、現状のまま、利用可能な状態で、すべての欠陥をもって提供されています。当社は、商品性、特定目的への適合性、非侵害、中断またはエラーのないサービス、可用性、正確性、および法令、取引の過程、履行の過程、または取引の使用から生じるあらゆる黙示の保証を含むが、これに限定されないあらゆる黙示の保証を、適用される法律で認められる最大限の範囲で、一切の保証を行わず、特にこれを否認します。

責任の制限。(i) 本ソフトウェアまたは本契約に基づく義務に関して、または (ii) かかる損害の可能性について当社が通知を受けていた場合でも、法律で認められている最大限の範囲内で、当社は一切の責任を負いません。上記にもかかわらず、すべての請求に対する当社の最大累計責任は、適用される請求の前6ヶ月間に本契約に基づいてお客様が支払った手数料または100ドルのいずれか大きい方に限定されるものとします。この制限は、契約違反または保証違反、過失、厳格責任、虚偽表示、およびその他の不法行為を含むがこれに限定されないすべての訴因に適用されます。両当事者は、ここに記載された救済および制限が両当事者間のリスクの合理的な配分であることを認識し、同意するものとします。報酬は、本契約で定められたリスクの配分および付随的損害の除外を反映し、これに依拠して設定されます。

紛争解決。本契約は、法の選択規定に関係なく、テキサス州法に準拠します。すべての紛争は、米国仲裁協会の規則に基づく拘束力のある個別の仲裁によって解決されます。仲裁人が下した裁定に対する判決は、管轄権を有する裁判所で下すことができます。適用法の規定にかかわらず、仲裁人は本契約に抵触する損害賠償、救済、または裁定を裁定する権限を有しません。WP Engine は、10,000 ドル未満の請求については、すべての仲裁費用(弁護士費用を除く)を支払い、仲裁人がお客様の請求または防御が軽薄であると判断した場合を除き、仲裁において弁護士費用および費用を求めることはありません。お客様は、仲裁のために本契約をオプトアウトすることができます。あなたがそうした場合、いずれの当事者も他方の仲裁手続への参加を要求することはできません。オプトアウトするには、あなたが最初にこの仲裁規定の対象となった日から30日以内に、本契約の法的通知に記載された住所に書面で当社に通知する必要があります。あなたは、あなたの名前、連絡先情報、およびあなたがこの仲裁契約からオプトアウトを希望することを明確に表明する必要があります。お客様がオプトアウトを選択した場合、または本条項が何らかの理由で執行不能であることが判明した場合。(i) すべての紛争は、テキサス州トラビス郡にある州裁判所または連邦裁判所に提訴されなければならず、(ii) いかなる請求も集団訴訟または集団訴訟として提訴することはできず、お客様は、集団訴訟または集団訴訟のメンバーとして本契約から生じる請求を積極的に主張することはできません。国際物品売買に関する国連条約は、本契約を支配しないものとします。

その他。契約; 終了。本契約は、その主題に関する当事者間の完全な理解を表し、存在する可能性のある以前の通信または合意に取って代わるものです。本契約に記載されている権利、救済措置、または権限の放棄は、放棄する当事者が署名した書面で提供されない限り、有効ではありません。いずれかの当事者は、理由の如何を問わず、いつでも本契約を終了することができ、お客様が本契約の条項に違反した場合は、本契約の自動終了として動作するものとします。本契約が終了した場合、お客様は本ソフトウェアに対するいかなる権利またはライセンスをも喪失し、直ちに本ソフトウェアの使用を中止し、所有するすべてのコピーを破棄しなければなりません。通知。通知は、配達された日時、または郵便で配達された通知の場合は、第一種郵便で指定された住所に郵送されてから 5 営業日後に有効になります。お客様への通知は、本ソフトウェアまたはお客様が当社に提供した利用可能な連絡先情報を介して行われるものとします。当社への通知は、WP Engine, 504 Lavaca Street, Suite 1000, Austin, TX 78701, ATTN: Legal Departmentに送付してください。分離可能性。本契約のいずれかの法域において違法または執行不能と判断された条項は、可能であれば、その違法性または執行不能の範囲内でのみ有効であり、段落または本契約の残りの条項を無効にするものではありません。可能な限り、違法または執行不能な規定は、当事者の意図を反映するように修正されるものとします。存続。本契約の終了または満了後の履行または遵守を意図した本契約の条項(秘密保持、責任の制限、および補償を含むがこれに限定されない)は、終了または満了後も存続し、完全な効力を有するものとします。第三者受益者、関係。本契約の第三者受益者はいません。本契約に含まれるいかなる内容も、当事者間にジョイントベンチャーまたはパートナーシップを設立するものとみなされたり、解釈されたりするものではありません。いずれの当事者も、本契約に基づいて他方の代理人、従業員、または法定代理人として権限を与えられておらず、また、他方の当事者に代わっていかなる表明、請求、または保証を行う権限を与えられていません。

By clicking “I Agree” below, you are entering into a contract with WPEngine, Inc. on behalf of itself and its affiliates (“WP Engine,” “we,” “our,” or “us”) which defines your rights and obligations related to the Local software (“Software”). That contract is comprised of these Terms of Service and the Privacy Policy located at https://wpengine.com/legal/privacy/ (together, the “Agreement”). By using the Software, you agree to be bound fully by the terms of this Agreement. You do not have to accept this Agreement, but it is the only agreement which grants you any rights to the Software. If you do not accept this Agreement, you must uninstall all copies of the Software and may not use it for any purpose. The Software is licensed, not sold, and is protected by all applicable copyright and other intellectual property laws worldwide.

THIS AGREEMENT REQUIRES BINDING ARBITRATION AND RESTRICTS YOUR ABILITY TO PARTICIPATE IN A CLASS ACTION OR SIMILAR LEGAL PROCESS. PLEASE REVIEW SECTION 6 CAREFULLY TO UNDERSTAND YOUR RIGHTS.

License Rights; Restrictions. For the duration of this Agreement, you may (i) use the Software for its intended purpose in accordance with the documentation we make available to you from time to time, and (ii) make and distribute unmodified copies of the Software on condition that such copies include this Agreement and all trademark, copyright, and other applicable legal notices. You may not use the Software for any illegal purpose. You may not rent, lease, or sell the Software to third parties or use the Software as part of a time-sharing, outsourcing, or service bureau environment. Except as explicitly provided herein, you may not copy, adapt, reverse engineer, decompile, disassemble, or create derivative works of the Software for any reason. WPEngine, Inc. reserves all rights except for those explicitly granted to you herein.

Intellectual Property. WP Engine or its licensors own and shall continue to own all right, title, and interest in and to the Software, including all system-generated data, logs, modifications, improvements, upgrades, derivative works, and all intellectual property rights in and to any of the foregoing. To the extent the Software includes or incorporates any third-party software, such software shall be subject to those license terms which accompany the software. If you provide us with any feedback: such feedback is provided freely and without restriction; we are free to use and disclose such feedback for any purpose without an accounting to you or any other person; and we shall own all right, title, and interest in and to such feedback along with any changes, modifications, or upgrades we make to the Software or any other products or services that we develop or improve based on such feedback. Except for the express rights granted herein, we do not grant any other rights, express or implied, in any of our intellectual property.

Indemnification. You will indemnify, defend, and hold harmless WP Engine and its officers, directors, agents, and employees from and against any and all liabilities, obligations, losses, damages, penalties, fines, amounts in interest, and other expenses (including reasonable attorney fees) in connection with a claim or demand brought by a third party related to your breach of Section 1 above.

DISCLAIMER. THE SOFTWARE IS PROVIDED AS-IS, AS AVAILABLE, AND WITH ALL FAULTS. WE MAKE NO WARRANTIES OF ANY KIND AND SPECIFICALLY DISCLAIM ALL IMPLIED WARRANTIES INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, UNINTERRUPTED OR ERROR FREE SERVICE, AVAILABILITY, ACCURACY, AND ANY AND ALL IMPLIED WARRANTIES ARISING FROM STATUTE, COURSE OF DEALING, COURSE OF PEFORMANCE, OR USAGE OF TRADE TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW.

LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, WE SHALL HAVE NO LIABILITY: (I) WITH RESPECT TO THE SOFTWARE OR ANY OBLIGATIONS UNDER THE AGREEMENT, OR (II) FOR ANY CONSEQUENTIAL, EXEMPLARY, SPECIAL, INCIDENTAL OR PUNITIVE DAMAGES EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. NOTWITHSTANDING THE FOREGOING, OUR MAXIMIUM AGGREGATE LIABILITY FOR ALL CLAIMS SHALL BE LIMITED TO THE FEES PAID BY YOU UNDER THE AGREEMENT IN THE 6 MONTHS PRIOR TO THE APPLICABLE CLAIM OR $100, WHICHEVER IS GREATER. THIS LIMITATION APPLIES TO ALL CAUSES OF ACTION INCLUDING, WITHOUT LIMITATION, BREACHES OF CONTRACT OR WARRANTY, NEGLIGENCE, STRICT LIABILITY, MISREPRESENTATIONS, AND OTHER TORTS. BOTH PARTIES ACKNOWLEDGE AND AGREE THAT THE REMEDIES AND LIMITATIONS HEREIN ARE REASONABLE ALLOCATIONS OF THE RISKS BETWEEN THEM. THE FEES REFLECT, AND ARE SET IN RELIANCE UPON, THIS ALLOCATION OF RISK AND THE EXCLUSION OF CONSEQUENTIAL DAMAGES SET FORTH IN THIS AGREEMENT.

Dispute Resolution. This Agreement is governed by the laws of the State of Texas without regard to its choice of law statutes. All disputes will be resolved by binding, individual arbitration under the American Arbitration Association’s rules. Judgment on the award rendered by the arbitrator may be entered in any court having competent jurisdiction. Any provision of applicable law notwithstanding, the arbitrator will not have authority to award damages, remedies, or awards that conflict with this Agreement. WP Engine will pay all arbitration fees (excluding attorneys’ fees) for claims less than $10,000 and will not seek its attorneys’ fees and costs in arbitration unless the arbitrator determines that your claim or defense is frivolous. YOU MAY OPT OUT OF THIS AGREEMENT TO ARBITRATE. If you do so, neither party may require the other to participate in an arbitration proceeding. To opt out, you must notify us in writing at the address provided for legal notices herein within 30 days of the date that you first became subject to this arbitration provision. You must include your name, contact information, and a clear statement that you wish to opt out of this arbitration agreement. If you choose to opt out, or if this Section is found to be unenforceable for any reason: (i) any disputes must be brought in the state or federal courts located in Travis County, Texas; and (ii) no claim may be brought as a class or collective action and you may not actively assert a claim arising out of the Agreement as a member of a class or collective action. The United Nations Convention on the International Sale of Goods shall not govern the Agreement.

MiscellaneousAgreement; Termination. This Agreement represents the entire understanding between the parties with respect to its subject matter and supersedes any previous communication or agreement that may exist. No waiver of a right, remedy, or power set out in the Agreement shall be effective unless provided in a writing signed by the waiving party. Either party may terminate this Agreement at any time for any reason, and any violation of the terms of this Agreement by you shall operate as an automatic termination of the Agreement. Upon termination, you shall no longer have any right or license to the Software, and you must immediately cease use of the Software and destroy all copies in your possession. Notice. Notices will be effective as of the date and time delivered or, in the case of notices delivered by post, 5 business days after being mailed to the designated address by first class mail. Notices to you shall be made via the Software or to any available contact information you have provided to us. Notices to us should be delivered to WP Engine, 504 Lavaca Street, Suite 1000, Austin, TX 78701, ATTN: Legal Department. Severability. Any provision in the Agreement that is held to be illegal or unenforceable in any jurisdiction shall be effective only up to the extent of such illegality or unenforceability, if possible, and shall not invalidate the remaining provisions of the paragraph or the Agreement. To the largest extent possible, the illegal or unenforceable provision shall be restated to reflect the parties’ intent. Survival. Any provision of the Agreement that contemplates performance or observance subsequent to termination or expiration of the Agreement (including, without limitation, confidentiality, limitation of liability, and indemnification) survive termination or expiration and continue in full force and effect. Third-Party Beneficiaries; Relationships. There are no third-party beneficiaries to the Agreement. Nothing contained in the Agreement shall be deemed or construed as creating a joint venture or partnership between the parties. Neither party is authorized as an agent, employee, or legal representative of the other by virtue of the Agreement nor authorized to make any representations, claims, or warranties on behalf of the other party.

Local | Legal