如何启用PHP的openssl扩展来安装Composer? [英] How to enable PHP's openssl extension to install Composer?

查看:544
本文介绍了如何启用PHP的openssl扩展来安装Composer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在WAMP设置中安装Laravel。我收到了一条警告消息,表示我未在WAMP中启用 openssl



这是此消息的屏幕截图。 p>

>

解决方案

WAMP和Composer可能使用不同的PHP安装。 Composer将使用 PATH 环境变量中的PHP集。



如果您要启用 openssl 扩展程序来安装 组合键,首先需要检查PHP安装。


  1. 打开命令提示符,输入: echo%PATH%检查PHP安装的位置。

  2. 转到该位置并编辑名为 php.ini 的文件。

  3. 通过删除开头的分号,取消注释 extension = php_openssl.dll

现在您可以安装Composer了。


I am trying to install Laravel in WAMP setup. I am getting a warning message for not enabling openssl which I had already done in WAMP.

Here is a screenshot of the message.

解决方案

It is possible that WAMP and Composer are using different PHP installations. Composer will use the PHP set in the PATH environment variable.

If you want to enable the openssl extension to install Composer, first you need to check the location of the PHP installation.

  1. Open a Command Prompt, type: echo %PATH% then check for the location of your PHP installation.
  2. Go to that location and edit the file named: php.ini.
  3. Uncomment the line extension=php_openssl.dll by removing the semicolon at the beginning.

Now you are good to install Composer.

这篇关于如何启用PHP的openssl扩展来安装Composer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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