{"id":4160,"date":"2014-03-30T08:45:59","date_gmt":"2014-03-30T08:45:59","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/php-cant-load-curl-in-windows-7-64-bit-collection-of-common-programming-errors-2\/"},"modified":"2014-03-30T08:45:59","modified_gmt":"2014-03-30T08:45:59","slug":"php-cant-load-curl-in-windows-7-64-bit-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/php-cant-load-curl-in-windows-7-64-bit-collection-of-common-programming-errors-2\/","title":{"rendered":"php can&#39;t load CURL in Windows 7 64-bit-Collection of common programming errors"},"content":{"rendered":"<p>So I&#8217;ve tried every solution I can find online and nothing seems to be working. I&#8217;m trying to get my first Facebook app off the ground. I&#8217;m running Apache 2.4. I installed PHP 5.4.11 manually to C:\\php. I updated C:\\php\\php.ini changing the extension_dir to<\/p>\n<pre><code>extension_dir = \"c:\\php\\ext\"\n<\/code><\/pre>\n<p>and removing the semicolon in front of<\/p>\n<pre><code>extension=php_curl.dll\n<\/code><\/pre>\n<p>I&#8217;ve also added <code>libeay32.dll<\/code> and <code>ssleay32.dll<\/code> to C:\\Windows, C:\\Windows\\System32, C:\\php, C:\\php\\ext, C:\\Apache24, and C:\\Apache24\\bin. All of these directories are in PATH. When I run phpinfo(), CURL is not listed there at all. I&#8217;ve stopped and restarted Apache after all the changes. No luck. I still get the error<\/p>\n<pre><code>Fatal error:\nUncaught exception 'Exception' with message \n'Facebook needs the CURL PHP extension.' in C:\\Users\\...\\sdk\\src\\base_facebook.php:19 \nStack trace: \n#0 C:\\Users\\...\\sdk\\src\\facebook.php(18): require_once() \n#1 C:\\Users\\...\\index.php(46): require_once('C:\\Users\\Jew\\Do...') \n#2 {main} thrown in C:\\Users\\...\\sdk\\src\\base_facebook.php on line 19\n<\/code><\/pre>\n<p><strong>EDIT #1:<\/strong><br \/>\nAlso, I&#8217;m not using WAMP server.<\/p>\n<p><strong>EDIT #2:<\/strong><br \/>\nI added mod_ssl to <code>httpd.conf<\/code> like this: LoadModule ssl_module modules\/mod_ssl.so<\/p>\n<p>Now <code>phpinfo()<\/code> shows<\/p>\n<p><code>SSL: Supported<\/code><\/p>\n<p>and<\/p>\n<p><code>OpenSSL support: disabled (install ext\/openssl)<\/code><\/p>\n<p><strong>Edit #3:<\/strong> I just found the following errors in my Apache <code>error.log<\/code>.<\/p>\n<pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library 'c:\\\\php\\\\ext\\\\php_curl.dll' - %1 is not a valid Win32 application.\\r\\n in Unknown on line 0\nPHP Warning:  PHP Startup: Unable to load dynamic library 'c:\\\\php\\\\ext\\\\php_openssl.dll' - %1 is not a valid Win32 application.\\r\\n in Unknown on line 0\n<\/code><\/pre>\n<p><strong>Edit #4:<\/strong> I&#8217;ve tried using mod_ssl, but the apache log gives the same error as it does for loading curl. I&#8217;ve taken all that stuff back out.<\/p>\n<p>I&#8217;ve also tried using both of the 5.4.13 versions of <code>php_curl.dll<\/code> from anindya.com\/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows as well as the original that came with PHP 5.4.11 Thread Safe version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;ve tried every solution I can find online and nothing seems to be working. I&#8217;m trying to get my first Facebook app off the ground. I&#8217;m running Apache 2.4. I installed PHP 5.4.11 manually to C:\\php. I updated C:\\php\\php.ini changing the extension_dir to extension_dir = &#8220;c:\\php\\ext&#8221; and removing the semicolon in front of extension=php_curl.dll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4160","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4160"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4160\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}