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マルチサイトネットワークのインストールと設定方法

WordPressのマルチサイトネットワークを設定すると、WordPressの個別インストールから複数のサイトを管理できるようになります。この機能は、ダッシュボードを一元管理しながら区切りサイトを運営する必要があるブログ、学校、企業にとって特に便利です。

マルチサイト・ネットワークは、私たち自身のサイトでも使用しており、いくつかのユースケースでコンテンツを整理するのに非常に役立っています。

このガイドでは、WordPressマルチサイトネットワークのインストールとセットアップの手順を説明し、この機能を最大限に活用できるようにします。

step by step tutorial on installing and setting up a WordPress multisite network

包括的な投稿であるため、ナビゲーションを容易にするためにこの目次を追加しました。以下のクイックリンクから、お知りになりたいセクションにジャンプできます:

WordPressマルチサイトの基本

  1. WordPressマルチサイトとは?
  2. WordPressマルチサイトネットワークを利用するメリット
  3. WordPressマルチサイトネットワークを使うことの欠点
  4. WordPressマルチサイト・ネットワークが必要な人とは?

WordPressマルチサイトのインストールとセットアップ

  1. WordPressマルチサイトネットワークの必須条件
  2. マルチサイトネットワークのドメイン構造の選択
  3. ワイルドカード・サブドメインの設定
  4. WordPressマルチサイトのカスタムドメイン設定
  5. WordPressマルチサイトネットワーク機能の有効化
  6. WordPressマルチサイトネットワークの設定

WordPressマルチサイト構成設定

  1. サイトネットワークの設定
  2. マルチサイトネットワークを登録用に開く
  3. 新規サイト設定
  4. マルチサイトネットワークのアップロード設定
  5. プラグインメニュー設定

デフォルトコンテンツ、テーマ、プラグインの設定

  1. WordPressマルチサイトネットワークに新規サイトを追加する
  2. マルチサイトネットワークにテーマとプラグインを追加する
  3. 新規サイトへの初期設定コンテンツの追加

トラブルシューティングとFAQ

  1. WordPressマルチサイトのトラブルシューティング
  2. WordPressマルチサイトに関するFAQ

WordPressマルチサイトネットワークとは?

WordPressマルチサイトネットワークは、WordPressの個別インストールから複数のWordPressブログやサイトを運営・管理することができます。

新規サイトを即座に作成し、同じユーザー名とパスワードで管理することが有効化されます。他のユーザーがサインアップし、あなたのドメイン上にブログやサイトを作成することもできます。

WordPressマルチサイトネットワークには、ネットワーク上の各サイト/ブログをカスタマイズするために使用できる高度な設定が付属しています。

WordPressマルチサイトネットワークを利用するメリット

多くの状況で、WordPressマルチサイトネットワークは、複数のスタンドアロンWordPressサイトを管理するよりも便利です。ここでは、WordPressマルチサイトネットワークを使用する利点のいくつかを紹介します:

  1. ネットワーク管理者として、個別ダッシュボードから複数のサイトを簡単に管理できます。
  2. ネットワーク上の各サイトは管理ユーザーを持つことができます。サイト管理者は自分のサイトだけを管理することができます。
  3. プラグイン/テーマをインストールし、1回のダウンロードで複数のサイトで有効化することができます。
  4. マルチサイトネットワークは更新管理も簡単になります。WordPress、プラグイン、テーマの更新は1つの「マスター」インストールで済みます。

WordPressマルチサイトネットワークを使うことの欠点

WordPressのマルチサイトネットワークを作成しても、複数のサイトを管理するのに役立つとは限りません。

マルチサイト・ネットワークを立ち上げる前に、留意すべきデメリットをいくつか挙げてみよう。

  1. ネットワーク上のすべてのサイトが同じリソースを共有しているため、あなたのネットワークがダウンすると、他のすべてのサイトもダウンする。
  2. 初心者レベルのユーザーがトラフィックやサーバーリソースを管理するのは難しい。サイトの1つが予期せぬトラフィックを受けると、ネットワーク上の他のサイトすべてに影響が及びます。
  3. 1つのサイトがハッキングされれば、ネットワーク上のすべてのサイトがハッキングされる。
  4. WordPressのプラグインによっては、マルチサイトネットワークでうまく動作しない場合があります。
  5. すべてのホスティングサービスプロバイダは、WordPressマルチサイトネットワークを十分にサポートしていないため、オプションが制限されます。これについては投稿の後半で詳しく説明します。

WordPressマルチサイト・ネットワークが必要な人とは?

複数のWordPressサイトを管理しているからといって、マルチサイトネットワークを使い始める必要はありません。

複数のWordPressサイトを個別ダッシュボードから管理するサードパーティ製ツールがある。InfiniteWPや MainWPのようなツールを使えば、サイトを行ったり来たりすることなく、複数のWordPressサイトをひとつ屋根の下で管理することができる。

マルチサイト・ネットワークを構築する意味があるシナリオをいくつか紹介しよう:

  1. 区切りの異なるセクションを持つ雑誌サイト
  2. 拠点や支店ごとにサブサイトを持つビジネスサイト
  3. 部署、場所、地域ごとにWordPressマルチサイトを使用した政府機関や非営利団体のサイト
  4. 複数のサブドメインで運営されているブログのサイトネットワーク
  5. 学校や専門学校では、学部やブログごとにマルチサイトを使用したり、学校のサーバーで学生にウェブサイトを作成させています。

