title: Error 500 while trying to save .pdf in server using DOMPDF
body: <p>I have read lots of questions about this topic, but none of their solutions have been useful to me. I am trying to upload a pdf file created by DOMFILE to my server, but I get 500 error.</p>
  
  <p>I have looked in my access_log and error_log but there is nothing.  I have also checked permissions through Filezilla, and they are correct (please, tell me if I have done it well): </p>
  
  <p><a href="https://i.stack.imgur.com/oL9ja.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oL9ja.png" alt="enter image description here"></a> </p>
  
  <p>I have made my code very simple just to focus on this problem:</p>
  
  <pre><code>&lt;?php
  require_once "dompdf/autoload.inc.php";
  
  $html =
      '&lt;html&gt;&lt;body&gt;'.
      '&lt;p&gt;Some data to be transformed to pdf.&lt;/p&gt;'.
      '&lt;/body&gt;&lt;/html&gt;';
  
  $dompdf = new DOMPDF();
  $dompdf-&gt;load_html($html);
  $dompdf-&gt;set_paper( "a4" , "portrait");
  $dompdf-&gt;render();
  
  $pdf = $dompdf-&gt;output();
  
  file_put_contents("test.pdf", $pdf);
  ?&gt;
  </code></pre>