Home php Error “Fatal error: Call to undefined function curl_init ()” with php5-curl installed

Error “Fatal error: Call to undefined function curl_init ()” with php5-curl installed

Author

Date

Category


Answer 1, authority 100%

php.ini uncomment the library extension

Small explanations. In a similar error, I came to the conclusion that it is worth removing the semicolon from the line

; extension = php_curl.dll

that is

  1. check if curl library is installed
  2. configure php.ini by uncommenting the line above

Answer 2

apt-get install php5-curl
php5enmod curl
service apache restart

Answer 3

Your version does not match. The binding is geared towards a newer version of libcurl than the one you have installed.
You can either search the repositories for a more recent libcurl library (well, or build https://curl.haxx.se/download. html ),
or rebuild php-curl, which will be more difficult: pecl

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions