Applicable to:
- Plesk for Linux
Question
How to install Plesk on Linux?
Answer
Note: For Plesk installation, it is required a fresh Linux server with access to the Internet. It can be created or purchased from any Hosting Provider. Before the installation, make sure that the server meets Plesk Software Requirements. Some of Hosting Providers have preinstalled Plesk as an option or option to install it during the server creation. One of such Hosting Providers is DigitalOcean.
It is possible to install Plesk automatically or using one of the options below:
Automatic installation with Plesk Web Installer
- Go to website https://get.plesk.com/
- Provide server's IP address and enter the server's root password or add a private key.
- Accept the terms of the End-User License Agreement and click Install.
- The installation will be started.
- When the installation finished, click on the login link.
- Do not be afraid of 'secure connection warning', it is normal, just make an exception.
- Set up the email, Plesk 'admin' user password, and choose if a license has been purchased or require a trial. Click Enter Plesk.
Other options
-
Deploy AWS Lightsail instance with Web Installer
-
Create new Access key ID/Secret access key pair on AWS side and download the
.csv
file: -
Specify generated pair on the Web Installer page:
Note: the region can be left chosen by default.
-
Choose the instance plan according to the requirements:
-
Download the default key from a previously selected region (e.g., Virginia on the screenshot above) from LightSail page:
-
Generate the public key using PuttyGen (Windows) or ssh-keygen (Linux/MacOS):
-
Linux/MacOS:
# ssh-keygen -y -f ./LightsailDefaultKey-us-east-1.pem
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTsW2Q/pq+89VQSs+ylSRJgUx5knmr1wxTrD0d4Qh1qonPa+UolYbK+zcxk8PNNdC5PYHseoMMbI33iRbLIixBB9B0tAIa3fJGzpdwjOWJ4mvdlBkAsP96Nw/2J4EefMtXAi9XHzunQY9Z++cbGJz0FYRLjGR5MeaUwOjnAjCGG/1a6lh3mUe5wBg95p+6ECVYjEQkysBfPh1O/vy9CAzTfxqnbmaWzNO2WqaSD7p8hksGJYlnVqjfggPLDQfggJkSNZlY9WtMe3/nepb6wiEs3FUMomecBdMxiqoTaEKK9a8RaTvZBkXcb4C9I/+V+JfenMyR88uliC5S0DSVq09BNote:
LightsailDefaultKey-us-east-1.pem
should be the filename of the private key downloaded at step 4. -
Windows:
-
Import downloaded private key in PuttyGen:
-
Click Generate:
-
Move the mouse to generate entropy and the key:
-
Copy the generated public key (save it in a text file):
-
-
-
Paste the key into the text field on the Web Installer Page (choose enter key manually):
-
Choose the instance name and click CREATE PLESK INSTANCE
-
To proceed with the installation, follow the instructions from Automatic installation with Plesk Web Installer section
-
-
Installing Plesk in one click via SSH
Connect to a server via SSH as a root user to begin the installation.
-
To install Plesk with a basic set of components in one click, run the command (do not copy '#' symbol):
# sh <(curl https://autoinstall.plesk.com/one-click-installer || wget -O - https://autoinstall.plesk.com/one-click-installer)
Note: This method will install the latest Plesk version marked as "General Availability"
-
To install Plesk with a custom set of components in one click, run the command:
# sh <(curl https://autoinstall.plesk.com/plesk-installer || wget -O - https://autoinstall.plesk.com/plesk-installer)
For detailed information about a one-click installation, see:
-
-
Run Plesk with Docker in one click
Connect to a server via SSH as a root user or any other with 'sudo' access to begin the installation.
To run Plesk on Docker, execute the command:
# docker run -d -it -p 80:80 -p 443:443 -p 8880:8880 -p 8443:8443 -p 8447:8447 plesk/plesk
-
Installing Plesk via a browser
If the server's IP address or the hostname can be resolved from the Internet and the port 8447 is opened, Plesk installer can be launched in a browser:
- Connect to a server via SSH as a root to begin the installation.
-
Download Plesk Installer (do not copy '#' symbol):
# wget https://autoinstall.plesk.com/plesk-installer
-
Add execution permissions to Plesk Installer:
# chmod +x plesk-installer
-
Launch Plesk Installer with the command below:
# ./plesk-installer --web-interface
-
Open a browser on the PC and access Plesk Installer on the port 8447 either via an IP address or a hostname. For example:
CONFIG_TEXT: https://203.0.113.2:8447
OR
CONFIG_TEXT: https://server.example.com:8443
For detailed information about an installation via a browser, see:
-
Installing Plesk via a command-line interface
- Connect to a server via SSH as a root user to begin the installation.
-
Download Plesk Installer:
# wget https://autoinstall.plesk.com/plesk-installer
-
Add execution permissions to Plesk Installer:
# chmod +x plesk-installer
-
Launch Plesk Installer with the command below and follow the on-screen instructions:
# ./plesk-installer
For detailed information about an installation via CLI, see:
Comments
11 comments
I was looking for How to install Plesk 10.X OR 11.x Each guide redirects do version 12 and later. I began to combine and the solution is very simple. You need to use the command:
Download:
wget http://autoinstall.plesk.com/plesk-installer
Permission: chmod +x plesk-installer
./plesk-installer --all-versions
@Przemysław, you are absolutely right, to list ll available versions for installation --all-versions key should be used. However Plesk 11.x has already reached its end of life. So I would recommend you to use Plesk 12.x or Plesk Onyx
I'm trying to reinstall the plesk panel and getting below error. I have followed above steps to install the plesk. Please help me
Trying to start service mysqld... mysqld is stopped
Initializing MySQL database: [ OK ]
Starting mysqld: [ OK ]
done
Trying to establish test connection... ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
@Shahama
Please, try the following article.
Trying to start service mysqld... mysqld is stopped. I found a article there but it won't helped.
Hello @Bhuwan Mishra,
There might be many causes of mysqld been failed to start.
To investigate the issue, I recommend to check the corresponding error log:
Debian/Ubuntu
CentOS/RHEL
When the corresponding error is found, please check articles in our Knowledge Base: Plesk Help Center
If any difficulties are met, please submit a request to our Technical Support: How to submit a request to Plesk support?
Does Plesk support Ubuntu server 19.10?
Hi OHOUO YVES DANIEL, we support up to Ubuntu 18 as described here https://docs.plesk.com/release-notes/obsidian/software-requirements/#s2-1
Sto provando plesk, prima l'ho installato su server windows e mi faceva scegliere dove mettere i file del futuro sito ed io non sceglievo il disco principale, fino a qui tutto ok, poi ho provato ad installarlo su linux ed i file del sito volevo metterli in una partizione più grande e non quella dell' s.o. , come devo fare?
Hello Stefano Paolini
This instruction will help to achieve your goal: https://support.plesk.com/hc/en-us/articles/213367009
Please sign in to leave a comment.