PHP cURL is not loaded on modifying php.ini

后端 未结 3 2079
终归单人心
终归单人心 2021-01-18 03:11

To enable cURL in PHP I uncomment this line

extension=php_curl.dll

But cURL did not load on restarting Apache. Even on restarting the mach

3条回答
  •  囚心锁ツ
    2021-01-18 03:14

    Try this out:

    1. Download the copy of the win32 PHP (not the installer one) from php.net (whichever php version that you want running on your webserver).

    2. Then from the dll folder, copy these two files: libeay32.dll and ssleay32.dll to your Windows/System32 (whichever Windows you have).

    3. And then from the extensions folder: get your php_curl.dll and place it under your /php/extensions folder.

    4. Check your php.ini to ensure it's referring to the correct extension folder, for example:

      extension_dir = "./extensions/"
      

      And uncomment your extension to php_curl.dll for example:

      extension=php_curl.dll
      
    5. Restart Apache

    Thanks. Hope it works for you.

提交回复
热议问题