title: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'domain.com/wsdl' : failed to load external entity
body: <p>I am switching from one virtual server to another and having problems.</p>
  
  <p>New server is running PHP Version 5.3.3-7+squeeze1. Old is PHP Version 5.2.17.</p>
  
  <p>Simple SOAP script </p>
  
  <pre><code>$client = new SoapClient($url);
  </code></pre>
  
  <p>gives error </p>
  
  <pre><code>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'domain.com/wsdl' : failed to load external entity
  </code></pre>
  
  <p>Even trying file_get_contents fails on the new server but works on the old server.</p>
  
  <pre><code>echo file_get_contents("https://www.google.co.uk/");
  </code></pre>
  
  <p>I've tried to match the php.ini files. allow_url_fopen = On is enabled, as is SOAP and cURL.</p>
  
  <p>Any advice would be really helpful.</p>
  
  <p>Thanks you.</p>