WordPressマルチサイトネットワークの必須条件

WordPressマルチサイトネットワーク上のすべてのサイトは、同じサーバーリソースを共有します。つまり、最も重要なのは優れたWordPressホスティングサービスです。

トラフィックが少ないサイトを2、3個持つだけなら、共有ホスティングサービスが良い設定でしょう。

しかし、マルチサイトネットワークの性質上、サイトが大きくなるにつれ、通常VPSホスティングサービスまたは専用サーバーが必要になります。

我々は、彼らが共有ホスティングサービスとVPS /専用サーバーを提供していますので、Bluehostをお勧めします。彼らはまた、WordPressの公式ホスティングサービスのパートナーの一つです。

Bluehost website

もし別の方法をお探しなら、SiteGroundと WP EngineもWordPressマルチサイトネットワークに優れたサービスを提供しています。

ホスティングサービスとは別に、WordPressのインストールと FTPを使ったファイル編集の基本的な知識が必要です。

マルチサイトネットワークのドメイン構造の選択

WordPressマルチサイトネットワークでは、サブドメインまたはサブディレクトリを使用して新しいサイトを追加できます。

サブドメインの例:
http://site1.example.com

サブディレクトリの例:
http://example.com/site1/

サブドメインを選択した場合は、サーバーにワイルドカード・サブドメインを設定する必要があります。次のステップでその方法を説明します。

一方、ネットワーク上のサイトにサブディレクトリやパスベースのURLを選択した場合は、次のステップを省略できる。

ワイルドカード・サブドメインの設定

ワイルドカードサブドメインは、ドメイン名の下にプレースホルダーサブドメインを作成します。このプレースホルダー・サブドメインを使用して、すでに定義していないサブドメインをマッピングすることができます。

この設定により、WordPressマルチサイトが独自のサブドメインを使用して新しいサイトを作成することが有効化されます。

マルチサイトネットワーク上のサイトにサブドメインを使用する場合は、ワイルドカードサブドメインを設定する必要があります。

我々はBluehostでそれを行う方法を説明します。しかし、基本的なプロセスは、すべてのホスティングサービスに同じです。

まず、WordPressホスティングアカウントのダッシュボードにログインする必要があります。Websitesの下にあなたのサイトを見つけ、「Settings」ボタンをクリックします。

Bluehost site settings

サイトの設定ページが開きますので、「高度な設定」タブに切り替えてください。

そこからcPanelセクションまでスクロールダウンし、「管理」ボタンをクリックします。

Bluehost cPanel under Advanced site settings

これにより、cPanelダッシュボードが起動します。

ドメイン」セクションまでスクロールダウンし、「ドメイン」をクリックする。

Bluehost cPanel domains

すると、ホスティングサービスアカウント上のドメインとサブドメインのリストが表示されます。

続行するには、「新規ドメインを作成」ボタンをクリックする必要があります。

Bluehost cPanel new domain

次の画面で、Domainフィールドの下にワイルドカード・サブドメインを追加する必要があります。

ワイルドカードサブドメインは、アスタリスク記号の後にドットを付け、ドメイン名を指定します。このように:

*.example.com

example.comをあなたのドメイン名に置き換えることをお忘れなく。

Bluehost cPanel wildcard subdomain

ドキュメント・ルート・フィールドは、ワイルドカードと一致するように自動的に入力されます。

送信」ボタンをクリックするだけで、ドメイン設定が保存されます。

あなたのホスティングサービスアカウントは、サブドメインを持つWordPressマルチサイトをサポートする準備が整いました。

サイトごとのカスタマイザー・ドメインの設定

WordPressマルチサイトでは、マルチサイトネットワーク内の各サイトに異なるドメインを設定することもできます。

カスタマイザーを設定するには、ドメインマッピング機能を使用し、ドメイン登録業者のアカウントでネームサーバーのレコードを更新する必要があります。

Manage sites

異なるドメインでWordPressマルチサイトを作成する方法について、詳細なステップバイステップのガイドを作成しました。

WordPressマルチサイトネットワーク機能の有効化

マルチサイトネットワーク機能は、各WordPressインストールにビルトインされています。使用するには、通常と同じようにWordPressをインストールしてセットアップするだけです。

その後、マルチサイト機能を有効化するだけです。既存のWordPressサイトでもマルチサイト機能を有効化することができます。

マルチサイトを有効化する前に、WordPressサイトの完全なバックアップを作成することを忘れないでください。

次に、FTPクライアントまたはcPanelファイルマネージャを使ってサイトに接続し、wp-config.phpファイルを開いて編集します。

以下のコードをwp-config.phpファイルの/*の直前に追加する必要があります。 以上で編集は終了です!ハッピー公開する。*/ の行に追加します:

/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );

これが完了したら、wp-config.phpファイルを保存してサーバーにアップロードします。

このコードは、WordPressサイトのマルチサイト機能を有効化するだけです。有効化した後も、マルチサイトネットワークをセットアップする必要があります。

WordPressマルチサイトネットワークの設定

WordPressサイトのマルチサイトネットワーク機能が有効化されたので、いよいよネットワークを設定します。

