PHP cURL not loading when changing php.ini

To enable cURL in PHP, I will uncomment this line

extension=php_curl.dll 

But cURL did not load when restarting Apache. Even when restarting the machine. I have PHP 5.2.1 installed with AppServer on Windows XP.

Please help me enable cURL. Any help is appreciated.

+6
source share
3 answers

Try the following:

  • Download a copy of win32 PHP (not the installer) from php.net (whichever version of php you need working on your web server).

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

  • And then from the extensions folder: get php_curl.dll and put it in the /php/extensions folder.

  • Check php.ini to make sure it references the correct extension folder, for example:

     extension_dir = "./extensions/" 

    And uncomment the extension on php_curl.dll , for example:

     extension=php_curl.dll 
  • Restart apache

Thanks. Hope this works for you.

+5
source

I upgraded to PHP 5.6.4 and the curl stopped working. php.ini and ext were ok.

I solved this problem by adding C: \ php (my php folder) to the system variable Path in Control Panel -> System-Advanced-> Environment Variables.

+5
source

For those who did not get php 7.1 to boot with any of these answers, see Enable cURL on PHP7 windows10 64-bit Apache 2.4

0
source

Source: https://habr.com/ru/post/899120/


All Articles