Jump to content

Call to undefined function curl_init();

FaiL___

Hi, I have got this working on my local machine, but tried to upload this to my vps and I am getting the error in the title. I am running laravel and artisan. I was advised to uncomment ;extension=curl in php.ini, but then artisan gave me a warning saying module 'curl' already loaded. The solution for that online was to comment ;extension=curl in php.ini, so I am back in a circle. Someone help me pls.

There are 10 types of people in the world. Those that understand binary and those that don't.

Link to comment
Share on other sites

Link to post
Share on other sites

I don’t know much php, but it sounds like either

 

the name is taken

 

or

 

you already called for it once, so it might be a redundant call

✧・゚: *✧・゚:*  Quote for a reply  *:・゚✧*:・゚✧

 

✧・゚: *✧・゚:*   Ask for discord   *:・゚✧*:・゚✧

Link to comment
Share on other sites

Link to post
Share on other sites

This error usually means that the module isn't installed/loaded. Now are you still getting that error with the warning when you uncomment the line?

Link to comment
Share on other sites

Link to post
Share on other sites

In a file (either an existing one, or a new php file that will be served in the same way as your existing ones), add

<?php
phpinfo();
exit;

About quarter of the way down the page, depending on various factors, you should have a section titled curl, looking a bit like this:

image.png

Is that section there, and what's the cURL information if it is?

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×