既存のWordPressサイトにマルチサイトネットワークをセットアップする場合は、サイトのプラグインをすべて無効化する必要があります。

プラグイン ” インストール済みプラグインのページにアクセスし、すべてのプラグインを選択してください。次に、「一括操作」ドロップダウンメニューから「無効化」を選択し、 「適用」ボタンをクリックしてください。

Deactivate all plugins

ツール ” ネットワークセットアップのページに進んでください。

ここでは、マルチサイトネットワークを設定することができます。

WordPress multisite network setup

サイトネットワークのセットアップ画面で、サーバーにApacheのmod_rewriteモジュールがインストールされている必要があることがわかります。このモジュールは、すべての最高のWordPressホスティングサービスプロバイダにインストールされ、有効化されています。

次に、サイトネットワークで使用するドメイン構造(サブドメインやサブディレクトリなど)をWordPressに伝える必要があります。

その後、ネットワークのタイトルを入力し、「Network Admin Email」フィールドのメールが正しいことを確認します。

インストール」ボタンをクリックして続行します。

WordPressは、wp-config.phpと.htaccessファイルにそれぞれ追加するコードを表示します。

Add WordPress multisite configuration rules to wp-config and .htaccess files

FTPクライアントまたはcPanelのファイルマネージャを使ってコピー&ペーストしてください。

まず、wp-config.phpファイルを編集し、先のステップで追加した行のすぐ下にコードを貼り付けます。

次に、.htaccessファイルを編集し、.htaccess内の既存のWordPressルールをコピーしたWordPressマルチサイトのコードに置き換える必要があります。

変更を保存し、編集したファイルをサーバーに再アップロードすることを忘れないでください。

完了したら、マルチサイトネットワークにアクセスするためにWordPressサイトに再ログインする必要があります。

サイトネットワークの設定

マルチサイトネットワークのセットアップが完了したので、次はそのネットワーク設定を行います。

まずWordPressサイトの管理エリアにログインします。

その後、ネットワーク設定の変更、新規サイトの追加、その他の設定を行うには、「ネットワーク・ダッシュボード」設定に切り替える必要がある。

管理ツールバーの「マイサイト」メニューにマウスオーバーすると、フライダウンのポップアップが表示されます。ネットワーク管理 ” ダッシュボードをクリックしてください。

WordPress multisite network admin dashboard

マルチサイトネットワークダッシュボードに移動します。マルチサイトネットワークを管理するための新しいメニュー項目があることに気づくでしょう。

また、「Right Now」ダッシュボード・ウィジェットが表示され、新規サイトを作成したり、新規ユーザーを追加したりすることができます。

Multisite admin area

ネットワーク設定を行うには、管理者サイドバーの「設定」リンクをクリックします。

ネットワーク設定ページの最初のオプションは、サイトタイトルと管理者メールアドレスを設定することです。これらのフィールドには、セットアップ時に入力したサイトネットワーク名と管理者メールアドレスが自動的に入力されます。

WordPress multisite general settings

マルチサイトネットワークを登録用に開く

ネットワーク設定ページの「登録設定」セクションは、おそらくネットワーク設定全体で最も重要な設定でしょう。

初期設定では、ユーザー登録もサイト登録もネットワーク上では無効化されている。

サイトをユーザー登録制にするか、既存ユーザーだけに新規サイトの作成を許可するか、ユーザー登録とサイト登録の両方を許可するかを選択できます。

Allowing user and site registration on a WordPress multisite

マルチサイトネットワークを登録に開放している場合、「登録通知」オプションの隣にあるボックスにチェックを入れることができます。

これにより、新しいユーザーやサイトが登録されるたびにメール通知を受け取ることができます。

個々のサイト管理者が自分のサイトに新規ユーザーを追加できるようにしたい場合は、「新規ユーザーを追加」オプションの隣にあるチェックボックスをオンにします。

Additional multisite settings

限定メール登録オプションでは、サイトまたはユーザー登録を特定のドメインのメール・アドレスに限定することができます。

これは特に、ユーザーやサイトの登録や作成を組織内の人だけに許可したい場合に便利です。

同様に、特定のドメインの登録を禁止することもできます。

新規サイト設定

新規サイト設定」セクションでは、マルチサイトネットワーク上に作成された新規サイトの初期設定を行うことができます。

これらの設定で、ウェルカムメールや初期設定の最初の投稿、ページ、コメントのコンテンツを変更することができます。

New site settings for WordPress multisite

ネットワーク管理者であれば、いつでもこれらの設定を変更することができます。

マルチサイトネットワークのアップロード設定

サーバーリソースの使用状況を監視することは重要です。アップロード設定」では、サイトがアップロードに使用できる総容量を制限することができます。

初期設定は100MBで、少なくとも100枚の写真をアップロードするのに十分な容量です。ディスク容量に応じて、この容量を増減できます。

WordPress multisite uploads settings

初期設定のアップロードファイルの種類は、画像、音声、動画、PDFファイルです。doc、docx、odtなどのファイルタイプを追加することもできます。

その後、ユーザーがサーバーに非常に大きなファイルをアップロードできないように、ファイルサイズの制限を選択することができます。

プラグインメニューの設定

