Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel MAMP和composer-Windows_Laravel_Composer Php_Mamp - Fatal编程技术网

Laravel MAMP和composer-Windows

Laravel MAMP和composer-Windows,laravel,composer-php,mamp,Laravel,Composer Php,Mamp,我想在我的windows机器上使用MAMP,我已经在一台计算机上使用了。但是,当我想在计算机上将composer安装到mamp时,会出现以下错误: Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to http://getcomposer.org/installer failed with errors: Failed to open stream: Unable to find t

我想在我的windows机器上使用MAMP,我已经在一台计算机上使用了。但是,当我想在计算机上将composer安装到mamp时,会出现以下错误:

Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org

Request to http://getcomposer.org/installer failed with errors:
Failed to open stream: Unable to find the socket transport "SSL" - did you forget to enable it when configured PHP?
我已经从php.ini-development和php.ini.production中的
extension=php_openssl.dll
中删除了分号


但是我仍然有同样的问题:/

在PHP目录中查找dll文件。在我的PHP安装文件夹中,dll位于ext文件夹中。因此,在ini文件中,我在dll前面添加了ext\。

运行
php--ini
,查看CLI使用的是哪个ini文件,如果它与您已经更改的ini文件不同,则更新该ini文件。在命令行上,
php--ri openssl
的输出是什么?注意CLI的ini文件可能与mamp使用的不同。如果您知道MAMP正在使用的php二进制文件的位置,请从那里运行该命令。