Installare Pterodactyl Panel su Ubuntu 18.04 Guide download

Installare Pterodactyl Panel su Ubuntu 18.04

In questa guida ti insegnerò ad installare pterodactyl panel su una vps ubuntu 18.04 per gestire i tuoi/tuo server con facilità.

Requisiti

OS: Ubuntu 18.04 (In questa guida)

Virtualizzazione: KVM (Potrebbe funzionare anche OpenVZ)

Una vps pulita e appena installata

Un dominio

Installare le dipendenze (Eseguire i comandi da root)

-------------------------------------------------------------

apt -y install software-properties-common curl

-------------------------------------------------------------

LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php

-------------------------------------------------------------

add-apt-repository -y ppa:chris-lea/redis-server

-------------------------------------------------------------

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

-------------------------------------------------------------

apt update

-------------------------------------------------------------

apt-add-repository universe

-------------------------------------------------------------

apt -y install php7.2 php7.2-cli php7.2-gd php7.2-mysql php7.2-pdo php7.2-mbstring php7.2-tokenizer php7.2-bcmath php7.2-xml php7.2-fpm php7.2-curl php7.2-zip mariadb-server apache2 tar unzip git redis-server

-------------------------------------------------------------

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

-------------------------------------------------------------

Installare il pannello

-------------------------------------------------------------

mkdir -p /var/www/pterodactyl

-------------------------------------------------------------

cd /var/www/pterodactyl

-------------------------------------------------------------

curl -Lo panel.tar.gz

https://github.com/pterodactyl/panel/releases/download/v0.7.12/panel.tar.gz

-------------------------------------------------------------

tar --strip-components=1 -xzvf panel.tar.gz

-------------------------------------------------------------

chmod -R 755 storage/* bootstrap/cache/

-------------------------------------------------------------

Settaggio MySQL

-------------------------------------------------------------

mysql -u root -p

-------------------------------------------------------------

USE mysql;

-------------------------------------------------------------

CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'laTuaPassword';

-------------------------------------------------------------

CREATE DATABASE panel;

-------------------------------------------------------------

GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;

-------------------------------------------------------------

FLUSH PRIVILEGES;

-------------------------------------------------------------

Settaggio CNAME Cloudflare

Cliccare su Add Record

Settaggio del pannello

-------------------------------------------------------------

cp .env.example .env

-------------------------------------------------------------

composer install --no-dev --optimize-autoloader

-------------------------------------------------------------

php artisan key:generate --force

-------------------------------------------------------------

php artisan p:environment:setup

-------------------------------------------------------------

php artisan p:environment:database

-------------------------------------------------------------

php artisan p:environment:mail

-------------------------------------------------------------

php artisan migrate --seed

-------------------------------------------------------------

php artisan p:user:make

-------------------------------------------------------------

chown -R www-data:www-data *

-------------------------------------------------------------

* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1

-------------------------------------------------------------

Creare un file chiamato pteroq.service in /etc/systemd/system

-------------------------------------------------------------

Inserire il seguente testo all'interno del file https://pastebin.com/raw/CugfYiUP

-------------------------------------------------------------

sudo systemctl enable --now pteroq.service

-------------------------------------------------------------

Creare un file chiamato pterodactyl.conf in /etc/apache2/sites-available/

-------------------------------------------------------------

Inserire il seguente testo all'interno del file https://pastebin.com/raw/Z6yCYGJi

-------------------------------------------------------------

sudo ln -s /etc/apache2/sites-available/pterodactyl.conf /etc/apache2/sites-enabled/pterodactyl.conf

-------------------------------------------------------------

sudo a2enmod rewrite

-------------------------------------------------------------

systemctl restart apache2

-------------------------------------------------------------

Installare la daemon

-------------------------------------------------------------

curl -sSL https://get.docker.com/ | CHANNEL=stable bash

-------------------------------------------------------------

systemctl enable docker

-------------------------------------------------------------

GRUB_CMDLINE_LINUX_DEFAULT="swapaccount=1"

-------------------------------------------------------------

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

-------------------------------------------------------------

apt -y install nodejs make gcc g++

-------------------------------------------------------------

mkdir -p /srv/daemon /srv/daemon-data

-------------------------------------------------------------

cd /srv/daemon

-------------------------------------------------------------

curl -L https://github.com/pterodactyl/daemon/releases/download/v0.6.11/daemon.tar.gz | tar --strip-components=1 -xzv

-------------------------------------------------------------

npm install --only=production

-------------------------------------------------------------

sudo npm start

-------------------------------------------------------------

Creare un file chiamato wings.service in /etc/systemd/system

-------------------------------------------------------------

Inserire il seguente testo all'interno https://pastebin.com/raw/RePWAhF1

-------------------------------------------------------------

systemctl enable --now wings

Installazione Completata

Se hai riscontrato problemi ricorda di contattarmi su telegram: @zBackDo_or_

Commenti

Accedi per commentare.

Commenta per primo!

Informazioni

Aggiunto da
Crediti
zBackDo_or_