One of many 502 Bad Gateway Nginx phpMyAdmin

If you are a layman in setting up and server configs, then the following problem may arise – after installing phpMyAdmin, when you go to the address you specified, an error 502 is issued, while usually the nginx logs are empty, and the nginx -t configuration test did not show any errors.

In my case, already a couple of times, the error was in the following – the value is written in the config files

fastcgi_pass unix:/run/php-fpm/www.sock

Although the working value for the server, set according to the instructions earlier, should be

fastcgi_pass unix:/run/php-fpm/php-fpm.sock

After fixing, in order to calm ourselves, we check the nginx -t configs again and restart the systemctl reload nginx service.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *