How to Install PufferPanel on OpenSUSE Latest

PufferPanel is a free, open-source game server management panel that provides an easy-to-use interface for managing game servers. In this tutorial, we will guide you through the step-by-step process of installing PufferPanel on OpenSUSE Latest.

Prerequisites

Before we begin, there are a few prerequisites you will need:

Step 1: Update Your System

To ensure that your system is up-to-date and secure, you should always update it before installing any new software. Run the following commands to update your system:

sudo zypper update

Step 2: Install Dependencies

The next step is to install the necessary dependencies that PufferPanel requires. Run the following commands to install the required packages:

sudo zypper install -y curl mariadb mariadb-client mariadb-server php php-curl php-dom php-gd php-json php-mbstring php-mysql php-posix php-zip

Step 3: Download and Install PufferPanel

Now it's time to download and install PufferPanel. Run the following commands to download and install PufferPanel:

curl -L https://www.pufferpanel.com/scripts/install.py | sudo python

This command will download and run the PufferPanel installation script. You will be prompted to confirm the installation, and then the installation process will run automatically.

Step 4: Configure PufferPanel

After the installation process is complete, you need to configure PufferPanel by setting up your web server and database. PufferPanel supports Nginx and Apache2 web servers, so you can choose the one that best suits your needs.

Configure the Web Server

Nginx

If you are using Nginx, run the following commands to create a new virtual host file for PufferPanel:

sudo nano /etc/nginx/conf.d/pufferpanel.conf

Paste the following configuration into the file:

server {
    listen 80;
    server_name your_domain.com;
    root /srv/pufferpanel;
    index index.php;

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

    location /themes {
        deny all;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}

Update the server_name to your domain name or IP address.

Apache2

If you are using Apache2, run the following commands to create a new virtual host file for PufferPanel:

sudo nano /etc/apache2/conf.d/pufferpanel.conf

Paste the following configuration into the file:

<VirtualHost *:80>
    ServerName your_domain.com
    DocumentRoot /srv/pufferpanel
    DirectoryIndex index.php

    <Directory /srv/pufferpanel>
        AllowOverride All
        Order deny,allow
        Allow from all
    </Directory>

    <Directory /srv/pufferpanel/themes>
        Deny from all
    </Directory>

    <FilesMatch \.php$>
        SetHandler "proxy:unix:/run/php-fpm/php-fpm.sock|fcgi://localhost/"
    </FilesMatch>
</VirtualHost>

Update the ServerName to your domain name or IP address.

Configure the Database

Run the following commands to create and configure the PufferPanel database:

sudo mysql -uroot -p

Enter your MySQL root password when prompted. Then, run the following commands to create a new database and user for PufferPanel:

CREATE DATABASE pufferpanel;
CREATE USER 'pufferpanel'@'localhost' IDENTIFIED BY 'pufferpanel_password';
GRANT ALL PRIVILEGES ON pufferpanel.* TO 'pufferpanel'@'localhost';
FLUSH PRIVILEGES;
exit;

Finalize the Configuration

After configuring your web server and database, you need to finalize the configuration of PufferPanel by running the following commands:

sudo pufferpanel user add --admin
sudo pufferpanel key create
sudo systemctl restart nginx # or sudo systemctl restart apache2

This will create a new admin user, generate a new API key for PufferPanel, and restart your web server.

Step 5: Access PufferPanel

Now that you have installed and configured PufferPanel, you can access it by opening a web browser and navigating to http://your_domain.com (update with your domain name or IP address). You will be prompted to login with your admin account credentials.

Congratulations! You have successfully installed and configured PufferPanel on OpenSUSE Latest.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!