UPGRADE OF POSTGRES FAILED - I've tried everything

Somehow, someone installed nginx on your host. You should remove any extraneous web servers from your VPS and then follow the instructions.