Failed to load php_curl

I installed php5.2.13, apache2.2.15 on WindowsXp.Add C: \ php to ssystem PATH variable.

I am unable to enable the curl extension. I set up extension_dir and remove the ";" form php_curl in php.ini but nothing!

I copied ssleay32.dll and libeay32.dll to the system32 directory - nothing Error Log: PHP Warning: PHP Startup: Unable to load dynamic link library "C: \ php \ ext \ php_curl.dll" - Try to access an invalid address. \ R \ n in Unknown on line 0

Can anyone help me?

Thanks and sorry for the bad english.

+2


a source to share


3 answers


I found a solution: mod_ssl was disabled in http.conf.

I delete the dll files from the system32 directory and everything is fine.



So, just need to enable the curl extension in php.ini. And enable mod_ssl in httpd.conf

+3


a source


Oddly enough, just by enabling the mod_ssl extension in httpd.conf

LoadModule ssl_module C:\YOUR\PATH\apache-2.2\modules\mod_ssl.so

      



solved my problem.

+2


a source


I had this error after upgrading from PHP 7.2 to 7.3.

The solution was to download the new version of Apache from https://www.apachelounge.com/download/ . New Apache / bin had libcurl.dll.

0


a source







All Articles