Install Plesk on AlmaLinux 9 | Best Web Hosting Platform

Posted on

Install Plesk on AlmaLinux 9 | Best Web Hosting Platform

Install Plesk on AlmaLinux 9 | Best Web Hosting Platform

In this guide, we want to teach you How To Install Plesk on AlmaLinux 9. Plesk is an all-in-one hosting management solution that allows server administrators to easily manage all aspects of their online projects. The Plesk control panel includes numerous useful extensions covering data backups, emails, DNS tools, security widgets, and other essential functionalities.

Plesk is one of the few prominent hosting management platforms that support both Linux and Windows users. You can now proceed to the guide steps below on the Orcacore website to set up Plesk Web Hosting Platform on AlmaLinux 9.

Steps To Install and Configure Plesk Web Hosting on AlmaLinux 9

To complete this guide, you must 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 guide on Initial Server Setup with AlmaLinux 9.

1. Install Plesk on AlmaLinux 9

You can install Plesk in different ways. In this guide, you will learn to install Plesk on your AlmaLinux 9 by using the installer console.

First, update your local package index with the following command:

sudo dnf update -y

Download Plesk Installer Console

Then, use the wget command to download the Plesk installer:

sudo wget https://autoinstall.plesk.com/plesk-installer

Next, set the correct permissions for your downloaded file by using the following command:

sudo chmod +x plesk-installer

Run Plesk Installer

At this point, you can run your installer script to install Plesk on AlmaLinux 9:

sudo ./plesk-installer

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 AlmaLinux 9. Enter F for the recommended installation.

Then, Enter F for upgrading software packages.

When your installation is completed, in your output you will see:

Install Plesk on AlmaLinux 9

Note: Remember that the URL link provided above on AlmaLinux 9 will be used to access the Plesk web interface for the first time.

2. Configure Plesk on AlmaLinux 9

At this point, you need to check the PSA systemd service file and edit it to avoid PSA problems on startup.

Open the file with your favorite text editor, here we use the vi editor:

sudo vi /etc/systemd/system/multi-user.target.wants/psa.service

Under the service section, change the Type directive to the simple:

