Active mod cURL

php

#1

Hello Community,
I can’t install mod cURL, I use de command sudo apt-get install sudo apt-get install php5-curl but show this

Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: php5-curl 0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded. Need to get 27.3 kB of archives. After this operation, 142 kB of additional disk space will be used. Err http://us-central1.gce.clouds.archive.ubuntu.com/ubuntu/ trusty-updates/main php5-curl amd64 5.5.9+dfsg-1ubuntu4.14 404 Not Found [IP: 91.189.88.149 80] Err http://security.ubuntu.com/ubuntu/ trusty-security/main php5-curl amd64 5.5.9+dfsg-1ubuntu4.14 404 Not Found [IP: 91.189.91.26 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_5.5.9+dfsg-1ubuntu4.14_amd64.deb 404 Not Found [IP: 91.189.91.26 80]

Now I create the file .ini with ‘active’ cURL module

extension=php_curl.dll

But in my code show this error

Fatal error: Call to undefined function curl_init() in /home/ubuntu/workspace/app/… on line 101

Someone know solution ??

Thanks!!


#2

Did you run sudo apt-get update first (before sudo apt-get install ...) to download the list of latest packages and their versions?


#3

@abailiss Worked; cheers :wink: