php - Linux composer install error 'The openssl extension is required'
Get the solution ↓↓↓I have use 'composer install' command and it say
[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not availab
le. If you can not enable the openssl extension, you can disable this error
, at your own risk, by setting the 'disable-tls' option to true.
I use on Linux os with php 7.2
How can I fix this?
I already look in php.ini and can't see an extension for openssl.
Answer
Solution:
It's not safe to disable SSL/TLS protection. but if you are confident enough with the working environment try this.
composer config -g -- disable-tls true
then
composer install
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: mysqli::real_connect(): (hy000/2002): connection refused
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.