1
votes

I'm just installing a laravel app in my ubuntu 20.4 with php.4 / mysql

Everything is working, laravel installation, composer, migrations, seeding, php artisan serve.

But when I try to access: http://localhost:8000, I get:

GuzzleHttp\Exception\RequestException cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 

I already tried:

php artisan config:cache
php artisan cache:clear

What should I do ?

1
Do you have a base url set? In your .env or config? - Raffobaffo
APP_URL=http://localhost:8000 - Juliatzin
Try to change it to: http://localhost - Raffobaffo
changed it but same error - Juliatzin
Restart the localhost too. And if you have it cached, run php artisan config:clear - Raffobaffo

1 Answers

0
votes

For quick solution you can disable SSL verify for Guzzle when you using local environment. Check your link for existing too.

If you have this problem on real server you can try another way you can download cacert.pem file from http://curl.haxx.se/ca/cacert.pem (see original post) and set this file for guzzle. Example below

$guzzle = new \Guzzle\Http\Client();
$guzzle->setDefaultOption('verify', '/path/to/cacert.pem');

If you get this error on server please, contact to support. This is problem with server configuration and all solutions above is "quick fix"