Software⏱️ 2 min read📅 2026-05-31

How to Fix: Composer Warning: openssl extension is missing. How to enable in WAMP

Enable openssl extension in WAMP to resolve Composer warning.

Quick Answer: Re-enable the openssl extension by going to php.ini, uncommenting the line that starts with 'extension=openssl'

To resolve the Composer warning about the missing openssl extension on WAMP, follow these steps:

⚠️ Common Causes

  • The openssl extension is not enabled in the WAMP php.ini file.

🔧 Proven Troubleshooting Steps

Method 1: Enable openssl in php.ini

  1. Step 1: Open the php.ini file located at C:\wamp\bin\php\php7.2.11\php.ini (or the version you are using) and add the following line:
  2. #extension=openssl becomes
  3. extension=openssl
  4. Step 2: Save the changes and restart your WAMP server.

Method 2: Use a PHP config file

  1. Step 1: Create a new file named php.ini-bak and copy the original php.ini to it.
  2. Step 2: Open the php.ini file and add the following line:
  3. #extension=openssl becomes
  4. extension=openssl
  5. Step 3: Save the changes, close the file, and restart your WAMP server.

🎯 Final Words

By following these steps, you should be able to enable the openssl extension in WAMP and resolve the Composer warning.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions