Install Composer on MAMP on Windows
- Open php.ini located in your "
\MAMP\conf\
" folder or copy the php.ini into a\MAMP\bin\php\php[your PHP version number]\
- Find "
extension=php_openssl.dll
" ;extension=php_openssl.dll
- remove ";
"- Restart your MAMP , extension should be loaded after that.
Had the same problem.
The solution is quite easy:
Ensure that extension=php_openssl.dll
is uncommented (Remove ;
) and copy the php.ini file at the same directory where the php.exe is located, because Composer searches there for an php.ini File and not in the MAMP conf folder.
Step 1: Go to following Folder
\MAMP\bin\php\php[your php version you are working on]
Note: to check version of php you are using go to Mamp prefrences and then click on php tab and there you can see Standard Version the version you are using.
mine was \MAMP\bin\php\php5.6.8
Step 2: Inside that folder find file named as
php.ini-production
Step 3: Open this file in Notepad to edit
Step 4: Search for by pressing ctrl+F
extension=php_openssl.dll
Step 5: Remove Semicolon(;
) before it
Step 6: Restart MAMP and voila You are ready to install Composer.