Running Automated Installations

To install Plesk without requiring any user input, run the command:

plesk-installer <packages source options> --select-release-id <ID> <components installation options> [other options]

where

Modifying Default Installation Paths (Windows)

Plesk provides extra flexibility for installations on Windows: It lets users modify its default installation paths from command-line. The customization is granted by the --set-option key. The --set-option value should be a "key=value", where key is a constant that specifies one of the parts of Plesk's data, and the value is the path where you want these data to be located. Currently, the following keys are available:

This sample demonstrates how to use the --set-option key:

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"

Examples, Linux/Unix

1. The following command installs Plesk 12 (release ID is PANEL_12_0_18) from a mirror set up on the server mirror.example.com available via HTTP. Installation files will temporarily be stored at /tmp/panel, and the installation status will be reported to the email admin@example.com. The installed components are base Plesk packages, PostgreSQL server, and SpamAssassin spam filter.

./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. The following command performs the complete installation (all available product components are installed) of Plesk 12 (release ID is PANEL_12_0_18) from the Plesk Update server. All installer output will be redirected to an XML file.

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

Examples, Windows

1. The following command installs Plesk 12 (release ID is PANEL_12_0_18_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, Bind name server, MailEnable mail server, PHP scripting engine, Presence Builder, and Horde Webmail.

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. The following command performs the complete installation (all available product components are installed) of Plesk 12 (release ID is PANEL_12_0_18_WIN) from the Plesk Update server. All installer output will be redirected to an XML file.

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