如何为已安装的Ubuntu LAMP堆栈启用cURL? [英] How can I enable cURL for an installed Ubuntu LAMP stack?

查看:63
本文介绍了如何为已安装的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?

推荐答案

来自 在安装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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