Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.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 Linux composer安装错误';openssl扩展是必需的';_Php_Linux_Composer Php - Fatal编程技术网

Php Linux composer安装错误';openssl扩展是必需的';

Php Linux composer安装错误';openssl扩展是必需的';,php,linux,composer-php,Php,Linux,Composer Php,我使用了'composer install'命令,它说 [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 disab

我使用了'composer install'命令,它说

[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. 
我在Linux操作系统上使用PHP7.2

我怎样才能解决这个问题


我已经在php.ini中查看了,没有看到openssl的扩展。

禁用SSL/TLS保护是不安全的。但是如果你对工作环境有足够的信心,试试这个

composer config -g -- disable-tls true
然后


或者直接安装它:/
composer install