i have UwAmp installed. and i'm using php cli command with composer, it says 'you must enable openssl extension'.
i'm sure i was enabled openssl in all php ini every version i have.
how to enable openssl for uwamp cli?
i have UwAmp installed. and i'm using php cli command with composer, it says 'you must enable openssl extension'.
i'm sure i was enabled openssl in all php ini every version i have.
how to enable openssl for uwamp cli?
If you use UwAmp, the installer Composer will struggle to find the php.ini file, even if you add the PHP folder to your PATH, because it just does not exist! The installer will display an error in the activation of the OpenSSL extension of PHP.
To resolve this issue, go to the folder of the PHP version used by UwAmp. Then copy the php_initial.ini file in the same folder and rename it to php.ini.
Then check the new php.ini the extension_dir variable is set to "ext", so you can install Composer normally.
While asking this question I already found the answer:
Done.
I had the same problem using UwAmp whilst trying to install composer, but found that I needed to add one more step before I could get it to work on my system.
After you identify the php_uwamp.ini file and copy it to the same directory as php.ini (as suggested) you need to find the following line
and change it to
The {PHPEXTPATH} variable is not interpreted when php is run under the CLI, and composer will complain about missing modules if you don't do this.