title: Fatal error: Call to undefined function curl_init() [PHP, Apache, Windows]
body: <p>I am getting the error  "Call to undefined function curl_init()"  [PHP, Apache, Windows] and I have tried everything from my side based on the responses on StackOverflow but still not able to fix it. </p>
  
  <p>I installed php [5.6.25] in c:\php and Apache [2.4] in c:\Apache24</p>
  
  <p>I have php.ini file both under c:\windows and c:\php as apache is loading it from c:\windows (configuration file path) and not from c:\php. </p>
  
  <p>I have uncommented <code>extension=php_curl.dll</code> and mentioned extension_dir = "<code>C:\php\ext</code>" . In the php.ini file, I have also added the following lines</p>
  
  <pre><code>PHP5 module
  
  LoadModule php5_module "c:/php/php5apache2_4.dll"
  
  AddType application/x-httpd-php .php
  
  PHPIniDir "C:/php"
  </code></pre>
  
  <p>I have copied several dlls such as <code>libeay32.dll, ssleay32.dll</code> and php_curl.dll to c:\Windows\System32 folder also. </p>
  
  <p>I have set the path variable to c:\php; and c:\php\ext;</p>
  
  <p>My httpd.conf also has the following statements</p>
  
  <pre><code>PHP5 module
  
  LoadModule php5_module "c:/php/php5apache2_4.dll"
  
  AddType application/x-httpd-php .php
  
  PHPIniDir "C:/php"
  </code></pre>
  
  <p>I am not sure what I am missing as I have been trying to solve it for quite some time. Please suggest a systematic of troubleshooting. Any help is appreciated. I know this question has been asked several time but the issue is that I am still now able to get it working after trying everything.  </p>