Laravel MAMP和composer-Windows
我想在我的windows机器上使用MAMP,我已经在一台计算机上使用了。但是,当我想在计算机上将composer安装到mamp时,会出现以下错误: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
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二进制文件的位置,请从那里运行该命令。