如何为已安装的 Ubuntu LAMP 堆栈启用 cURL? [英] How can I enable cURL for an installed Ubuntu LAMP stack?
本文介绍了如何为已安装的 Ubuntu LAMP 堆栈启用 cURL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了 Ubuntu LAMP 堆栈.但是未启用 cURL,我也找不到 INI 文件中列出的扩展名.我手动添加了它,但它也不起作用.
I have installed the Ubuntu LAMP stack. But cURL is not enabled, and neither can I can find the extension listed in the INI file. I added it manually, but it didn't work either.
那我应该如何启用 cURL?
How should I enable cURL then?
推荐答案
来自 在 Ubuntu 中为 PHP 安装 Curl 扩展:
sudo apt-get install php5-curl
安装 libcurl 后,您应该使用以下命令之一重新启动 Web 服务器,
After installing libcurl, you should restart the web server with one of the following commands,
sudo /etc/init.d/apache2 restart
或
sudo service apache2 restart
这篇关于如何为已安装的 Ubuntu LAMP 堆栈启用 cURL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文