Undefined Function Error: Call to Undefined Function curl_init()

Asked

Viewed 623 times

0

I am using Laravel 5.8 on a Debian Linux System with php 7.4 and implementing a function in which I need to perform a Curl:

    $curl = curl_init();

The code already points error when defining only the curl_init(), I have already removed the semicolon that exists in the file php.ini and already restarted apache2. But still Laravel points to undefined function.

I’ve also installed php and system packages like:

php-curl, curl, php5-curl

But the function is still pointed out as undefined, I would like help to identify if there is any step or process that I forgot.

1 answer

0


[Resolved] was running Laravel on a built-in php server when installing the dependencies php continued with the old instance of the raised server, without the new libraries.

ending the php artisan serve and raising the instance again the libraries were added.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.