I\'ve just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha.
HTML files in the web host director work prior to php
Make sure you have everything properly setup.
sudo apt-get install php7.2-fpm sudo service nginx restart sudo service php7.2-fpm restart
This will generate file /run/php/php7.2-fpm.sock
/run/php/php7.2-fpm.sock