...
[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/bin/true

When you are done, save and close the file.

Reload the system daemon to apply the changes with the command below:

sudo systemctl daemon-reload

Now you can use the following command to start and enable your Plesk service:

# sudo systemctl start psa.service
# sudo systemctl enable psa.service

Verify your Plesk service is active and running on AlmaLinux 9:

sudo systemctl status psa.service
**Output**
● psa.service - Plesk Panel
     Loaded: loaded (/usr/lib/systemd/system/psa.service; enabled; vendor prese>
     Active: active (exited) since Sun 2022-11-27 04:05:40 EST; 26min ago
   Main PID: 99025 (code=exited, status=0/SUCCESS)
        CPU: 1ms
...

Configure Firewall

Here we assumed that you have enabled Firewalld from the requirements. Now you need to allow HTTP and HTTPS traffic through the firewall with the command below:

# sudo firewall-cmd --permanent --add-service=http
# sudo firewall-cmd --permanent --add-service=https

Reload the firewall to apply the new rules:

sudo firewall-cmd --reload

3. Access Plesk Web Hosting Dashboard Web Interface

At this point, you can use the URL provided during your installation on AlmaLinux 9 to access the Plesk web interface.

In my case:

https://hungry-edison.<server-ip-address>.plesk.page/login?secret=ijoQ64BQucjqKsnRJWl6gNvEJ23jDVU4-k65Ib8ufysrFSGM

You will see a page where you need to set your contact details. Also, you need to set a password for the admin user so that the next time you want to log in, you can use your Admin user and password.

You will be required to provide the License or continue with the free version(trial version). Then, press the Enter Plesk button.

Plesk contact info

Here you will see your Plesk dashboard and you can start using it.

AlmaLinux Plesk dashboard

Plesk will save time and money as it makes the daily tasks of managing a server easy. From here you can add your domains and enjoy using your Plesk.

Conclusion

At this point, you have learned to Install and Configure Plesk on AlmaLinux 9. Plesk on AlmaLinux 9 is used for managing web hosting, websites, and servers, providing a user-friendly control panel for administration and automation tasks.

Hope you enjoy it. Please subscribe to us on Facebook, YouTube, and Instagram.

You may also like these articles:

Install Plesk on Ubuntu 22.04

How To Install Plesk on Debian 11

How To Set up Plesk on CentOS 7

Alternative Solutions for Installing Plesk on AlmaLinux 9

While the console installer is a standard and reliable method for installing Plesk on AlmaLinux 9, alternative approaches exist that can be beneficial in specific scenarios. Here are two different methods:

1. Using the Plesk Docker Image

Docker provides a way to containerize applications, making them portable and easy to deploy. Plesk offers official Docker images, which can simplify the installation process, especially if you’re already familiar with Docker.

Explanation:

Using a Docker image encapsulates Plesk and its dependencies within a container, isolating it from the host system. This can prevent conflicts with other software and makes upgrades and migrations easier. It’s also a great way to quickly test Plesk without making permanent changes to your server.

Steps:

  1. Install Docker: If Docker isn’t already installed, install it using the following commands:

    sudo dnf install docker -y
    sudo systemctl start docker
    sudo systemctl enable docker
  2. Pull the Plesk Docker Image: Pull the desired Plesk image from Docker Hub. For example, to pull the latest Plesk image:

    sudo docker pull plesk/plesk
  3. Run the Plesk Container: Create and run the Plesk container, mapping the necessary ports:

    sudo docker run -d -p 80:80 -p 443:443 -p 8443:8443 --name plesk plesk/plesk
    • -d: Runs the container in detached mode (in the background).
    • -p 80:80 -p 443:443 -p 8443:8443: Maps the host’s ports 80, 443, and 8443 to the container’s corresponding ports. These are the standard ports for HTTP, HTTPS, and Plesk’s administration interface, respectively.
    • --name plesk: Assigns the name "plesk" to the container for easier management.
    • plesk/plesk: Specifies the Docker image to use.
  4. Access Plesk: Once the container is running, access Plesk through your web browser using the server’s IP address or domain name, followed by port 8443 (e.g., https://your_server_ip:8443). You will need to complete the initial Plesk configuration through the web interface.

Code Example:

sudo dnf install docker -y
sudo systemctl start docker
sudo systemctl enable docker
sudo docker pull plesk/plesk
sudo docker run -d -p 80:80 -p 443:443 -p 8443:8443 --name plesk plesk/plesk

2. Automated Installation using a Script

You can automate the Plesk installation process by creating a shell script that executes all the necessary commands. This is useful for deploying Plesk on multiple servers or for creating a reproducible installation process.

Explanation:

A script automates the manual steps outlined in the original guide, reducing the chance of errors and speeding up the installation. This is particularly helpful for system administrators who manage multiple servers and need a consistent and efficient deployment method.

Steps:

  1. Create a Shell Script: Create a new shell script (e.g., install_plesk.sh) and add the following commands:

    #!/bin/bash
    
    # Update package index
    sudo dnf update -y
    
    # Download Plesk installer
    sudo wget https://autoinstall.plesk.com/plesk-installer
    
    # Set executable permissions
    sudo chmod +x plesk-installer
    
    # Run Plesk installer
    sudo ./plesk-installer --all-options
    
    # PSA Service modification
    sudo sed -i 's/Type=notify/Type=simple/' /etc/systemd/system/multi-user.target.wants/psa.service
    sudo systemctl daemon-reload
    
    # Start and enable Plesk service
    sudo systemctl start psa.service
    sudo systemctl enable psa.service
    
    # Configure Firewall
    sudo firewall-cmd --permanent --add-service=http
    sudo firewall-cmd --permanent --add-service=https
    sudo firewall-cmd --reload
    
    echo "Plesk installation complete.  Access Plesk at https://your_server_ip:8443"
  2. Make the Script Executable: Make the script executable:

    sudo chmod +x install_plesk.sh
  3. Run the Script: Execute the script with sudo privileges:

    sudo ./install_plesk.sh

Code Example:

#!/bin/bash

# Update package index
sudo dnf update -y

# Download Plesk installer
sudo wget https://autoinstall.plesk.com/plesk-installer

# Set executable permissions
sudo chmod +x plesk-installer

# Run Plesk installer
sudo ./plesk-installer --all-options

# PSA Service modification
sudo sed -i 's/Type=notify/Type=simple/' /etc/systemd/system/multi-user.target.wants/psa.service
sudo systemctl daemon-reload

# Start and enable Plesk service
sudo systemctl start psa.service
sudo systemctl enable psa.service

# Configure Firewall
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

echo "Plesk installation complete.  Access Plesk at https://your_server_ip:8443"

Note: The --all-options flag in the script tells the Plesk installer to proceed with default configurations without prompting for user input. Adjust this flag or add other options based on your specific requirements. Also, replace your_server_ip with the actual IP address of your server.

These alternative methods offer different approaches to installing Plesk on AlmaLinux 9, catering to various needs and preferences. The Docker method is excellent for isolation and testing, while the automated script is ideal for streamlined and consistent deployments. The original method is a reliable baseline. Choose the method that best fits your workflow and environment. Remember to always consult the official Plesk documentation for the most up-to-date information and best practices when you Install Plesk on AlmaLinux 9. Successfully install Plesk on AlmaLinux 9.

Leave a Reply

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