自動インストールを実行する

ユーザの入力を必要とせずに Plesk をインストールするには、次のコマンドを実行します。

plesk-installer <パッケージソースオプション> --select-release-id <ID> <コンポーネントインストールオプション> [その他のオプション]

ここで、

デフォルトインストールパスを変更する(Windows)

Plesk は、Windows へのインストールが非常に柔軟です。ユーザは、コマンドラインでデフォルトのインストールパスを変更することが可能です。カスタマイズは --set-option キーで行います。--set-option の値は「<キー>=<値>」という形式で指定します。キーとは、いずれかの Plesk データ部分(以下の説明を参照)を指定する定数であり、値とは、それらのデータを配置する場所のパスです。現在、以下のキーを使用可能です。

--set-option キーの使用例:

plesk-installer.exe --select-product-id panel --select-release-id PANEL_12_0_18_WIN --install-component base --install-component management --install-component spamassassin --install-component webalizer --install-component drweb --set-option "PLESK_INSTALLDIR=C:\Plesk Dir" --set-option "PLESK_DATADIR=C:\Plesk Data" --set-option "PLESK_VHOSTSDIR=C:\Plesk Vhosts"

Linux/Unix の例

1. 以下のコマンドを実行すると、mirror.example.com サーバにセットアップされたミラーから Plesk 12(リリース ID は PANEL_12_0_18)が HTTP 経由でインストールされます。インストールファイルは一時的に /tmp/panel に保存され、インストールステータスはメールアドレス admin@example.com に報告されます。インストールされるコンポーネントは、ベース Plesk パッケージ、PostgreSQL サーバ、および SpamAssassin スパムフィルタです。

./plesk-installer --source http://mirror.example.com/ --target /tmp/panel --select-release-id PANEL_12_0_18 --install-component base --install-component postgresql --install-component spamassassin --notify-email admin@example.com

2. 以下のコマンドを実行すると、Plesk アップデートサーバから Plesk 12(リリース ID は PLESK_12_0_18)が完全インストールされます(つまり、利用可能なすべての製品コンポーネントがインストールされます)。インストーラからのアウトプットはすべて XML ファイルにリダイレクトされます。

./plesk-installer --select-release-id PANEL_12_0_18 --install-everything --enable-xml-output

Windows の例

1. 以下のコマンドを実行すると、mirror.example.com サーバにセットアップされたミラーから Plesk 12(リリース ID は PANEL_12_0_18_WIN)が HTTP 経由でインストールされます。インストールファイルは一時的に %SystemDrive%\Parallels\ に保存され、インストールステータスはメールアドレス admin@example.com に報告されます。インストールされるコンポーネントは、ベース Plesk パッケージ、Bind ネームサーバ、MailEnable メールサーバ、PHP スクリプティングエンジン、Presence Builder、および Horde ウェブメールです。

plesk-installer.exe --source http://mirror.example.com/ --target %SystemDrive%\Parallels --select-release-id PANEL_12_0_18_WIN --install-component base --install-component dns --install-component mailenable --install-component php5 --install-component sitebuilder --install-component webmail --notify-email admin@example.com

2. 以下のコマンドを実行すると、Plesk アップデートサーバから Plesk 12(リリース ID は PANEL_12_0_18_WIN)が完全インストールされます(つまり、利用可能なすべての製品コンポーネントがインストールされます)。インストーラからのアウトプットはすべて XML ファイルにリダイレクトされます。

plesk-installer.exe --select-release-id PANEL_12_0_18_WIN --install-everything --enable-xml-output