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

  • packages source options define the location where the installer should obtain the Plesk packages for installation. You can use either --source <URL> to specify the URL of a mirror of the Plesk updates server, or --source <path> if the packages are found locally on the file system. If you use neither, the Plesk packages will be retrieved from the Plesk updates server.
  • --select-release-ID option define what Plesk version should be installed. <ID> is a unique Plesk version identifier, like PANEL_12_0_18.
    You can get the list of available Plesk version IDs by running Installer with the --show-releases option. Note that by default, Installer shows you only IDs of the publicly released production versions (learn more about Plesk release tiers in the section Before Installing Plesk). If you want to obtain a full list of available Plesk versions including those intended for product preview and testing purposes, add the --skip-branch-filter option.
  • components installation options define what Plesk components should be installed. You can use either --installation-type Full or --installation-type Typical, or specify individual components for installation with --install-component component1 [--install-component component2 [... [--install-component componentN]]]. You can get the full list of components available for a certain release by running the Installer with the following options: --select-release-id <ID> --show-components.
  • other options include those that define proxy settings, installation logging and so on. For full details, please refer to the Appendix D: Plesk Installer Options.
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:

  • PLESK_INSTALLDIR. This key designates the part of Plesk data that insignificantly change over time. This includes the application code, configuration files, utilities, and so on.
  • PLESK_DATADIR. This key designates the part of Plesk data that significantly change over time. This includes customer databases, APS packages, log files, and so on.
  • PLESK_VHOSTSDIR. This key designates the path where the contents of all your customers' domains will be stored. This is typically the largest part of the Plesk contents.

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
 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.