PHP Warning: PHP Startup: Unable to load dynamic library php_curl.dll impossibile find

前端 未结 5 604
感情败类
感情败类 2021-01-12 09:51

I have Windows 10 with WAMP server (Apache 2.4.9, PHP 5.5.29 VC11 x64, e MySQL). All works fine, but now I will use curl extension.

I go into C:\\wamp\\bin\\ph

相关标签:
5条回答
  • 2021-01-12 10:03

    i was facing the same error with wamp on windows the problem solved when i deleted another app using php (and making conflict) and reinstall wamp

    0 讨论(0)
  • 2021-01-12 10:04

    Make sure that in php.ini, extension_dir = points to the correct path if it's uncommented.

    0 讨论(0)
  • 2021-01-12 10:07

    What worked for me:

    1. I copied libssh2.dll, libcrypto-1_1-x64.dll, libssl-1_1-x64.dll, ssleay32.dll, libeay32.dll to Apache bin folder. Probably not all of those are needed.

    2. In php.ini, make sure the extension curl is loaded. This will be extension=php_curl.dll for php < 7 and extension=curl in php 7

    3. Restart Apache Service

    0 讨论(0)
  • 2021-01-12 10:20

    PHP Startup: Unable to load dynamic library 'curl' ... Uncommenting 2 lines in the php.ini file solves this

    Open php.ini Remove semicolon to uncomment ;extension_dir = "ext" Remove semicolon to uncomment ;extension=curl Save php.ini

    0 讨论(0)
  • 2021-01-12 10:22

    These steps worked for me:

    1. Add the main php folder onto the Path Env variable in Windows (so libeay32.dll and ssleay32.dll are path-accessible ... some people copy these to Windows/System32 to make them path-accessible but that isn't really elegant way to solve issue)
    2. Add the Apache bin folder onto the Path Env variable in Windows

    3. Copy the file libssh2.dll from the php folder to apache's bin folder (Apache seems to need this for php's curl to work in Windows)

    0 讨论(0)
提交回复
热议问题