#Installation problem

2 messages · Page 1 of 1 (latest)

prime patio
#

After following these instructions

using ubuntu 20.04 and mariadb

https://pterodactyl.io/panel/1.0/getting_started.html#installation

then I've configured the server for nginx without ssl

https://pterodactyl.io/panel/1.0/webserver_configuration.html#nginx-without-ssl

now when I access http://server-ip/ I get 502 Bad Gateway

All services are working

systemctl status nginx

● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-07-19 18:20:07 CEST; 35min ago
Docs: man:nginx(8)
Main PID: 72283 (nginx)
Tasks: 5 (limit: 7056)
Memory: 6.0M
CGroup: /system.slice/nginx.service
├─72283 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─72284 nginx: worker process
├─72285 nginx: worker process
├─72286 nginx: worker process
└─72287 nginx: worker process

Jul 19 18:20:06 vmi2027752.contaboserver.net systemd[1]: Starting A high performance web server and a reverse proxy server...
Jul 19 18:20:07 vmi2027752.contaboserver.net systemd[1]: Started A high performance web server and a reverse proxy server.

status pteroq.service

● pteroq.service - Pterodactyl Queue Worker
Loaded: loaded (/etc/systemd/system/pteroq.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-07-19 18:22:25 CEST; 34min ago
Main PID: 72310 (php)
Tasks: 1 (limit: 7056)
Memory: 30.4M
CGroup: /system.slice/pteroq.service
└─72310 /usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3

Jul 19 18:22:25 vmi2027752.contaboserver.net systemd[1]: Started Pterodactyl Queue Worker.

redis-server is the same running as well.

But I don't why the website gives me 502 Bad Gate way

slender shoalBOT
#

You will normally see 502 bad gateway error when php-fpm can't be reached by your web server. This can be due to a wrong path, it not running or wrong permissions. Confirm that it is running and using the correct php-fpm version in the config pterodactyl.conf file. It would be attempting to use PHP 8.1 by default. When using other PHP versions, make sure to change the php-fpm version in your config to match your used PHP version.

Not sure where to find the server block file? Type .webconf and I will respond with more instructions. Web server error logs can provide additional details.