Question
cURL is NOT installed in your PHP installation?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×Open SSH
sudo apt-get install curl
sudo service apache2 restart
sudo apt-get install php5-curl
sudo service apache2 restart
Done! Now you should be fine!
This answer is the most detailed that will walk non-developers step by step to install php curl. I wish all of the questions have answers like this.
Thanks a bunch ltdxdtl.
Thank you & I agree. I’m a non-developer also but having clear documentation like this goes a long way for anyone. thanks for the kind words!
Hi, when I run sudo apt-get install php5-curl
I’m getting these errors
root@myserver:~# sudo apt-get install php5-curl
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 0 not upgraded.
Need to get 27.3 kB of archives.
After this operation, 142 kB of additional disk space will be used.
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main php5-curl amd64 5.5.9+dfsg-1ubuntu4.17
404 Not Found [IP: 192.241.164.26 80]
Err http://security.ubuntu.com/ubuntu/ trusty-security/main php5-curl amd64 5.5. 9+dfsg-1ubuntu4.17
404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_ 5.5.9+dfsg-1ubuntu4.17_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Can you help?
if you upgraded to php 7.0, make sure to use;
sudo apt-get install php7.0-curl
instead of …
sudo apt-get install php5-curl
It works, but i need to restart apache
sudo apt-get intall php5-curl
/etc/init.d/apache2 restart
If you’re running nginx instead of apache, to restart your server you should use:
sudo service nginx restart
Working ! Thank U So Much…