Okay. In any case, the reason that I was confused is that I could not find the server running, `which nginx` returned nothing, and `ps -ef | grep nginx` returned nothing (even after trying `sudo service nginx start`). Then I installed nginx and it (nginx) worked. 

But I am running the new script as suggested (`bash -x ghgvc.sh >ghgvc.log 2>&1` (I added an extra `&` so I could `tail -f ghgvc.log`). I am leaving for the day but will send you the results tomorrow.