简体   繁体   English

必须加载PHP扩展“curl”。必须加载PHP扩展“soap”

[英]PHP extension “curl” must be loaded. PHP extension “soap” must be loaded

I am very new to magento and currently I am getting "PHP Extension curl must be loaded" error during magento installation. 我对magento很新,目前我在magento安装过程中遇到“PHP Extension curl must loaded”错误。 Can you help me? 你能帮助我吗?

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并让它开始为你工作。

remove ';' 去掉 ';' from extension=php_curl.dll in php.ini , maybe you don't have active de mod. 来自php.ini中的extension = php_curl.dll,也许你没有主动de mod。

Do and look if you have it active. 做,看看你是否活跃。

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: 支持的Web服务器:

  • Apache 1.3.x Apache 1.3.x.
  • Apache 2.0.x Apache 2.0.x.
  • Apache 2.2.x Apache 2.2.x

Supported Browsers: 支持的浏览器:

  • Microsoft Internet Explorer 6 and above Microsoft Internet Explorer 6及更高版本
  • Mozilla Firefox 2.0 and above Mozilla Firefox 2.0及以上版本
  • Apple Safari 2.x Apple Safari 2.x
  • Google Chrome 谷歌浏览器
  • Adobe Flash browser plug-in should be installed 应安装Adobe Flash浏览器插件

PHP Compatibility: PHP兼容性:

  • 5.2 5.2

Required extensions: 必需的扩展:

  • PDO_MySQL PDO_MYSQL
  • simplexml simplexml的
  • mcrypt mcrypt的
  • hash 哈希
  • GD GD
  • DOM DOM
  • iconv 的iconv
  • curl 卷曲
  • SOAP (if Webservices API is to be used) SOAP(如果要使用Webservices API)
  • Safe_mode off Safe_mode关闭
  • Memory_limit no less than 256Mb (preferably 512) Memory_limit不小于256Mb(最好是512)

MySQL: MySQL的:

  • 4.1.20 or newer 4.1.20或更新
  • InnoDB storage engine SSL: InnoDB存储引擎SSL:

  • If HTTPS is used to work in the admin, SSL certificate should be valid. 如果使用HTTPS在管理员中工作,则SSL证书应该有效。 Self-signed SSL certificates are not supported Server - hosting - setup: 不支持自签名SSL证书服务器 - 托管 - 设置:

  • Ability to run scheduled jobs (crontab) with PHP 5 能够使用PHP 5运行预定作业(crontab)

  • Ability to override options in .htaccess files 能够覆盖.htaccess文件中的选项

To install CURL check this page depending on your platform 要安装CURL,请根据您的平台检查此页面

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:重新启动服务器

Josh's answer should 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.ini once this is done. 此外,一旦完成,无需取消注释php.ini的扩展名。

很抱歉添加了答案,没有足够的评论来评论che-azeh的答案,应该是:

sudo apt-get -y install php7.0-curl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM