note 124549 added to curl.installation
| From: | Greg@php.net | Date: | Fri, 27 Dec 2019 18:30:09 +0000 |
| Subject: | note 124549 added to curl.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213641@lists.php.net to get a copy of this message | ||
For those who may be having WordPress issues relating to curl, the answer for me was that the
curl.cainfo wasn't specified in the config. This resulted in a plugin giving some non-graceful
errors for which I was finally able to track it down.
curl.cainfo = "C:\php\extras\ssl\cacert.pem"
You'll need a copy of the cacert.pem (doesn't come with PHP and does need to be updated
every so often can be found at an official permalink of:
https://curl.haxx.se/ca/cacert.pem
They use a modified version of Mozilla's certificate store meant to work with libcurl.
I'm not an expert, this is just what fixed the errors for me.
(cacert.pem lists official root certificate providers so your computer knows which ones its safe to
authenticate against is my lay interpretation. I'm sure it's not technically accurate but
close enough for us lay people.)
----
Server IP: 45.112.84.4
Probable Submitter: 38.142.137.34 (proxied: 107.192.216.108)
----
Manual Page -- http://php.net/manual/en/curl.installation.php
Edit -- https://master.php.net/note/edit/124549
Del: integrated -- https://master.php.net/note/delete/124549/integrated
Del: useless -- https://master.php.net/note/delete/124549/useless
Del: bad code -- https://master.php.net/note/delete/124549/bad+code
Del: spam -- https://master.php.net/note/delete/124549/spam
Del: non-english -- https://master.php.net/note/delete/124549/non-english
Del: in docs -- https://master.php.net/note/delete/124549/in+docs
Del: other reasons-- https://master.php.net/note/delete/124549
Reject -- https://master.php.net/note/reject/124549
Search -- https://master.php.net/manage/user-notes.php