it seem php not install or not started
try something like:
sudo apt-get install php7.2-fpm sudo service nginx restart sudo service php7.2-fpm restart
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just install PHP on the Ubuntu server in the Digitalocean and create a simple PHP file just for testing
'<?php phpinfo();'
I got this error: 502 Bad Gateway nginx/1.18.0 (Ubuntu)
I check the errors in nginx’s error log and got this one:
2020/10/01 00:16:26 [crit] 23593#23593: *15 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 212.###.###.182, server: 46.#####.106, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "46..###.###106"
Please or to participate in this conversation.