In this article, we want to teach you How To Set up Plesk on Ubuntu 20.04.
Plesk is a web-based platform for hosting companies.
A Plesk license allows web hosting companies to easily manage hundreds and even thousands of virtual hosts on a single server, providing their customers with easy and simple access to any products they prefer using.
Plesk is scalable, secure, and can be expanded with many different plugins which are available in bundles or as single modules. It does not require any coding skills from the user and offers top security for business owners and end-users.
Set up Plesk on Ubuntu 20.04
Before you start to install Plesk on Ubuntu 20.04, you need to log in to your server as a non-root user with sudo privileges and set up a basic firewall. To do this, you can follow our article the Initial Server Setup with Ubuntu 20.04.
Now follow the steps below to set up Plesk on your server.
Install Plesk on Ubuntu 20.04
Here we install Plesk on Ubuntu 20.04 by using the Plesk installer console. First, update your local package index with the following command:
sudo apt update
Then, install the wget tool with the command below:
sudo apt install wget
Now you can use the wget command to download the Plesk installer on your Ubuntu 20.04:
sudo wget http://autoinstall.plesk.com/plesk-installer
Here you need to make your downloaded file executable with the following command:
sudo chmod 755 plesk-installer
Use the following command to start your Plesk installation:
You will be asked some questions. First, you need to agree with the terms of services by pressing F. Second, to send information about upgrading and installation issues, enter Y or N by your will.
In the next step, you need to choose the type of Plesk installation on Ubuntu 20.04. Enter F for the recommended installation.
Then, Enter F for upgrading software packages.
When your installation is completed, in your output you will see:
Output Congratulations! The installation has been finished. Plesk is now running on your server. To complete the configuration process, browse either of URLs: * https://mystifying-maxwell.server's-ip.plesk.page/login?secret=jP-sBM4rmtmwvU_MD_bAIHSwOA-xbik0KRmcCKhtHshmE9g2 * https://server's-ip/login?secret=jP-sBM4rmtmwvU_MD_bAIHSwOA-xbik0KRmcCKhtHshmE9g2 Use the username 'admin' to log in. To log in as 'admin', use the 'plesk login' command. You can also log in as 'root' using your 'root' password. Use the 'plesk' command to manage the server. Run 'plesk help' for more info. Use the following commands to start and stop the Plesk web interface: 'service psa start' and 'service psa stop' respectively. If you would like to migrate your subscriptions from other hosting panel or older Plesk version to this server, please check out our assistance options: https://www.plesk.com/professional-services/ The changes were applied successfully.
When your installation is completed, you can use the following command to start your Plesk on Ubuntu 20.04:
sudo service psa start
Check that your service is active and running on your server with the following command:
sudo service psa status
In your output you will see:
Output psa.service - Plesk Panel Loaded: loaded (/lib/systemd/system/psa.service; enabled; vendor preset:> Active: active (exited) since Sat 2021-12-25 12:41:45 CET; 7min ago Main PID: 36841 (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 2282) Memory: 0B CGroup: /system.slice/psa.service
Now we assumed that you have enabled UFW firewall from the requirements. You need to allow the Plesk Admin port and Plesk port through Ubuntu 20.04 firewall:
$ sudo ufw allow 8880/tcp $ sudo ufw allow 8443/tcp
Reload the firewall to apply the new rules:
sudo ufw reload
Access Plesk Web Interface
You can access the Plesk web interface by the provided URL during the installation.
Also, you can type your server’s IP address in your web browser followed by 8880 (insecure port) or 8443 (secure port):
You will see the Plesk login screen.
Enter your server’s root user and password and press login to continue.
After that, you need to enter your Plesk contacts details and set a password for the Plesk admin user. Also, you will be required to provide the License or continue with the free version(trial version). Then, press the Enter Plesk button.
Next, you will see the Plesk welcome dashboard. On the left side of the page click on the Explore Plesk.
Here you will see your Plesk dashboard and you can start using it.
At this point, you learn to Set up Plesk on Ubuntu 20.04.
Hope you enjoy it.
May this article about How To Set up Plesk on AlmaLinux 8 be useful for you.