How to enable CurlHttpClient for WAMP in PHP 7.4+?



I’m trying to open the index_dev.php file for a site on my Wampserver and I’m getting this error:

Internal Server Error - PHP Warning - Configure the "curl.cainfo", "openssl.cafile" or "openssl.capath" php.ini setting to enable the CurlHttpClient

I tried to do some research on how to enable curl on WAMP, but all of the info I was seeing was for PHP 5.x

As far as configuring, I don’t have a clue what I should do to the "curl.cainfo", "openssl.cafile" or "openssl.capath" settings in my php.ini files.

Thanks in advance for your help!


Go to and download the latest .pem file.

Copy the .pem file to ….. well I put mine in C:\wamp64\bin\php called cacert.pem

This contains a whole bunch of certificates and because the file is created by Mozilla we sort of trust it.

Now using the WAMPManager, edit your current php.ini file by

left click wampmanager -> PHP -> php.ini

Find this parameter, it will be commented out with a ;


Change it to


Save the edit, and then restart Apache to activate the change

Answered By – RiggsFolly

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More