Coding

How To Fix Curl For EasyPHP on Windows 10

If you have ever seen this error after turning on Curl for PHP, I have the solution for you. If you don’t know what I’m talking about, skip to the next article.

After spending days looking at articles and posts about this exact same problem, I finally fixed it by trial and error. First off, let me list off what I’m running:

  1. Windows 10
  2. EasyPHP Devserver 17.0
  3. Appache 2.4.43 x86
  4. PHP 8.3.3 x86
  5. MySQL 5.7.24 x86

To turn on Curl, look for this line in php.ini and remove the semicolon, then restart Apache.

;extension=curl

At this point, you will get the error shown above. If you don’t get a pop-up, look in this directory for error.log:

C:\Program Files (x86)\EasyPHP-Devserver-17\eds-binaries\httpserver\apache2443vc15x86x240906174317\logs

Inside the file, you will see this error.

PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: C:\\Program Files (x86)\\EasyPHP-Devserver-17\\eds-binaries\\php\\php833vs16x86x240904030356\\ext\\curl (The specified module could not be found), C:\\Program Files (x86)\\EasyPHP-Devserver-17\\eds-binaries\\php\\php833vs16x86x240904030356\\ext\\php_curl.dll (The specified module could not be found)) in Unknown on line 0

To fix it, download this .zip file and extract the contents:

https://phpdev.toolsforresearch.com/php-8.3.11-Win32-vs16-x86.zip

Now look in the directory "ext" and find the file php_curl.dll and verify the product version and size as shown below:

Now go to this directory and rename php_curl.dll to a backup name in case something goes wrong. Now copy that one file to the directory :

C:\Program Files (x86)\EasyPHP-Devserver-17\eds-binaries\php\php833vs16x86x240904030356\ext

Restart the Apache server and check for any errors in the errors.log file.

Use phpinfo() to display PHP system information and scroll down to “Curl” and verify it is running as shown below:

You’re welcome.

Related Articles

Back to top button