mysql -u root –p (gewoon enter drukken voor pwd)
CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY '***********';
CREATE DATABASE panel;
GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1';
GRANT ALL PRIVILEGES ON . TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;
Exit
cp .env.example .env
composer install --no-dev --optimize-autoloader
Deze laatste worrdt boos omdat we het als root doen
Dus exit sudo
cd /var/www/pterodactyl
Zonder sudo doet het geen hol
Dus toch met sudo -I
Nano .env om de appkey
pterodactyl APP_KEY=base64:eB+IXo+YTch4pbuoyT2wk2r0chxzpH1XFII/7hhT/Rw=
! [NOTE] It is highly recommended to not use "localhost" as your database host as we have seen frequent socket
! connection issues. If you want to use a local connection you should be using "127.0.0.1".
Database Host [127.0.0.1]:
> 127.0.0.1
Database Port [3306]:
> 3306
Database Name [panel]:
> panel
! [NOTE] Using the "root" account for MySQL connections is not only highly frowned upon, it is also not allowed by this
! application. You'll need to have created a MySQL user for this software.
Database Username [pterodactyl]:
> pterodactyl
Database Password:
>
Mail config
Which driver should be used for sending emails? [SMTP Server]:
[smtp ] SMTP Server
[sendmail] sendmail Binary
[mailgun ] Mailgun Transactional Email
[mandrill] Mandrill Transactional Email
[postmark] Postmark Transactional Email
> smtp
SMTP Host (e.g. smtp.gmail.com) [smtp.example.com]:
> **********************
SMTP Port [25]:
> 25
SMTP Username []:
> [email protected]
SMTP Password:
>
Encryption method to use [TLS]:
[tls] TLS
[ssl] SSL
[ ] None
> tls
Email address emails should originate from [[email protected]]:
> [email protected]
Name that emails should appear from [Pterodactyl Panel]:
> Pterodactyl panel
php artisan migrate --seed –force
Dit gaf problemen omdat er iets mis was met collation
nano /etc/mysql/mariadb.conf.d/50-server.cnf >>en dan waarde van internet geplukt
Systemctl stop/start mariadb
En dan werkt commando
root@Hermes:/var/www/pterodactyl# php artisan p:user:make
Is this user an administrator? (yes/no) [no]:
> yes
Email Address:
> [email protected]
Username:
> beheerder
First Name:
> b
Last Name:
> l
Passwords must be at least 8 characters in length and contain at least one capital letter and number.
If you would like to create an account with a random password emailed to the user, re-run this command (CTRL+C) and pass the `--no-password` flag.
Password:
>
+----------+--------------------------------------+
| Field | Value |
+----------+--------------------------------------+
| UUID | 913d7a88-f237-4d18-8323-09cf9222a144 |
| Email | [email protected] |
| Username | beheerder |
| Name | b l |
| Admin | Yes |
+----------+--------------------------------------+
Paswoord is dat met ****
chown -R www-data:www-data /var/www/pterodactyl/*
Ok, wat heb ik hiertussen gedaan
Nginx wou niet starten omdat poort 80 al ingenomen was
fuser -k 80/tcp
service nginx start
systemctl status nginx.service
Docker install
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc;
Add comment