宝塔2.8.9版本安装composer- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
复制代码
PHP Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in Command line code on line 1
PHP Warning: copy(): Failed to enable crypto in Command line code on line 1
PHP Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1
报错。
解决方法,参考
http://www.bt.cn/bbs/forum.php?mod=viewthread&tid=1026&highlight=openssl
https://github.com/composer/composer/issues/5519
/www/wwwroot/server/php/71/etc/php.ini
搜索并修改
openssl.cafile=/www/server/php/71/etc/cacert.pem
openssl.capath=/www/server/php/71/etc/
|
|