magento 安装错误“必须加载 PHP 扩展“curl””

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16956296/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 11:57:57  来源:igfitidea点击:

magento installation error "PHP extension "curl" must be loaded"

phpmagentoinstallation

提问by DRAJI

When i have installed, it shows the following error

当我安装时,它显示以下错误

    "PHP extension "curl" must be loaded." 
     Please set all required settings before clicking Continue

after the Localization step (ie.in configuration step)

在本地化步骤之后(即在配置步骤中)

i cant know how to fix it? plz help me guys! thanks in advance

我不知道如何解决它?请帮助我伙计们!提前致谢

回答by Chiragit007

Uncomment the following line: extension=php_curl.dll in the php.ini configuration file of your XAMPP/WAMP server.

在 XAMPP/WAMP 服务器的 php.ini 配置文件中取消注释以下行:extension=php_curl.dll。

回答by Mohammed

If you still can't resolve it even after uncommenting extension=php_curl.dll, here's a solution:

如果您在取消注释后仍然无法解决它extension=php_curl.dll,这是一个解决方案:

  1. Click on wampicon.
  2. Navigate to php > php extensions.
  3. Enable php_curlin the extension list.
  1. 单击wamp图标。
  2. 导航到 php > php 扩展。
  3. php_curl在扩展列表中启用。

回答by Rajiv Ranjan

There is PHP module php_curl, you need to enable it if you are installing it on local system. This setting is in php.ini file. If you are on shared server, need to contact your Hosting Company. And if you have full server access just enable it.

有 PHP 模块 php_curl,如果您在本地系统上安装它,则需要启用它。此设置在 php.ini 文件中。如果您在共享服务器上,需要联系您的托管公司。如果您有完整的服务器访问权限,只需启用它。

回答by Sankalp Mishra

enable the curl extensions in the folowing -- php-pear.ini, php.ini, and php5.iniin the php directory, and the php.iniin the apache/bindirectory

使卷曲扩展在如下因素- php-pear.iniphp.ini以及php5.ini在php目录中,php.iniapache/bin目录

By enabling i mean, uncomment the lines

启用我的意思是,取消注释行

And do not forget to restart Xamp server

并且不要忘记重新启动 Xamp 服务器

回答by Vishal Thakur

In Ubuntu 16.04default PHP version is 7.0, if you want to use different version then you need to install PHP package according to PHP version:

Ubuntu 16.04默认的PHP 版本是 7.0,如果你想使用不同的版本,那么你需要根据 PHP 版本安装 PHP 包:

First of all Install CURL using this command:-

首先使用以下命令安装 CURL:-

sudo apt-get install curl 

After that using these commands according to your PHP versions:-

之后,根据您的 PHP 版本使用这些命令:-

1-> PHP 7.0: sudo apt-get install php7.0-curl    
2-> PHP 7.1: sudo apt-get install php7.1-curl    
3-> PHP 7.2: sudo apt-get install php7.2-curl    
4-> PHP 5.5: sudo apt-get install php5.5-curl
5-> PHP 5.6: sudo apt-get install php5.6-curl

回答by Mohit

Solution for error “PHP extension “curl” must be loaded.” In Wamp server version 2.2 for Windows 7 (64-bit Operating System) ONLY.

错误“必须加载PHP扩展“curl”的解决方案。仅适用于 Windows 7(64 位操作系统)的 Wamp 服务器版本 2.2。

(Files to be Modified)

(要修改的文件)

php.ini file location: C:\wamp\bin\apache\apache2.2.22\bin\

php.ini 文件位置:C:\wamp\bin\apache\apache2.2.22\bin\

php.ini file location: C:\wamp\bin\php\php5.3.13

phpForApache.ini file location: C:\wamp\bin\php\php5.3.13\

phpForApache.ini 文件位置:C:\wamp\bin\php\php5.3.13\

Find extension=php_curl.dll using find command in notepad in all above mention ini file and Remove semicolon if there is and it should look like extension=php_curl.dll

在上面提到的所有 ini 文件中,使用记事本中的 find 命令查找 extension=php_curl.dll 并删除分号,如果有,它应该看起来像 extension=php_curl.dll

Before (;extension=php_curl.dll) after (extension=php_curl.dll)

Now try reload your magento installation page where you got error of "PHP Extension “curl” must be loaded" your will see no error :)

现在尝试重新加载您的 magento 安装页面,在那里您收到“必须加载 PHP 扩展‘curl’”错误,您将看不到任何错误:)

I hope it will work for you like worked for me, Thanks

我希望它对你有用,就像对我有用一样,谢谢