While updating a clients site today we ran into an error message when trying to do a test on a submission for a new contact form that was created, the error message read:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html
To Fix This Issue we Completed the Following Steps:
I am using PHP 7.1.9 for my WampServer, so change 7.1.9
in the example below to the version number you are currently using.
;curl.cainfo
curl.cainfo = "C:\wamp64\bin\php\php7.1.9\cacert.pem"
- Make sure you remove the semicolon at the beginning of the line.
- Save changes to
php.ini
, restart WampServer, and you’re good to go!
That fixes our issue with the curl error if we are using localhost to server our site, but if we are using php artisan server to dispaly the webpage then we also need to complete the steps below:
If your laravel project is located in c:\wamp\laravel\ then you should be able to call http://localhost/laravel/public
and see the default laravel welcome page or your own.
- Open your /app/config/app.php file and check that the value of url directs to your project.
'url'=>'http://localhost/laravel/
- Then open your .htaccess file and add the RewriteBase rule under the
RewriteEngine On
Line RewriteBase /laravel/public/
Credit for these answers goes to: