必须加载 PHP 扩展“curl”。必须加载 PHP 扩展“soap”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3020489/
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
PHP extension "curl" must be loaded. PHP extension "soap" must be loaded
提问by Rachel
I am very new to magento and currently I am getting "PHP Extension curl must be loaded" error during magento installation. Can you help me?
我对 magento 很陌生,目前我在 magento 安装过程中遇到“必须加载 PHP 扩展 curl”错误。你能帮助我吗?
回答by Josh Pennington
If your server does not have curl installed on it you can type one of the following commands to install it:
如果您的服务器上没有安装 curl,您可以键入以下命令之一来安装它:
For Debian/Ubuntu based systems you can type below command
对于基于 Debian/Ubuntu 的系统,您可以输入以下命令
sudo apt-get install php5-curl
sudo /etc/init.d/apache2 restart
For RedHat/CentOS based systems you can type (as root)
对于基于 RedHat/CentOS 的系统,您可以输入(以 root 身份)
yum install php5-curl
/etc/init.d/httpd restart
This should install curl and have it start to work for you.
这应该安装 curl 并让它开始为您工作。
回答by fermin
remove ';' from extension=php_curl.dll in php.ini , maybe you don't have active de mod.
消除 ';' 从 php.ini 中的 extension=php_curl.dll ,也许你没有 active de mod。
Do and look if you have it active.
做看看你是否有活动。
回答by Elzo Valugi
Before installing Magento or any other system take a look at the system requirements:
在安装 Magento 或任何其他系统之前,请查看系统要求:
For Magento:
对于Magento:
Supported Operating Systems:
支持的操作系统:
- Linux x86, x86-64
- Linux x86、x86-64
Supported Web Servers:
支持的网络服务器:
- Apache 1.3.x
- Apache 2.0.x
- Apache 2.2.x
- 阿帕奇 1.3.x
- Apache 2.0.x
- 阿帕奇 2.2.x
Supported Browsers:
支持的浏览器:
- Microsoft Internet Explorer 6 and above
- Mozilla Firefox 2.0 and above
- Apple Safari 2.x
- Google Chrome
- Adobe Flash browser plug-in should be installed
- Microsoft Internet Explorer 6 及更高版本
- Mozilla Firefox 2.0 及以上
- 苹果 Safari 2.x
- 谷歌浏览器
- 应安装 Adobe Flash 浏览器插件
PHP Compatibility:
PHP兼容性:
- 5.2
- 5.2
Required extensions:
所需的扩展:
- PDO_MySQL
- simplexml
- mcrypt
- hash
- GD
- DOM
- iconv
- curl
- SOAP (if Webservices API is to be used)
- Safe_mode off
- Memory_limit no less than 256Mb (preferably 512)
- PDO_MySQL
- 简单的xml
- 加密
- 散列
- 广东
- DOM
- 图标
- 卷曲
- SOAP(如果要使用 Webservices API)
- 安全模式关闭
- Memory_limit 不低于256Mb(最好是512)
MySQL:
MySQL:
- 4.1.20 or newer
InnoDB storage engine SSL:
If HTTPS is used to work in the admin, SSL certificate should be valid. Self-signed SSL certificates are not supported Server - hosting - setup:
Ability to run scheduled jobs (crontab) with PHP 5
- Ability to override options in .htaccess files
- 4.1.20 或更新版本
InnoDB 存储引擎 SSL:
如果 HTTPS 用于在 admin 中工作,则 SSL 证书应该是有效的。不支持自签名 SSL 证书服务器 - 托管 - 设置:
能够使用 PHP 5 运行计划作业 (crontab)
- 能够覆盖 .htaccess 文件中的选项
To install CURL check this pagedepending on your platform
要安装 CURL,请根据您的平台检查此页面
回答by Rahul Shinde
1: Find extension=php_soap.dll in php.ini and remove the semicolon(;)
1:在php.ini中找到extension=php_soap.dll,去掉分号(;)
2: Restart your Server
2:重启你的服务器
回答by che-azeh
Josh's answershould work fine with PHP5, but if you're on PHP7 (for Debian/Ubuntu based systems):
Josh 的回答应该适用于 PHP5,但如果您使用的是 PHP7(适用于基于 Debian/Ubuntu 的系统):
sudo apt-get install php-curl
Then restart your server.
然后重启你的服务器。
Also, no need to uncomment the extension in php.inionce this is done.
此外,php.ini一旦完成,无需取消对扩展的注释。
回答by Eugene
Sorry for adding an answer, not enough points to comment on che-azeh's answer, which should be:
抱歉添加了一个答案,没有足够的分数来评论 che-azeh 的答案,应该是:
sudo apt-get -y install php7.0-curl

