[SOLVED] Drupal - How to fix PHP Fatal error: Call to undefined function curl_init() on Ubuntu linux
One of the Drupal sites that we got to work with had this issue. The original server that the site was hosted on did not have any issue. But the issue showed up when it was transferred over to a new server.
This usually happens when you are missing the php5-curl library.
On Ubuntu, just run the following commands in your terminal to fix this:
sudo apt-get install php5-curl
sudo /etc/init.d/apache2 restart
If not on Ubuntu, check for the correct alternative to 'apt-get' for your distribution.
Let me know if you are still facing issues with this. I'll try my best to help you out.
- 46092 reads
Comments
josemariagomezb... (not verified)
Thu, 05/22/2014 - 13:41
Permalink
Hola buenas.
Hola buenas.
e creado un fichero php el cual tiene definidas las lineas para el motor curl. pero al ejecutar el fichero me sale por pantalla el siguiente error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/curl.so' - /usr/lib/x86_64-linux-gnu/libgssapi.so.3: symbol krb5_ntlm_init_get_challange, version HEIMDAL_KRB5_2.0 not defined in file libkrb5.so.26 with link time reference in Unknown on line 0
PHP Fatal error: Call to undefined function curl_init() in /home/mint/Escritorio/plesk.php on line 30
espero que me puedan ayudar, gracias.
admin
Tue, 05/27/2014 - 15:39
Permalink
Hola Jose, Thank You for
Hola Jose, Thank You for reaching out! I'll try my best to help you out.
¿trató de ejecutar los comandos indicados anteriormente?
Add new comment