Plesk for Windows を無人モードでインストールする
サーバに RDP 経由でログインします。
-
Plesk インストーラをダウンロードします。
Server Core インストールで Plesk をインストールする場合は、PowerShell で次のコマンドを実行して Plesk インストーラをダウンロードできます。
Invoke-WebRequest -URI https://installer-win.plesk.com/plesk-installer.exe -OutFile plesk-installer.exe
-
必要なオプション付きでインストーラを起動します。
ユーザの入力を一切必要とせずに Plesk をインストールするには、すべての必要な情報を該当するオプションに指定してインストーラスクリプトを実行します。
plesk-installer.exe <OPTIONS> <WINDOWS_OPTIONS>
注釈
Although you can select a Plesk version for installation other than the latest Plesk Obsidian version, make sure that you have a good reason to do so. We strongly recommend installing the latest Plesk Obsidian version. Visit the Change Log for Plesk Obsidian page to learn which version of Plesk Obsidian is the latest at the moment.
以下のインストーラオプションは、Plesk のインストールを自動化するためによく使用されます。
オプション |
用例 |
説明 |
|---|---|---|
|
または
|
パッケージソースオプションは、インストーラがインストール対象の Plesk パッケージを取得する場所を定義します。「 ローカルミラーリポジトリの管理に関する情報は、「Plesk 自動インストールサーバのミラーリング」を参照してください。 |
|
|
This option defines what Plesk version will be installed. <ID> is a unique Plesk version identifier (e.g. PANEL_18_0_75_WIN). 公開されているバージョンのバージョン ID のリストを表示するには、以下を実行します。 plesk-installer.exe --show-releases 製品のレビューやテストを目的とするバージョンを含め、利用可能なバージョン ID をすべて表示するには、以下を実行します。 plesk-installer.exe --show-releases --skip-branch-filter |
|
|
いずれかの事前定義されたコンポーネントセットをインストール対象として選択します(Recommended、Full、Custom)。 以下を実行すると、利用可能なインストールタイプが表示されます。 plesk-installer.exe --select-release-id <ID> ^ --show-installation-types |
|
|
特定のバージョンで利用可能なコンポーネントをすべて表示するには、以下を実行します。 plesk-installer.exe --select-release-id <ID> --show-components |
以下は、Microsoft Windows に固有のインストーラオプションです。これらを使用して、デフォルトのインストールパスを柔軟に変更できます。
オプション |
用例 |
説明 |
|---|---|---|
|
|
このキーは、Plesk データのうち経時的変化がほとんどない部分を指定します。アプリケーションコード、構成ファイル、ユーティリティなどが含まれます。 |
|
|
このキーは、Plesk データのうち経時的変化が大きい部分を指定します。顧客データベース、APS パッケージ、ログファイルなどが含まれます。 |
|
|
このキーは、全顧客のドメインのコンテンツが保存されるディレクトリのパスを指定します。通常、これは Plesk コンテンツの大部分を占めます。 |
インストーラオプションをすべて表示するには、以下を実行します。
plesk-installer.exe --help
例 1:ミラーから Plesk を特定のコンポーネントとともにインストールする
The following command installs Plesk Obsidian 18.0.75 for Windows (release ID is
'PANEL_18_0_75_WIN') from a mirror set up on the server
'mirror.example.com' available via HTTP. Installation files will
temporarily be stored at the %SystemDrive%\Parallels\ folder, and the
installation status will be reported to the email admin@example.com.
The installed components are base Plesk packages, Microsoft DNS,
MailEnable mail server, and the PHP scripting engine.
plesk-installer.exe --source http://mirror.example.com/ ^
--target %SystemDrive%\Parallels ^
--select-release-id PANEL_18_0_75_WIN ^
--install-component base ^
--install-component dns ^
--install-component mailenable ^
--install-component php5 ^
--notify-email admin@example.com
(キャラット ^ 文字によって長い 1 行のコマンドを複数行に分けて読みやすくすることができます。)
例 2:Plesk を利用可能なすべてのコンポーネントとともにインストールする
The following command performs the complete installation (all available
product components are installed) of Plesk Obsidian 18.0.75 for Windows (release ID is
PANEL_18_0_75_WIN) from the Plesk Update server. All installer output
will be redirected to an XML file.
plesk-installer.exe --select-release-id PANEL_18_0_75_WIN ^
--install-everything --enable-xml-output
例 3:カスタムロケーションに Plesk をインストールする
plesk-installer.exe --select-product-id panel ^
--select-release-id PANEL_18_0_75_WIN ^
--install-everything ^
--set-option "PLESK_INSTALLDIR=C:\Plesk Dir" ^
--set-option "PLESK_DATADIR=C:\Plesk Data" ^
--set-option "PLESK_VHOSTSDIR=C:\Plesk Vhosts"
(キャラット ^ 文字によって長い 1 行のコマンドを複数行に分けて読みやすくすることができます。)