Can't use openssl extension for SSL/TLS protection

拥有回忆 提交于 2019-12-24 08:46:14

问题


I am running Windows 10 working with Laravel 5.4, homestead 2.0, using VM and Vagrant. Everything works... Except when I am running "laravel new blog" I get:

  [Composer\Exception\NoSslException]
  The openssl extension is required for SSL/TLS protection but is not 
  available. 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 know that there are some other questions regarding this but there seem yet not to have emerged a good answer for this. Also, most other questions regarding this is about WAMP... Therefor I think it is relevant to ask agiain when using VM.

I have removed the ; (semicolon) in front of extension=php_openssl.dll in my php.ini-development and php.ini-production. The error still remains.

When I check openssl version in comandline I have: OpenSSL 1.0.2k 26 Jan 2017


回答1:


...This was due to something wrong with my PHP-install. What I finally did (which is a kinda bad solution) was to install xampp just to get a correct php version. Then I went to my PATH (winbtn + break(paus) ---> Advanced system settings ---> Environment Variables) and re-routed the php to the xampp php version and VOILA! It works. So either dig in to make a proper PHP install or YOLO like me and add xampp just to get a correct php and then it should work. GL HF!



来源:https://stackoverflow.com/questions/44966086/cant-use-openssl-extension-for-ssl-tls-protection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!