Introducing ‘plesk installer’ (Linux)

Have you ever felt that using Parallels Installer from command line is somewhat daunting? It has a lot of options and you usually need to get required “spell” from KB articles or official forums. For example, to manually install latest updates onto your system previously you would have to run (tediously typing each option!):

# /usr/local/psa/admin/sbin/autoinstaller --select-product-id plesk --select-release-current \
  --upgrade-installed-components

No more! Introducing installer subcommand for plesk command-line hub.

We’ve already introduced plesk command-line hub in one of the previous posts. It facilitates working with Plesk utilities from shell. Starting from Plesk 11.5.30 update 12 ‘plesk installer‘ will provide you with useful shortcuts and tab-completion for Parallels Installer options. Observe:

# plesk installer --sh<TAB>
# plesk installer --show-<TAB><TAB>

--show-all-releases        --show-installation-types  --show-packages
--show-components          --show-os-list             --show-releases

# plesk installer --show-r<TAB>
# plesk installer --show-releases <ENTER>

---  prod_id  release_id  (description) (branch) ---
plesk PLESK_11_5_30 (Parallels Plesk Panel 11.5.30) (currently installed)

You can also simply run plesk installer which is equivalent to running /usr/local/psa/admin/sbin/autoinstaller.

However tab-completion is just a convenience. We don’t believe many users actually type Parallels Installer commands too often. What you might find really useful is a couple of shortcuts for Parallels Installer.

# plesk installer install-all-updates

This simple command will install all available updates within current Plesk version. Don’t worry, Plesk will not be accidentally upgraded to the next version with this command.

# plesk installer install-panel-updates

This command will do the same, but install only Plesk updates instead. I.e., system components such as MySQL and PHP will not be updated unless it is required for proper Plesk functioning. This is useful if you want to keep your system stable and has similar effect to disabling “Automatically install updates for third-party components” in Tools & Settings > Update and Upgrade Settings in Panel. This command will also reinstall latest patch for Plesk if latest update is already installed.

We recommend this command for manual installation of micro-updates.

 

Please note that plesk tool is open for further improvement based on your suggestions. Even more — the tool is open source and you can directly contribute to its development! And one last hint: the tool will (partially) work even on older Plesk versions, just follow instructions on the github page.

2 Comments

  1. A good update to autoinstaller is to specify time to run for each container. Or specify to autoupdate one container at a time instead of the current method of starting auto installer process for each container at the same time (which causes major resource issues)

    • Generally updates are randomized over a week, so they shouldn’t update all at the same time. Virtuozzo itself shall randomize daily tasks within 6 hours timeframe. However if you would want to control additionally within a day, you can play with cron settings and edit /etc/crontab for setting comfortable time for daily and weekly tasks:

      SHELL=/bin/bash
      PATH=/sbin:/bin:/usr/sbin:/usr/bin
      MAILTO=root
      HOME=/

      # run-parts
      37 * * * * root run-parts /etc/cron.hourly
      17 0 * * * root run-parts /etc/cron.daily
      4 0 * * 0 root run-parts /etc/cron.weekly
      15 5 10 * * root run-parts /etc/cron.monthly

      This is a sample file content provided solely for illustration purposes. It shall not be copied to any server.

Add a Comment

Your email address will not be published. Required fields are marked *

GET LATEST NEWS AND TIPS

  • Yes, please, I agree to receiving my personal Plesk Newsletter! WebPros International GmbH and other WebPros group companies may store and process the data I provide for the purpose of delivering the newsletter according to the WebPros Privacy Policy. In order to tailor its offerings to me, Plesk may further use additional information like usage and behavior data (Profiling). I can unsubscribe from the newsletter at any time by sending an email to [email protected] or use the unsubscribe link in any of the newsletters.

  • Hidden
  • Hidden
  • Hidden
  • Hidden
  • Hidden
  • Hidden

Related Posts

Knowledge Base

Plesk uses LiveChat system (3rd party).

By proceeding below, I hereby agree to use LiveChat as an external third party technology. This may involve a transfer of my personal data (e.g. IP Address) to third parties in- or outside of Europe. For more information, please see our Privacy Policy.

Search
Generic filters
Exact matches only
Search in title
Search in content
Search in excerpt