You are not logged in.

#1 2015-06-29 16:51:13

jsalk
Member
Registered: 2015-06-20
Posts: 26

php 5.6.10 curl fails to initialize (SOLVED)

This is a fresh install with php 5.6.10.

I checked and curl is installed along with all the dependencies listed in the curl package documentation.

These are included in my php.ini:

 extension=curl.so 
 curl.cainfo = "/etc/ssl/certs/cacert.pem"

Here is the code that generates the error:

    # initialise the CURL library
    $ch = curl_init();

Here is the error message:

Fatal error: Call to undefined function curl_init()

Any ideas?

- Jim

Last edited by jsalk (2015-06-29 18:07:56)

Offline

#2 2015-06-29 17:04:07

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: php 5.6.10 curl fails to initialize (SOLVED)

Did you restart the apache server ?

Offline

#3 2015-06-29 17:08:29

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: php 5.6.10 curl fails to initialize (SOLVED)

also check whats installed using a php file

<?php
 phpinfo();
?>

Offline

#4 2015-06-29 18:07:39

jsalk
Member
Registered: 2015-06-20
Posts: 26

Re: php 5.6.10 curl fails to initialize (SOLVED)

Thanks. I had checked all of those things before to no avail.  But I was able to solve the problem.

The solution turned out to be an inconsistency with the hostname and other configured items such as samba, avahi, minidlna, etc.  Once I changed the hostname (for other reasons), the error was not longer received.

- Jim

Offline

#5 2015-06-29 18:12:15

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: php 5.6.10 curl fails to initialize (SOLVED)

Thanks for sharing the solution  ...

Offline

Board footer

Powered by FluxBB