How to Install StatPing.ng on MXLinux Latest

StatPing.ng is a lightweight and easy-to-use monitoring tool for servers, websites, and applications. In this tutorial, you will learn how to install StatPing.ng on MXLinux Latest.

Step 1: Update your system

Before installing any new packages, it is recommended to update your system to the latest available packages. To update your system, open a terminal and type the following command:

sudo apt update && sudo apt upgrade

Step 2: Install required packages

StatPing.ng requires some additional packages to work properly. To install these packages, open a terminal and type the following command:

sudo apt install nginx php-fpm php-mysql php-curl php-xml php-gd php-mbstring php-zip unzip

Step 3: Download StatPing.ng

You can download the latest version of StatPing.ng from their official website or GitHub repository. In this tutorial, we will download the archive from GitHub:

cd /tmp
wget https://github.com/statping-ng/statping-ng/releases/download/v0.0.2/statping_ng_v0.0.2_linux_amd64.zip

Step 4: Extract StatPing.ng

After downloading StatPing.ng, extract the archive using the following command:

unzip statping_ng_v0.0.2_linux_amd64.zip

Step 5: Move StatPing.ng files to nginx root directory

Now, move the extracted files to the nginx root directory using the following command:

sudo mv statping_ng_v0.0.2_linux_amd64/* /var/www/html/

Step 6: Set permissions

To ensure the proper functioning of StatPing.ng, set the correct permissions with the following commands:

sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R 755 /var/www/html/

Step 7: Configure nginx

Now, configure nginx to serve the StatPing.ng web interface. Open a new file with the following command:

sudo nano /etc/nginx/sites-available/statping

Copy and Paste the following code:

server {
    listen 80;
    server_name your_domain_or_IP_address;

    root /var/www/html;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
    }
}

replace your_domain_or_IP_address with the domain name or IP address that you want to use for StatPing.ng.

Save and close the file by pressing CTRL + X, then Y, then ENTER.

Enable the site with the following command:

sudo ln -s /etc/nginx/sites-available/statping /etc/nginx/sites-enabled/

Finally, restart nginx:

sudo systemctl restart nginx

Step 8: Finish the installation

Access your StatPing.ng installation by visiting http://your_domain_or_IP_address in your web browser. You will be redirected to the setup page.

Follow the steps to complete the installation.

Congratulations! You have successfully installed StatPing.ng on MXLinux Latest.