Previous Topic

Next Topic

Book Contents

Installing Plesk

To install Plesk on a number of servers:

  1. If you have not obtained the Auto-installer utility yet, download a distribution that suits your operating system from the URL http://www.swsoft.com/en/download/plesk8/ and save it on your server's hard drive.

    The utility is a binary file named as follows: psa_installer_v<auto-installer version>_os_<operating system version>_<platform>. If you have Plesk installed on the server, you can use the autoinstaller binary file, which is stored in the directory /usr/local/psa/admin/bin/ on RPM-based Linux and FreeBSD systems, and
    /opt/psa/admin/bin/ on deb-based Linux systems.

  2. Copy the auto-installer binary file to the server where you need to install Plesk.
  3. Set the executable bit in file permissions by running the command:

    chmod 755 autoinstaller

  4. Compile a list of auto-installer options and arguments. Further (at the step 5) you will need to add these options to the installation script we have prepared for you.
    1. To specify what Plesk version to install, you will need to know its release ID. To get a list of versions and their identifiers, run the auto-installer with the following options:

      autoinstaller --show-all-releases

      A list of product versions will be displayed:

      PLESK_7_0 (Plesk 7.0.4)

      PLESK_7_1_7 (Plesk 7.1.7)

      PLESK_8 (Plesk 8)

      Release identifiers are shown on the left, and release names are given in brackets. You will need to use these identifiers when working with the auto-installer through command line. For instance, if you want to install Plesk 8, you will need to specify the release ID 'PLESK_8'.

    2. Decide on the components that you want to install. To retrieve a list of components for the selected product version, use the --show-components option. For Plesk 8 you should type:

      autoinstaller --select-release-id PLESK_8 --show-components

      A list of components will open displaying component identifiers in the left part, and brief descriptions in brackets:

      base (Base packages of Plesk)

      autoinstaller (Plesk Updater)

      fp (Frontpage 2002 support)

      asp (Apache ASP support)

      mailman (Mailman mailing list manager support)

      postgresql (PosgreSQL server support)

      java (Tomcat Java Servlets support)

      spamassassin (SpamAssassin support)

      rblsmtpd (SPAM blocker for QMail daemon)

      mod_python (Apache mod_python module)

      vault (Application vault packages)

      horde-comps (Additional Horde (webmail) components for Plesk)

      docs (Additional Plesk manuals)

      bu (Backup utilities)

      drweb (Dr. Web antivirus)

      ppwse (Plesk Professional Web Site Editor)

      api (Plesk API [former Plesk Agent])

      sshterm (SSHTerm - SSH Terminal java applet)

      pmm (Plesk migration manager)

      psa-firewall (Plesk Firewall module)

      cs-gs (Plesk Counter-Strike game server module)

      psa-vpn (Plesk VPN module)

      battlefield (Plesk Battlefield 1942 game server module)

      psa-fileserver (Plesk Fileserver module and SMB file server package)

      watchdog (Watchdog (System monitoring module))

      sitebuilder (SiteBuilder and SiteBuilder Remote Administration module for Plesk)

      psa-cf (ColdFusion support for Plesk)

      Therefore, for Plesk 8 installation comprising the components 'base', 'postgresql' and 'asp', you will need to use the following string of options and arguments: '--select-release-id PLESK_8 --install-component base --install-component postgresql --install-component asp'.

    3. If you have set up a local mirror of Plesk updates server (as described in the Setting up mirrors section of this guide), you will need to include the following option into the installation script: --source-type network --source <mirror URL>.
    4. By default all downloaded packages are stored in the /root/psa directory. If you wish to use another directory, you should use the option '-- target /<directory name>'.
    5. If you wish to receive installation progress reports by e-mail, you should include the '--notify-email <your e-mail address>' option.
    6. To avoid being prompted for password each time you connect via SSH to the servers where Plesk should be installed, place your public key to the list of authorized keys of user root on each server (see SSH documentation for details on the procedure).
  5. Prepare the installation script based on the example below. Replace the options in the example script with the ones you prepared, and specify server names in the 'SERVERS_LIST=' string separated by white spaces:

    #!/bin/sh

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

    for current_server in $SERVERS_LIST;
    do
    scp psa_installer root@current_server:
    ssh
    -f root@current_server "autoinstaller
    --source-type network --source
    http://updates.example.com/
    --target /tmp/plesk
    --select-
    release-id PLESK_8 --install-component base
    -
    -install-component postgresql --install-component asp
    --notify-email
    admin@example.com"
    done

  6. Run the script. It will copy auto-installer to the specified servers and install Plesk.