Whilst NGINX is not at all my strong suit, and others may well be better suited for this, please let me at least try to assist:
Based on a cursory reading, your fpm sock is not loaded.
Please ensure that you check your locations as follows:
- To start, go to etc -> php -> 7.2 -> fpm -> pool.d -> www.conf
- You will see a line that looks like this: listen = "something something" <-- this is the location address.
- If it is not something like /var/run/php/php7.2-fpm.sock (depending on your VM setup) then you should replace it.
- Save the changes, and then run php again (sudo service php7.2-fpm restart)
- Check the folder you downloaded sock to (var/run/php)
- If you get the sock, restart your nginx and retest your site.
If you get an error, that means your nginx setting is wrong, and we will need to visit this.