i am using php 5.5.9. ubuntu 14.04 os
php 5.5.9. ubuntu 14.04 os
. try to run the php
function
curl_init()
it shows an error Call to "undefined function curl_init()" then 1.i installed curl ( How to enable curl, installed Ubuntu LAMP stack? ) 2. i checked " php.ini
to remove comment extension but i not found the text in php.ini
.
still i have the error i restarted apache
many times. please help.
I'm unsure of what your problem really is..
Try this, I'm sure this WORKS.
To purge all curl and apache2 packages
sudo apt-get purge curl libcurl3 libcurl3-dev php5-curl apache2
To Install curl and apache2
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl apache2
Restart apache2
sudo service apache2 restart
After restarting your web-server, go to /etc/php5/apache2/php.ini
search for ;extension=php_curl.dll
and remove the ;
(uncomment) and save the file, restart apache2 sudo service apache2 restart
again.
Everything should WORK fine now.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.