Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Can';t使用openssl扩展进行SSL/TLS保护_Php_Laravel_Ssl_Homestead - Fatal编程技术网

Php Can';t使用openssl扩展进行SSL/TLS保护

Php Can';t使用openssl扩展进行SSL/TLS保护,php,laravel,ssl,homestead,Php,Laravel,Ssl,Homestead,我正在运行Windows10,使用的是Laravel5.4和Homestead2.0,使用的是VM和Vagrant。一切正常。。。除了在运行“laravel新博客”时,我得到: 我知道关于这一点还有其他一些问题,但似乎还没有找到一个好的答案。另外,关于这一点的大多数其他问题是关于WAMP。。。因此,我认为在使用VM时询问Again是相关的 我已经删除了该文件;我的php.ini-development和php.ini-production中extension=php_openssl.dll前面的

我正在运行Windows10,使用的是Laravel5.4和Homestead2.0,使用的是VM和Vagrant。一切正常。。。除了在运行“laravel新博客”时,我得到:

我知道关于这一点还有其他一些问题,但似乎还没有找到一个好的答案。另外,关于这一点的大多数其他问题是关于WAMP。。。因此,我认为在使用VM时询问Again是相关的

我已经删除了该文件;我的php.ini-development和php.ini-production中extension=php_openssl.dll前面的(分号)。错误仍然存在

当我在comandline中检查openssl版本时,我有:
OpenSSL 1.0.2k 2017年1月26日

…这是由于我的PHP安装有问题。我最后所做的(这是一个很糟糕的解决方案)是安装xampp以获得正确的php版本。然后我转到我的路径(winbtn+break(paus)--->高级系统设置---->环境变量),并将php重新路由到xampp php版本,瞧!它起作用了。因此,要么埋头做一个正确的PHP安装,要么像我这样的YOLO添加xampp,只是为了得到一个正确的PHP,然后它就应该工作了。GL HF

  [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.