[英]Composer in Windows 10 without WAMP
I am looking to install Laravel/Homestead on my Win 10 x64 box but I cannot seem to get Composer to install. 我想在Win 10 x64盒子上安装Laravel / Homestead ,但似乎无法安装Composer 。 I am not using WAMP by the way which seem to be the only examples of this problem I have found.
我不是用WAMP的方式,这似乎是我发现的这个问题的唯一示例。
First step completed was install Vagrant . 完成的第一步是安装Vagrant 。
Second step is installing Composer, which asks to be pointed to php.exe
. 第二步是安装Composer,它要求指向
php.exe
。 I downloaded VC11 x86 Thread Safe (2015-Sep-04 02:29:46) from php for Windows. 我从Windows的php下载了VC11 x86 Thread Safe(2015-Sep-04 02:29:46) 。 I then extracted this package to
d:\\php
. 然后,我将此包提取到
d:\\php
。 There was no installation process per se. 本身没有安装过程。
I then edited both php-development.ini
and php-production.ini
to enable extension=php_openssl.dll
. 然后,我编辑了
php-development.ini
和php-production.ini
以启用extension=php_openssl.dll
。 I made a copy of php.ini
using the production ini file. 我使用生产ini文件制作了
php.ini
的副本。 I also added d:\\php
to the windows PATH
and rebooted. 我还将
d:\\php
添加到Windows PATH
并重新启动。
When I point the Composer installation to d:\\php\\php.exe
it fails with openssl
is not enabled. 当我将Composer安装指向
d:\\php\\php.exe
时,未启用openssl
失败。 What am I missing? 我想念什么? I do not want to install WAMP if possible.
如果可能,我不想安装WAMP。 Thanks!
谢谢!
OK got it working. 好的,它起作用了。 What I did ( I got some hints from here ).
我做了什么( 从这里得到了一些提示 )。 I first downloaded the following file:
我首先下载了以下文件:
http://curl.haxx.se/ca/cacert.pem
and saved it in my d:\\php
folder 并将其保存在我的
d:\\php
文件夹中
I then edited the newly created php.ini, removed comment and changed the following lines: 然后,我编辑了新创建的php.ini,删除了注释并更改了以下几行:
extension_dir = "d:\php\ext"
openssl.cafile="d:\php\cacert.pem"
openssl.capath="d:\php"
Composer then installed OK. 然后安装Composer,确定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.