How to update Plesk via the Command Line
You can update Plesk via the Web Interface (under Tools and Settings – Updates and Upgrades). However sometimes the interface times out, or browsers get confused – therefore it’s good to know that you can apply updates via the command line interface as well. In this article I’ll show you how (in Linux – I don’t know much about running Plesk on Windows I’m afraid).
We need to download the standard installer script for this. It’s a powerful little tool which can also be used to add or remove components from the current Plesk installation, or to install Plesk on a barebones server.
As of 2015 the link can be found here:
http://www.odin.com/products/plesk/download/
If you click the option “Download Plesk installer for Linux”, you’ll see the actual script open in a new browser tab. Not what we want, although you could copy and paste this into a new file on your Linux system. Instead, right-click on the link and choose “Copy Link” instead.
e.g. http://autoinstall.plesk.com/plesk-installer?_ga=1.201914193.1351888696.1440784822
With that link in your clipboard, connect to your server via SSH and download the file with something like wget:
wget http://autoinstall.plesk.com/plesk-installer?_ga=1.201914193.1351888696.1440784822
This will result in a file called “plesk-installer” with some nasty parameters at the end, several hundred characters in total. Let’s rename it to something easier and tweak the execution permissions:
mv plesk-installer* plesk-installer
chmod +x plesk-installer
Now we can run the script like so:
./plesk-installer
Follow the instructions to upgrade Plesk.
0 Comments
Please log in to leave a comment.