Everything is running and working fine. You’re about try out this new php script then bump required extension is not working for you. You running out mind and trying to sort out the issue. Whatever your scenario, you have one objective which is get this curl extension working in windows. We will separate out process in debug steps. You can skip the parts, if it’s already done.

Debug Step 1 : Find out the your php.ini config file location.

Run the phpinfo() function in your php script.

<code><?php  phpinfo(); ?></code

and check the following syntax in shown output.

Loaded configuration LogixTree
In my case, It’s D:/Webserver/PHP7/php.ini. Your case may be different.

On the same page, Perform the search for module cURL. Keep this page open till our debugging process.

Debug Step 2 : Open the php.ini config file and Locale the php_curl.dll

At this point, We are looking the config to find out if the extension is enabled or not. PHP config file use semi-colon ( ; ) for the comments. if your extension is prefixed with it, then simply remove it.

From ;extension=php_curl.dll

To  extension=php_curl.dll

Restart the server and check if the issue sorted out or not. If it’s not. Keep the config file open for next step.

Debug Step 3 : In php.ini file, We check, if the extension directory is correct

On last open file, We will locate the following ‘extension_dir’ (without quotes) and check if it’s pointing at the correct location.

PHP Extension dir
In my case, it’s pointing at correct location of my PHP7 directory, Verify that if it’s pointing at correct location or not.

On the same step, We will locate the ext folder in our php installation. Find out if the php_curl.dll is actually available at location or not.

Restart your server and refresh your phpinfo() tab from step1. Find the curl module, If it’s still not available follow the next step.

Debug 4 : If you have downloaded Apache from Apache Lounge, Then It missing be missing libssh2.dll

Because of the concerns related to security. PHP is being supplied with it’s own libssh2.dll library. Locate the Apache/bin and check if there is any libssh2.dll available or not. If it’s missing. Copy it from the php7 directory to Apache’s binary folder ( Apache/bin ) 

Restart your server to check if it’s curl module is available or not. If still not available, Follow the next step.

Debug 5: Chances are your libeay32.dll and ssleay32.dll got corrupt or missing under Apache/bin

Chances are your libeay32.dll and ssleasy32.dll got corrupted. You may need to download apache installable version again from apache lounge and copy over two file to our Apache/bin. These files are also available under php installation folder.
Note: If you’re copying it from internet, make sure it’s safe and official.

After doing so restart the server and check if the curl module is available under our phpinfo() output.

After following the steps, Hope you get the end results.

Leave us feedback if something is not working for you.

6 Comments. Leave new

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.

Menu