次に、メニュー設定にジャンプすることができます。ネットワークサイトのプラグインセクションの管理者メニューを有効化することができます。

WordPress multisite plugin menu

有効化すると、各サイト管理者にプラグインメニューが表示されます。サイト管理者はプラグインを有効化したり無効化したりできますが、新しいプラグインをインストールすることはできません。

すべての設定に満足したら、「変更を保存」ボタンをクリックします。

WordPressマルチサイトネットワークへの新規サイトの追加

WordPressマルチサイトネットワークに新規サイトを追加するには、管理ツールバーのマイサイト ” ネットワーク管理メニューの下にある「サイト」をクリックするだけです。

Managing sites on a WordPress multisite

現在のマルチサイトインストールのサイトのリストが表示されます。初期設定では、プライマリサイトが WordPress マルチサイトネットワークの唯一のサイトとして表示されます。

新規サイトを追加するには、上部の「新規追加」ボタンをクリックします。

Adding a new site in a WordPress multisite network

新規サイトの追加」ページで、サイトのアドレスを入力します。完全なアドレスを入力する必要はなく、サブドメインまたはサブディレクトリとして使用したい部分のみを入力してください。

次に、サイトタイトルを追加し、サイト管理者のメールアドレスを入力する。

Adding new site details

現在マルチサイトネットワークの管理に使用しているメールアドレス以外の管理者メールアドレスを追加することができます。

他のユーザーがそのメールアドレスを使用していない場合、WordPressは新しいユーザーを作成し、入力したメールアドレスにユーザー名とパスワードを送信します。

完了したら、「サイトを追加」ボタンをクリックするだけです。

新しいサイトがWordPressマルチサイトネットワークに追加されます。また、ネットワーク管理者として新規サイト登録メールが届きます。

新規ユーザーを作成した場合、そのユーザーにはパスワードの設定とログイン記録の方法が記載されたメールが送信されます。

マルチサイトネットワークにテーマとプラグインを追加する

デフォルト設定では、マルチサイトネットワークの個々のサイト管理者は、テーマやプラグインを自分でインストールすることはできません。

ネットワーク管理者として、それぞれのプラグインやテーマをインストールし、ネットワーク上のすべてのサイトで利用できるようにすることができます。

マルチサイトネットワークへのテーマのインストール

テーマを追加するには、マイサイト ” ネットワーク管理 ” テーマページに移動します。

WordPress multisite themes

このページでは、現在WordPressマルチサイトにインストールされているテーマの一覧が表示されます。

テーマの下にある「ネットワーク有効化」オプションをクリックすることで、他のサイトでもテーマを利用できるようにすることができます。

テーマの下にある「ネットワーク無効化」リンクをクリックして、テーマを無効化することもできます。ネットワーク無効化オプションは、テーマが有効化されている場合にのみ表示されることに注意してください。

新規テーマを追加するには、画面上部の「新規追加」ボタンをクリックし、通常通りWordPressテーマをインストールします。

新規テーマをインストールしたら、「ネットワーク有効化」オプションでネットワーク上の他のサイトでも利用できるようにします。

どのテーマをサイトネットワークで利用できるようにするか、お勧めが必要な場合は、私たちが選んだ最高のWordPressテーマをご覧ください:

マルチサイトネットワークのデフォルトテーマの設定

テーマをいくつか追加した場合でも、WordPressは各新規サイトのデフォルトWordPressテーマを有効化します。

新規サイトのデフォルトテーマを別のテーマにしたい場合は、wp-config.phpファイルに以下のコードを追加する必要があります:

// Setting default theme for new sites
define( 'WP_DEFAULT_THEME', 'your-theme' );

your-themeをテーマ名に置き換えてください。テーマのフォルダー名を使用する必要がありますが、これはFTPまたはファイルマネージャーを使って/wp-content/themes/フォルダーを見ればわかります。

マルチサイトネットワークのプラグインのインストール

同様に、My Sites ” Network Admin ” Pluginsページにアクセスしてプラグインをインストールし、各プラグインの下にある’Network Activate’リンクをクリックしてマルチサイトネットワークで有効化することができます。

Network activate plugins

ここでは、すべてのサイトにお勧めのWordPress必須プラグインをいくつかご紹介します:

その他のおすすめプラグインについては、すべてのサイトに必須のWordPressプラグインのリストをご覧ください。

注:「ネットワーク設定」でサイト管理者用のプラグインメニューオプションを有効化した場合、サイト管理者はインストールしたプラグインを自分で有効化または無効化することができます。ただし、新規プラグインの削除やインストールはできません。

マルチサイトへの初期設定コンテンツの追加

WordPressのデフォルトでは、マルチサイトネットワークの各サイトにいくつかの初期設定を追加および編集することができます。設定 ” ネットワーク設定ページに行き、’新規サイト設定’セクションにこのコンテンツを追加することができます。

New site default content in WordPress multisite

初期設定の投稿、ページ、コメントのコンテンツを編集することができます。初期設定をサイト管理者にとってより便利なコンテンツに置き換えることをお勧めします。

しかし、各新規サイトに初期設定を追加したい場合はどうすればいいのでしょうか?

WordPressの初期設定では、新規サイトに追加のデフォルトコンテンツを作成するオプションはありません。そうしたい場合は、WordPressマルチサイトにカスタムコードを追加する必要があります。

