Installing Plesk for Linux in Unattended Mode

  1. Obtain the installer script

    Download the installer script:

    # wget https://installer.plesk.com/plesk-installer

    Enable execution mode for the downloaded installer script:

    # chmod +x ./plesk-installer

  2. Launch the installer with necessary options

    To install Plesk without requiring any user input, run the installer script providing all the necessary information through the corresponding options:

    #sh ./plesk-installer install <RELEASE> <OPTIONS>

The following parameters are used to define the specific Plesk release you wish to install.

Parameter Use Explanation

Product ID

install plesk

'plesk' is the product ID for Plesk.

Install the recommended set of components of the latest generally available release of Plesk:

# ./plesk-installer install plesk

If no product ID is specified explicitly, 'plesk' is used by default.

Release tier

install testing

Specify the release tier for the Plesk release.

Install the latest available preview release of Plesk:

# ./plesk-installer install testing

Release version

install plesk 17.0.17

Specify the release by the exact release version.

# ./plesk-installer install plesk 17.0.17

Release ID

install PLESK_17_0_17

Specify the release by the release ID.

# ./plesk-installer install PLESK_17_0_17

Use the list-all command to view all the available release IDs:

# ./plesk-installer list-all

The following options are used to specify additional information.

Option Use Explanation

--source

--source <URL>

or

--source <PATH>

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.

For information on managing local mirror repositories, see Mirroring Plesk Autoinstall Servers.

--preset

--preset <PRESET>

Choose one of the predefined sets of components for installation: Recommended, Full, or Custom.

# ./plesk-installer install PLESK_17_0_17 --preset Full

--with

--with <COMPONENTS>

Add listed components to the selected preset.

# ./plesk-installer install PLESK_17_0_17 --preset Full --with git docker

--without

--without <COMPONENTS>

Exclude listed components from the selected preset.

# ./plesk-installer install PLESK_17_0_17 --preset Full --without java horde

--components

--components <COMPONENTS>

Install only listed components.

# ./plesk-installer install PLESK_17_0_17 --components panel postgresql

Use the list --components command to view all the available components:

# ./plesk-installer list PLESK_17_0_17 --components

To view the available installer commands, run:

# ./plesk-installer help

To view information on the extended option-based interface, run:

# ./plesk-installer --help-options

Example 1: Installing Plesk from a mirror, specific components

The following command installs Plesk 17 (release ID is 'PLESK_17_0_17') 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 install PLESK_17_0_17 --source http://mirror.example.com/ --target /tmp/panel --components base postgresql spamassassin --notify-email admin@example.com

Example 2: Installing Plesk on a number of servers, recommended configuration

This script performs a typical installation of the latest Plesk version on the specified servers.

#!/bin/sh

SERVERS_LIST="node1.example.com node2.example.com"

for current_server in $SERVERS_LIST; do
ssh -f root@$current_server 'wget https://installer.plesk.com/plesk-installer -O - | sh /dev/stdin --source https://installer.plesk.com/ --target /tmp/plesk-installation --select-product-id plesk --select-release-latest --installation-type "Recommended" --notify-email admin@example.com'
done
 

Leave your feedback on this topic here

If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.