Script for installing Parallels Installer binary from a network location.

This sample script is applicable in cases when the Parallels Installer binary is obtained directly from a network location (the sample URL http://example.com/type_parallels_installer_name_here should be substituted with a valid installer download link).

#!/bin/sh

SERVERS_LIST=”node1.example.com node2.example.com”

for current_server in $SERVERS_LIST; do

ssh -f root@$current_server ‘wget http://example.com/type_parallels_installer_name_here -o parallels_installer;chmod 755 ./parallels_installer;./parallels_installer –source http://updates.example.com/ –target /tmp/panel –select-release-id PLESK_10_0_0 –install-component base –install-component postgresql –install-component spamassassin –notify-email admin@serverbuddies.com’
done

Implementation and Execution of an installation script.

Script below is applicable in cases when Parallels Installer is previously uploaded to the target server and the execution bit is set in its permissions.

#!/bin/sh
SERVERS_LIST=”node1.example.com node2.example.com”
for current_server in $SERVERS_LIST; do
scp parallels_installer root@$current_server:
ssh -f root@$current_server “parallels_installer –source http://updates.example.com/ –target /tmp/panel –select-release-id PLESK_10_0_0 –install-component base –install-component postgresql –install-component asp –notify-email admin@domain-name.com”
done

To avoid being prompted for password each time you connect via SSH to the servers where the Panel should be installed, place your public key to the list of authorized keys of a user on whose behalf the script is run on each server.

Reference: http://parallels.com/

Parallels Installer options

To know more about options related to upgrading already installed Panel or the host operating system, issue the following command:

parallels_installer –help

By default, the installer saves the retrieved files in the directory /[current user name]/psa. For instance, if the installer was executed by user root, the /root/psa directory will be created and used. If you want to use a custom directory for storing the retrieved files, use the –target option.

Example:

–target /opt/storage/psa

Using parallels installer to perform complete installation

The following command performs the complete installation (all available product components are installed) of Parallels Plesk Panel 10.0 (release ID is PANEL_10_0_0) from the Parallels Update server. All installer output will be redirected to an XML file.

./parallels_installer –select-release-id PLESK_10_0_0 –install-everything –enable-xml-output

Reference : http://parallels.com/

How to install Parallels Plesk Panel using command line.

To install Parallels Plesk Panel, issue a command of the following format:

parallels_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 Panel packages for installation
[packages source options] = –source [URL]

Examples, Linux/Unix

The following command installs Parallels Plesk Panel 10.0 (release ID is PANEL_10_0_0) from the mirror set up on server available via HTTP at host mirror.example.com. Installation files will temporarily be stored at /tmp/panel, and the installation status will be reported to e-mail admin@example.com. The installed components are base Panel packages, PostgreSQL server, and SpamAssassin spam filter.

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

Reference: http://parallels.com/

« Prev - Next »