この例では、新規サイトごとに作成される初期設定ページを追加します。このコードをメインサイトのfunctions.phpファイルに追加するか、メインサイトのWPCodeプラグインを使用して追加することができます:

add_action('wpmu_new_blog', 'wpb_create_my_pages', 10, 2);
  
function wpb_create_my_pages($blog_id, $user_id){
  switch_to_blog($blog_id);
  
// create a new page
  $page_id = wp_insert_post(array(
    'post_title'     => 'About',
    'post_name'      => 'about',
    'post_content'   => 'This is an about page. You can use it to introduce yourself to your readers or you can simply delete it.',
    'post_status'    => 'publish',
    'post_author'    => $user_id, // or "1" (super-admin?)
    'post_type'      => 'page',
    'menu_order'     => 1,
    'comment_status' => 'closed',
    'ping_status'    => 'closed',
 ));
   
restore_current_blog();
}

同じコードを少し修正するだけで、新規サイトの初期設定投稿を作成することができる。以下のコードをご覧ください:

add_action('wpmu_new_blog', 'wpb_create_my_pages', 10, 2);
  
function wpb_create_my_pages($blog_id, $user_id){
  switch_to_blog($blog_id);
  
// create a new page
  $page_id = wp_insert_post(array(
    'post_title'     => 'A sample blog post',
    'post_name'      => 'sample-blog-post',
    'post_content'   => 'This is just another sample blog post. Feel free to delete it.',
    'post_status'    => 'publish',
    'post_author'    => $user_id, // or "1" (super-admin?)
    'post_type'      => 'post',
 ));
   
restore_current_blog();
}

WordPressマルチサイトのトラブルシューティング

WordPressマルチサイトネットワークのセットアップで最も一般的な問題は、ワイルドカードサブドメインの誤った設定とドメインマッピングの問題です。マルチサイトを設定する前に、ウェブホスティングがワイルドカードサブドメインをサポートしていることを確認してください。

以下は、その他のよくある問題とその迅速な解決策です。

マルチサイトインストールにおけるログインの問題の修正

よくある問題として、サブディレクトリを持つWordPressマルチサイトを使用している場合、wp-config.phpファイルに必要なコードを追加しても、サイトの管理エリアにログインできないユーザーがいます。

この問題を解決するには、wp-config.phpファイルの以下の行を探してください:

define('SUBDOMAIN_INSTALL', false);

さて、これを次の行に置き換えるだけだ:

define('SUBDOMAIN_INSTALL', 'false');

未確認ユーザーの検索

サイトネットワークに登録したものの、有効化したメールを受け取っていないユーザーを見つけられないという問題もあります。

この問題を解決するには、WordPressで保留中の未確認ユーザーを見つける方法をご覧ください。

マルチサイトから独自のWordPressインストールにサイトをエクスポートする

後で、あなたや他のサイトオーナーが、マルチサイトから別のWordPressインストールにサイトをエクスポートしたいと思うかもしれません。これは簡単にできます。ステップバイステップの手順については、WordPress マルチサイトから個別インストールにサイトを移動する方法のガイドを参照してください。

WordPressの一般的なエラーとその修正方法についての究極のガイドもブックマークしておくとよいでしょう。これを読めば、WordPressのよくある問題を素早く修正する時間を大幅に節約できます。

WordPressマルチサイトネットワークに関するFAQ

多くのユーザーから、WordPressマルチサイト・ネットワークや、より効率的な利用方法について多くの質問が寄せられています。以下は、最もよくある質問とその回答です。

1.マルチサイト・ネットワークがあれば、サイトの管理がしやすくなりますか?

正直なところ、答えはあなたの使用シナリオによる。

例えば、もしあなたのサイトが互いに関連していないのであれば、InifiteWPのような複数サイト管理ツールを使う方が良いでしょう。

しかし、レストランチェーンや大学、オンラインマガジンなど複数のサイトを管理する場合は、WordPressのマルチサイトの方が効率的です。

2.WordPressマルチサイトはサイトの読み込みを速くしますか?

繰り返しますが、それはいくつかの要因によります。サーバーリソースが豊富で、より良いWordPressホスティングサービスを利用すれば、マルチサイトをより高速に実行することができますが、このようなリソースがあれば、個々のWordPressサイトもより高速に実行されます。

しかし、共有ホスティングサービスアカウントでは、トラフィックの急増によりメモリ使用量が増加し、マルチサイトネットワーク上のすべてのウェブサイトの速度が同時に低下します。マルチサイトの速度を改善するには、WordPressのパフォーマンスと速度の最適化に関するガイドを参照してください。

3.WordPressマルチサイトにオンラインストアを追加できますか?

はい、WordPressマルチサイトネットワークにオンラインストアを追加することができます。ほとんどの場合、WordPressマルチサイトと互換性のあるWooCommerceのようなeコマースプラグインを使用することになるでしょう。

4.WordPressマルチサイトに「xプラグイン」をインストールできますか?

WordPressプラグインの中には、WordPressマルチサイトと互換性がないものがあります。通常、プラグインの作者はプラグインのサイトにその旨を記載しており、マルチサイト上で動作しない可能性のあるプラグインのインストールを避けることができる。しかし、言及されていない場合は、マルチサイトと互換性があると考えてよい。

