2015-11-23 29 views
0

我得到了一台安装了Redmine 3的服务器。作曲家在装有redmine的服务器上失败

作曲家将无法在这个mashine:

安装失败(PHP -r “ReadFile的( 'https://getcomposer.org/installer');” | PHP):

PHP Warning: readfile(): 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 

如果我使用curl安装,安装作品但一旦我做我的“PHP composer.phar安装”再次失败:

[Composer\Downloader\TransportException]                       
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: 
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed             
Failed to enable crypto                            
failed to open stream: operation failed                        

这只失败,因为安装管理平台。有任何想法吗?

+0

我不认为它与Redmine有任何关系。 – robsch

+1

也许这个问题是相关的http://stackoverflow.com/questions/34590842/cannot-install-composer-on-mac-os-x/34617315#34617315 –

+0

谢谢杰拉德,你的链接并没有真正相关,但它让我看起来再次进入这个。不知何故,系统上缺少完整的目录/ usr/lib/ssl。我从另一个安装中复制它,现在一切再次运行! –

回答

0

不知何故,完整的目录/ usr/lib目录/ SSL缺少系统。我从另一个安装中复制它,现在一切再次运行!

0

你应该尝试使用:

curl -sS https://getcomposer.org/installer | php 
mv composer.phar /usr/local/bin/composer 
+0

这不会改变一件事。这样做的唯一方法是提供一种更方便的方式来调用作曲家。作曲家仍然会失败并出现相同的错误。 –