我尝试通过 Composer 安装 Clothing cms,但我甚至无法下载 Composer。我研究并阅读了相关资料,但还是找不到解决方案。据我所知,这很可能是 SSL 问题,特别是 PHP 的 OpenSSL。我不熟悉 PHP 也不熟悉 OpenSSL,我只是想试试 Clothing cms...
从输出中可以看出,当前安装的 openssl 版本与 php 输出的版本不同。我想这就是我的问题。我该如何纠正它并最终安装 clothes?
~$ sudo apt-cache policy openssl
openssl:
Installed: 1.0.2k-1+deb.sury.org~trusty+5
Candidate: 1.0.2k-1+deb.sury.org~trusty+5
Version table:
*** 1.0.2k-1+deb.sury.org~trusty+5 0
500 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main armhf Packages
100 /var/lib/dpkg/status
1.0.1f-1ubuntu2.22 0
500 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main armhf Packages
500 http://ports.ubuntu.com/ubuntu-ports/ trusty-security/main armhf Packages
1.0.1f-1ubuntu2 0
500 http://ports.ubuntu.com/ubuntu-ports/ trusty/main armhf Packages
PHP 输出:
~$ php -m | grep openssl
openssl
~$ php -i | grep OpenSSL
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2j 26 Sep 2016
OpenSSL Header Version => OpenSSL 1.0.2j 26 Sep 2016
Native OpenSSL support => enabled
这是我尝试安装衣柜 cms 时遇到的症状:
~$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
All settings correct for using Composer
Downloading...
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Connection timed out
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Connection timed out
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Connection timed out
The download failed repeatedly, aborting.