5.マルチサイトネットワーク全体でユーザーログインと権限グループを共有するにはどうすればよいですか?

初期設定では、あるサイトに登録されたユーザーは、同じネットワーク上の別のサイトに登録したり追加したりすることはできません。それは、共有WordPressデータベースにすでに登録されているからです。しかし、他のサイトではユーザーグループの権限を持っていません。

WP Multisite User Syncのようなサードパーティのプラグインを使えば、サイトネットワーク上でユーザーを同期させることができる。ただし、サイトの管理者権限を誰かに与えてしまう可能性があるので、注意が必要です。

この投稿が、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

250件のコメント返信を残す

  1. Syed Balkhi says

    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. WTF says

    I have a pretty cool domain and I want to start a wp network on it so people can create blogs and website with a selection of my own themes.
    I would like to know what I need to do legally to keep the possibility to shut down all the sites if I decide not to host them anymore. Is there a terms and agreements I should use or is it already included? If anybody has any experience with hosting multiple sites it would be very helpful with me.

  3. Mercedes says

    Hello WP Beginner

    Your site has helped me once more to figure out that I needed mod_rewrite to install multisite. My hosting service will not provide the code and say that I need a developer.

    Can you please assist? I see a lot of mod rewrite codes but am not sure which one to use

    Thanks again
    Mercedes

  4. Mahesh says

    Is wildcard sub domain works for parked domain. Its create the sub domain but showing:

    “Internal Server Error

    500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.”

  5. Savya says

    Hi,

    I am trying to setup a subdomain on my blog using the multisite feature but I always get error. I even setup the wildcard subdomain rule in the cPanel but it doesn’t seem to be helping much.

    Can you help me out, please?

  6. itzforu says

    Hello Team,

    is it possible to configure multisite on currently running wordpress site?

    Thanks in advance

  7. Edmond says

    Great article, i have installed multisite and everything goes well but when i activate google analytic plugin, i can do anything on my network admin, i can install any plugin and i get error.

    Another issue, i installed WP domain Mapping.When i want to settup it want me to add some codes. i did all and it didnt work. Can you please give me steps that will lead me to success? i will appreciate that.

  8. Stanislaw Schmidt says

    Hi, great tutorial!
    Is it mandatory to create a wildcard subdomain, if i go with subdomain structure? Or can i create the subdomains manually?
    Cheers, Stanislaw

  9. Joerg Buyna says

    Thanks sooo much for this article. It is very well structured and written. Saved me hours of valuable time.

    JMB

  10. vishal says

    I create my own multisite network site. my primary site working but when i create new site it’s not working ??? gives error Not Found??? i use sub directory structure so word-press add the directory it self or we can create those directory manually when add new site……i am confuse ????

  11. Natalya says

    I’m surprised you recommend BlueHost in this article, even though they state they don’t support multisite.

  12. sanj says

    Dear Author;
    i do that but when i input url of a new site in menubar:

    Not Found

    The requested URL /index.php was not found on this server.
    Apache/2 Server at abc.example.com Port 80

    appear. what is the reason?

  13. vinay kumar singhal says

    Error establishing a database connection

    After create site1 in network it show database error
    please help me
    my code is

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, ‘false’);
    define(‘DOMAIN_CURRENT_SITE’, ‘example.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

  14. Hardy says

    Please help me
    i am new for multisite on wordpress , i setup multisite but show this error An existing WordPress network was detected. Please solve this error with me.

  15. leen says

    Hi,

    Thanks for this handy & detailled tutorial!

    I recently started setting up a city guide, with shopping locations in all the major Belgian cities, in WP.

    But I am wondering now if a MultiSite is a good idea: because I do not want all my diferent subdomain sites (cities) to diappear, when there is a hacking problem, or when one subdomain goes down.

    What would you advice, for such directories: multi or single…?

    Thanks a lot!

    & best regards,
    Leen / Belgium

    • WPBeginner Support says

      It all come downs to convenience. If you are able to easily manage multiple installs on sub-domains, then you should stick to it. However, if you feel that managing multiple installs is difficult, then you can try multisite network. Creating a multisite network would allow you to quickly create new sites, switch between sites, manage themes, plugins, and backups. But it also means that if your WordPress install is hacked, all your sites will go down with it.

      管理者

  16. Pierre says

    I done all what you said but when i create a new site, exemple : test.noov.fr , and i go on test.noov.fr, it dosen’t work. So i must create manually a subdomain called test.noov.fr and put the wordpress. Then it’s working, but i want that what i said became “automatic” when i create a new site on my network wordpress. Thanks if you can answer

  17. Mark Ballou says

    Hello,

    I’ve scoured the Internet for information on Multisite and found tons of useful information, but am still unsure of how to proceed. Since my searches always lead me back here, I thought I’d reach out. Though there haven’t been any comments in a while, I was hoping you’d be able to help me decide whether Multisite is a good solution for me, and if so, clarify the best steps to take to implement it. I want to be forward thinking and avoid headaches down the road, setting up a solid foundation for my WP sites.

    The Backstory: I’m new to WP and have setup a blog at my already hosted domain with Godaddy. I used a subdomain (blog.mydomain.com) and install WP in the subdomain using Godaddy’s WP installation tool.

    I’d previously had the low traffic blog on Blogger but was frustrated by the limitations. Realizing I could piggyback off of webhosting I already paid for, I migrated all the posts over to a subdomain on my Godaddy plan using Blogger Importer Extended. I then linked them using Blogger 301 Redirect. I had to clean some formatting up, but overall it has been working out well, and as far as I can tell people are finding their way from old Blogger links to the new WP blog without issue.

    Now that I’m a bit more comfortable with WP, I’m thinking of building a new site for my root domain, replacing the outdated Flash site that is there now. The blog and the root domain site are not associated, The blog is personal and the root domain site is separate for work, a kind of demo/resume site. I also have another completely separate domain, for a different business site I have. It’s also a very basic html resume page that I’m leaving alone for now. Down the line I might want to have a static page at my primary domain that acts as a portal to my different sites, but for now, will likely have only two sites to manage (mydomain.com and blog.mydomain.com).

    Let’s start with this question: Is this a good time to establish a Multisite framework? Is the scenario I describe appropriate for its use? Or should I just keep it simple and have two separate WP installs and only deal with Multisite if things get more complex down the line?

    I look forward to your reply!

    • WPBeginner Support says

      Keeping separate installations of WordPress has its own benefits. For example, each of your site can be customized without affecting other sites on the network. You can move a single site easily if it grows beyond your expectations. You can automate the updates process so that your sites need minimal supervision.

      On the other hand if you feel that you will benefit from making a network of your sites using the same WordPress core, then you can do that too. We don’t think it would be anymore efficient than separate installs for each site.

      管理者

  18. sunil says

    Hey there,
    i want to know how many subdomains create from wordpress admin panel with 1 wildcard subdomain

  19. Sumit Agarwal says

    Hey there,

    I am owner of and the website is running on a multisite network…Google indexes the website well but it does not index or crawls through my subdomains…Is it because somewhere in multisite network installation nofollow has been used?

    Regards,
    Sumit

  20. Alvaro Portela says

    Hi there! I was wondering if I can use WordPress Multisite just for subdomains. What I mean is: I want to make a landing page (no wordpress theme) with 2 options (Option A and Option B) this is http://www.example.com and 2 subdomains “optionA.example.com” and “optionB.example.com”. I want 2 Home pages with different content, option A subdomain will have only those articles with optionA tag and the same for option B, but I want to manage that from only one wordpress installation. Is this posible?

  21. shane says

    when you crete a sub dmain does it crete a new sub domain folder on my host that i can access via ftp

  22. Peter Wade says

    Great article, but I missed seeing how to delete all but one of the current installs. I have two subdomains and one subdirectory with separate WP installs in them. What do I delete in those, please, after multisite is set up?

  23. Maureen says

    Hi,

    When I installed the multisite network I did NOT have the choice between subdomain or sub directories so i just click on install. Now my 1st site is running but when im going to my dashboard to the other site it says page not found.
    I think it went as a sub domain because in the network setup they asked me to paste (‘SUBDOMAIN_INSTALL’, true)> That’s NOT what I wanted. I wanted to have sub directories. I tried to put instead (‘SUBDOMAIN_INSTALL’, false) but it doesn’t work at all!!

    I dont know how to fix this.
    I need someone to help me out! Can I change and co back to sub directories?

  24. seosamba says

    WordPress multisite is such a nightmare. I mean why would you put all your eggs in the same basket?
    I mean how is it acceptable to anyone that if 1 site goes down, all go down? Or that if 1 is hacked, all are lost to hackers?
    Of course, you might disregard this because you hope this will never happen, I tend to think it’s just a matter of time before it does.

    Besides, I know many folks are building a network of thin original content websites that is supposed to perform with search engine, like for local franchisees, point of sales, distributors and such.

    Unfortunately, from a SEO standpoint, any duplicated content served from the same block of IP”s will be rapidly shown the way to supplement index results, so to me the WP multisite architecture is not only unflexible, it is also very flawed.

  25. Marshall Hunt says

    Hello! I followed your steps (including the ‘false’ trouble-shooting change to my config file), but I am getting a redirect loop for my sub-directory folders ( I set up two). Is there something else I can do? I haven’t bought a domain yet, I’m using my website providers temporary ip address to house my website, , so could that possibly have something to do with it? Thanks for the help! Really enjoyed the article and was able to set up with no difficulty except I can’t access it. :P

  26. cedric says

    i hope you can help me,I enabled multisite,i did the writeing in the config.php , i did all the steps here on the page i installed the network i created my custom user and a website for the user but when the user wants to login this apears:

    Warning:
    require_once(/home/u645014264/public_html/demoshop/wp-includes/load.php):
    failed to open stream: No such file or directory in
    /home/u645014264/public_html/demoshop/wp-load.php on line 41

    Fatal error: require_once(): Failed opening required
    ‘/home/u645014264/public_html/demoshop/wp-includes/load.php’
    (include_path=’.:/usr/lib/php’) in
    /home/u645014264/public_html/demoshop/wp-load.php on line 41

    please help me

  27. WPBeginner Staff says

    Add domains to your web hosting account. Select a different directory for each domain. Then install a separate copy of WordPress in each directory. See your web host’s help/documentation section to learn about how to add domain names.

    • christian says

      Thanks for your response. I have trouble finding a guide or documentation for this, do you know where to find some info?

  28. christian says

    Is it possible to host different domains on one multisite installation, domain1.com, domain2.com etc.? If not, what is the best solution for hosting different sites on the same server? Our company has 3 domains we need to host and I would prefer it to be on the same server.

  29. Steve says

    Hi, is it possible to create another network under the same domain? Right now I have the main network with a list of subsites all in subdirectories. I want to create another network under the same domain where I can create a separate network of sites that are for a different purpose but still part of the original domain.

    All the solutions I see require that I use a different domain when settings up multi-networks.

    Thanks

  30. David says

    Hi There,
    I installed multisite network. My 1st site is running but when im going to my dashboard to the other site it says page not available.
    I think something went wrong with the subdomains wildcard, but i dont know how to fix this. Do i have to make a subdomain manually ?
    I hope someone can help me out!
    Cheers, David – The Neterlands

    • Nitesh says

      Hi david, you just need to edit define(‘SUBDOMAIN_INSTALL’, ‘false’); insted of define(‘SUBDOMAIN_INSTALL’, false); in config.php

  31. Rihan says

    This is great! very usefull and can you please tell how to point a domain using domain mapping plugin for subdirectories installation :) Thank you very much :)

  32. Jorge Diaz says

    Hi, I am in a bit of a trouble here… I don’t fully understand, I activated multisite, ok, wildcard, ok, but when I add a new site I get a blank page or 404 error. So my question is Do I need to install WordPress 2 times? And enable multisite in the main domain and add the second site or I just have to install the main WordPress and just enable multisite?

    • Gerald Eder says

      Same problem with Jorge. 404 page if i wanna get to the dashboard of the new site on the subdomain.

    • Gerald says

      Hi, i have the same problem. mulitsite installion ok, wildcard ok, but when i want to enter the dashboard of the new site i get a 404 error. can you pls advise?

  33. CopiousJ says

    I would strongly suggest sub-folders not sub-domains – its better for SEO from what i’ve read through reliable sources like MOZ- should at least give people that option when giving instructions, just a suggestion.

    • Kenneth Guinto says

      i would say not true at all as it depends on the nature of the site on how it would brand itself. ive been working for an organization that has multisite install for 4 years now and its on a subdomain. i would suggest though when comes to SEO matters… its much better to rely on the specifications set by the search engines themselves.

    • Jyoti says

      At our end m not getting telnet reply as we don’t have full access to the internet in SDC but i am getting the hit count on the port so the traffic is through at our end .

  34. Greg says

    Yes, go to your cPanel and add the sub domain * nothing else and leave it at your root html folder all done

    • Wade Steele says

      Greg – When I add a sub domain (at Bluehost) it will not allow me to keep the sub doamain at the root directory, it will automatically add a new subdirectory within my root directory for the newly created sub domain. Is there someway around this because I get the 404 error too.

  35. francisco paulo says

    what if I’m not able to create Wildcard subdomains? Can I manually create the subdomains (under cPanel) I intend to use with WordPress?

  36. Vivienne Eggers says

    Hi, I’ve installed multi site and WP multi network and no problem creating sub domains or creating users. But assigning privileges? I assumed that since (Extended Super Users which I have installed also) only removes privileges assigned to a certain role and that role is assigned to an existing user – that ANY new users I set up would default to Super Admin – if I tick the box in settings “assign super admin access to this user”. Great – but I am doing this as the super admin – I’ve created a network, assigned sites, I can delete the site, edit the (sub) domain and path but when I attempt to access the “network admin” area it tells me I don’t have sufficient privileges to access the area. I’m a little confused. I want to create a network, assign sites and assign an admin user name – grant that user “full” privileges to all sites I have assigned in that specific network. I’m happy to do that by removing super admin privileges in a created role – but I’m having issues just creating network and assigning. After creating a network I want to be able to access it also as a Super admin. When I try to access the network via the emailed username and password of the network I set up I can access “my network” dashboard but then get an error message – file not found. Is there somewhere I can access detailed instruction on these steps?

  37. WPBeginner Staff says

    Nope, we didn’t. First you need to Allow multisite, after that you need to run the network setup. After you have run the setup. Depending on what options you choose during the setup WordPress will show you the code that needed to be entered in the wp-config.php file. The line you mentioned is one of the lines provided by WordPress after the setup and it can be different if a user opted for sub-directories instead of subdomains.

  38. karma_musings says

    I’ve converted a single site installation into a multisite, following both your directions here and the WordPress Codex. However, every time I try to go to the dashboard of a newly added subsite (myexample.mainsite.org) the browser response is that it can’t be found. I’ve gone over the instructions several times and replayed what I did, but I can’t figure out why this is happening. Shouldn’t the default theme have been automatically assigned to my new site? and shouldn’t I be able to start editing my new site from there? I did, as my first step, go to my host’s cPanel and set up the subdomain wildcard; before that even, I contacted the host to verify that my hosting situation (shared hosting) would support a multisite situation.

    Ideas? I appreciate it, thanks!

      • karma_musings says

        Thank you. I did confirm that was ok. I still don’t really know what the issue was, but after spending an hour on the chat line with my hosting provider, and giving him super admin access to my site, it’s all fixed! Hooray :-)

返信を残す

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