I want to install composer and run it's command but i always get error bellow:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to https://getcomposer.org/installer failed with errors: SSL: Handshake timed out. Failed to enable crypto. Failed to open stream: operation failed
what should i do? i previously can do any thing but suddenly i get error and i don't change any thing!
Hmm, it could be a network issue or it's a misconfiguration of some sort.
I would suggest to check the PHP SSL settings.
php_openssl
and php_curl
are enabled.check that your php.ini
has cainfo and cafile properly defined:
curl.cainfo=/path/to/ssl-certs/ca-bundle.crt
openssl.cafile=/path/to/ssl-certs/ca-bundle.crt
If certs are missing: download a cert bundle from http://curl.haxx.se/ca/cacert.pem and save as ca-bundle.crt
.
check and raise default_socket_timeout
in php.ini