So I've tried every solution I can find online and nothing seems to be working. I'm trying to get my first Facebook app off the ground. I'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 = "c:\php\ext"
and removing the semicolon in front of
extension=php_curl.dll
I've also added libeay32.dll
and ssleay32.dll
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've stopped and restarted Apache after all the changes. No luck. I still get the error
Fatal error:
Uncaught exception 'Exception' with message
'Facebook needs the CURL PHP extension.' in C:\Users\...\sdk\src\base_facebook.php:19
Stack trace:
#0 C:\Users\...\sdk\src\facebook.php(18): require_once()
#1 C:\Users\...\index.php(46): require_once('C:\Users\Jew\Do...')
#2 {main} thrown in C:\Users\...\sdk\src\base_facebook.php on line 19
EDIT #1:
Also, I'm not using WAMP server.
EDIT #2:
I added mod_ssl to httpd.conf
like this:
LoadModule ssl_module modules/mod_ssl.so
Now phpinfo()
shows
SSL: Supported
and
OpenSSL support: disabled (install ext/openssl)
Edit #3:
I just found the following errors in my Apache error.log
.
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
PHP 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
Edit #4: I've tried using mod_ssl, but the apache log gives the same error as it does for loading curl. I've taken all that stuff back out.
I've also tried using both of the 5.4.13 versions of php_curl.dll
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.