Home  >  Q&A  >  body text

How do I enable PHP's openssl extension to install Composer?

<p>I'm trying to install Laravel in the WAMP installer. I'm getting a warning that <strong>openssl</strong> is not enabled, even though I've enabled it in WAMP. </p> <p>This is a screenshot of the message. </p>
P粉493534105P粉493534105395 days ago535

reply all(1)I'll reply

  • P粉391677921

    P粉3916779212023-08-24 12:07:37

    WAMP and Composer may use different PHP installations. Composer will use PHP as set in the PATH environment variable.

    If you want to enable the openssl extension to install Composer, you first need to check where PHP is installed.

    1. Open the command prompt, type: echo %PATH%, and then check the PHP installation location.
    2. Go to that location and edit the file named: php.ini.
    3. Uncomment the extension=php_openssl.dll line by removing the leading semicolon.

    Now you can install Composer.

    reply
    0
  • Cancelreply