title: Php curl is active but curl_exec always returns false
body: <p>I'm trying to get data from external website using <code>cURL</code> in PHP but it's not working. </p>
  
  <p>CURL is enabled in <code>phpinfo()</code>. </p>
  
  <p>My test code is not working in <code>CentOS 8/nginx server</code> where the <code>$result=FALSE</code>, but works fine in <code>Debian9/nginx</code>.</p>
  
  <pre><code>$ch=curl_init ("http://somogyivakok.hu/");
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
  $result=curl_exec ($ch);
  curl_close ($ch);
  </code></pre>
  
  <p>Do you have any idea what is wrong? </p>
  
  <blockquote>
    <p>cURL Version is 7.61.</p>
  </blockquote>