开发者

Could not load php_curl

开发者 https://www.devze.com 2022-12-27 20:01 出处:网络
I have installed php5.2.13, apache2.2.15 on WindowsXp.Add C:\\php to PATH ssystem variable. I can\'t enable curl extension. I configure extension_dir and remove \";\" form php_curl in php开发者_Stac

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

I can't enable curl extension. I configure extension_dir and remove ";" form php_curl in php开发者_StackOverflow社区.ini but nothing!

I copied ssleay32.dll and libeay32.dll in system32 directory - nothing Error log say: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - Attempt to access invalid address.\r\n in Unknown on line 0

Can someone help me?

Thanks and sorry for bad english.


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

I remove dll files from system32 directory and everything is ok.

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


As weird as it may seem, just enabling mod_ssl extension in httpd.conf

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

resolved my problem.


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号