Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Composer on MAMP on Windows

So here is the issue I'm getting:

I'm trying to install Composer and I'm using MAMP on Windows (it does exist since the beginning of January).

And like many users of Composer on Windows, I've got this error :

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl"

So I checked on the right php.ini page if it was unabled and it was!

I can't find any help since there are very few users of MAMP on Windows.

Thank you for your help or suggestions

like image 971
SuperKiwi Avatar asked Apr 07 '15 10:04

SuperKiwi


People also ask

How do I install Composer on Windows 10?

Installation PHP composer on Windows:Step 1: Navigate to the official composer website. Step 2: Then click on the Download button. Step 3: Then click on the Composer-Setup.exe & download the file. Step 4: Then click on “Install for all users”.

Can I install MAMP on Windows?

MAMP installs a local server environment in a matter of seconds on your Windows or macOS computer. MAMP comes free of charge, and is easily installed. MAMP will not compromise any existing Apache installation already running on your system.

Where is the PHP exe file in MAMP?

Path for php.exe C:\MAMP\bin\php\php5. 6.0\php.exe.


1 Answers

  1. Open php.ini located in your "\MAMP\conf\" folder or copy the php.ini into a \MAMP\bin\php\php[your PHP version number]\
  2. Find "extension=php_openssl.dll"
  3. ;extension=php_openssl.dll - remove ";"
  4. Restart your MAMP , extension should be loaded after that.
like image 111
Techie Avatar answered Sep 27 '22 17:09

Techie