title: PhpWord - TemplateProcessor: error copy template
body: <p>I have developed a Laravel app that read a .docx template, populate and save it in pdf format.
  On my pc and some server it works greatly, but with a new Debian 9 VPS I have a strange error. When I create the template (the PhpWord code try to copy my template from /var/www/myapp/... to /tmp/ ), I have this error:</p>
  
  <pre><code>copy(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  </code></pre>
  
  <p>This it the line in TemplateProcessor.php that trow the exception:</p>
  
  <pre><code>if (false === copy($documentTemplate, $this-&gt;tempDocumentFilename)) {
              throw new CopyFileException($documentTemplate, $this-&gt;tempDocumentFilename);
  }
  </code></pre>
  
  <p>Can you help me? I have a Debian 9 VPS, Nginx and PHP 7.2. 
  Thanks!</p>